Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all 3636 articles
Browse latest View live

Visual studio Crashing while dynamic images load or saving in Crystal reports

$
0
0

In Crystal reports i am using picture  ole object  for loading dynamic images.I am assigning the formula fields for Picture object and save or build the application Visual studio has to be crashed and  getting this error " Microsoft visual studio has encountered a problem and needs to close"

 

I am using     Visual Studio 2012 Ultimate

                         Sap Crystal Report Version 13.0.2.469.Cortez_CR4VS

 

 

Any body help on this issue urgently..

               


Crystal 2008 Database Log In Window

$
0
0

We are deploying a dot net application utilizing Crystal Run time redistributable's. We have four test boxes, on two we are successul, on the third and fourth box we are getting a Crystal 2008 Reports Database Log In Window with Server Name and Database Name populated, but User is prompted to enter Log In ID and Password when we try to run a Crystal Report. 

 

1. We registered our same dotnetreport.dll on all machines. We ran our redistributable on all machines. We are running SQL 2008 R2 on all four machines. We rebooted all four boxes.

 

2. When we try to launch a crystal report on third and fourth boxes, we are getting Database Log In Window. What is causing this?

 

3. What are missing, doing that we shouldn't be doing, or what we are not doing that we should be doing?

Free Crystal Reports For Visual Studio 10

$
0
0

How do I download the free Crystal Reports for Visual Studio 10?

Crystal Report 9.2 not getting integrated with vs2003

$
0
0

i have the 9.2.3300 crystal report version integrated into vs2003 on a win2k3 PC. i have another win2k3 where iam trying to set up the similar CR version but inside visual studio i do not get this version (when i go to add reference or when i open a rpt file i notice some features are not available for ex: "display string" for a field) eventhough i have installed the http://resources.businessobjects.com/support/communityCS/FilesAndUpdates/cr9netredist.zip

 

Current version i see in add reference is 9.1.5000 ( i believe is the default version which comes with vs2003)

 

How can i fix this & make the 9.2v integrated with vs2003. Please help ASAP

Crystal 13 Display Issues

$
0
0

When displaying reports via the web viewer, there are alignment issues.  Text overruns other text.  Zooming in and out makes it worse.  The printed PDF looks OK.  My customer doesn't like the layout issues when viewing the report prior to printing it.

 

Any ideas?

 

Thanks

 

ST

SAP CR 2011 REPORT VIEWER DOESNOT DISPLAY ICONS/BUTTONS in WIN XP

$
0
0

On Microsoft  .net Framework 4.0 runtime running on Windows XP environment, SAP CR 2011 report viewer does not display icons on buttons such Export Report, Print Report, Toggle Group Tree, Goto First page, Goto previous page etc. whereas it displays them under the on Windows 7 and Windows Server 2003 R2

COM UFL question

$
0
0

I appreciate the answers to my earlier question about moving to CR for VS 2010.

 

I have a question about COM UFL's that is along the lines of the thread mentioned below.

 

http://scn.sap.com/thread/3202000

 

We have some reports that use a few COM UFL files.  One of the reports uses a function from U25Store.DLL.  I copied this DLL to the win32_x86 folder and that resolved the issue.

 

We have a few other reports that use a UFL DLL that we had created.  I tried copying this UFL to the same folder, but still get the error message:

 

UFL 'u2ltrmethods' that implements this function is missing.

 

Is there anything else that we need to do with this DLL so Crystal will recognize it?  We've used this DLL with CR9 without any issues (as long as it was in the correct location).  One extra wrinkle is that this DLL uses a few of our other DLL's, but I don't think it is even getting that far.  I tried copying the other DLL's to the same folder, but still get the same message.

 

If there are any suggestions about how to track down this issue, it would be greatly appreciated.

 

Thanks in advance,

Dave

Out of memory first time report is exported

$
0
0
First-chance exception at 0x75a2c41f in w3wp.exe: Microsoft C++ exception: _com_error at memory location 0x20dee4b0.
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in CrystalDecisions.CrystalReports.Engine.dll
An exception of type 'System.Runtime.InteropServices.COMException' occurred in CrystalDecisions.CrystalReports.Engine.dll but was not handled in user code
Additional information: Memory full.
Failed to export the report.
I have a report I'm exporting to PDF. In an initial trial a month ago, I got it working and it seemed to work fine. I moved the code over to my main app, and now I'm getting an out of memory error the first time I run the export. Specifically, the first time I run the export, I get this in my debug output:
The part of the stack trace that's after my code is:
   at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
So the exception, of course, is happening in the rd.Export at the end of the method below:
public void RunReport(string outputFile, int cc, int yr, int wk)
{
     ReportDocument rd = new ReportDocument();
     rd.Load(FullFilePath("myreport.rpt"));
     rd.Refresh();
     rd.SetDatabaseLogon("userid", "password");

     foreach (Table tbl in rd.Database.Tables)
     {
          tbl.LogOnInfo.ConnectionInfo.ServerName = "dbname";
          tbl.LogOnInfo.ConnectionInfo.DatabaseName = "";
          tbl.LogOnInfo.ConnectionInfo.UserID = "userid";
          tbl.LogOnInfo.ConnectionInfo.Password = "password";
     }
     foreach (IConnectionInfo ci in rd.DataSourceConnections)
     {
          ci.SetLogon("userid", "password");
     }
          DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();
     ExportOptions CrExportOptions;

     PdfRtfWordFormatOptions pdfFormatOptions = new PdfRtfWordFormatOptions();
     CrDiskFileDestinationOptions.DiskFileName = outputFile;
     CrExportOptions = rd.ExportOptions;
     {
          CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
          CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
          CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
          CrExportOptions.FormatOptions = pdfFormatOptions;
     }

     SetCurrentValuesForParameterField(rd, "IP_COMP_CODE", cc);
     SetCurrentValuesForParameterField(rd, "IP_YEAR", yr);
     SetCurrentValuesForParameterField(rd, "IP_WEEK", wk);
     
     rd.Export();
}

Obviously I've changed the names of the userid, password, database and report.

 

So, as I said, the first time I do the export it fails. If I ignore the exception and run the export again, it'll work just fine and it'll continue to work fine. I can run reports until I stop the app (an ASP.NET MVC application)

 

I've tried different formats as well, specifically, CSV and XLS. No matter which I do first, I'll get the out of memory the first time I export and then it'll work fine. So, for example, I could export as PDF, it will fail, and then export in XLS and it'll work. If I do XLS first, it'll fail, but then whatever I do after will work fine. So the problem doesn't appear to be specific to the export format.

 

I am using CRforVS_redist_install_64bit_13_0_4.zip

I'm running Windows 7 64-bit.

 

Thanks for any insight you can provide.


Parameter Panel 'Apply' Button Causes Wait Cursor To Remain for Viewer Page Background

$
0
0

winform vb.net VS2010 viewer app using CR for VS 2010. If a user changes a parameter value in the parameter panel, and then clicks the 'Apply' button, after the report reloads with the new parameter value, a Wait Cursor remains for the Gray Area outside the page boundaries in the viewer control.

 

I can't find a way to avoid that behavior.  Is this a known issue? Any solutions?

crystal report deployment

$
0
0

Hello guys,

I've c# app with crystal report and I did the deployment part, then I start the program and use crystal report buttons in app it gives me this message:

 

System .typeinitializationException: The type initialize for
'CrystalDecisions.CrystalReportDocument'threw an exception
System.IO.FileNotFoundException:Could not load file or assembly
'CrystalDecisions. ReportAppServer. CommLayer,Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304'or one of its dependencies
. The system cannot find the file specified

 

Also ,I followed the website for the deployment

http://www.fryan0911.com/2010/07/how-to-create-setup-and-deployment.html

 

What do you think the problem?

Crystal reports Columns Width management dynamically using in Process RAS SDK

$
0
0

Hi Everyone,

 

            I'm working on Creating Crystal reports from Scratch using In-Process RAS SDK. I've Installed crystal Reports 2008 & using Visual studio 2008.

With the help of this forum....Now i'm able to create a report dynamically.I'm Passing a data table to the Crystal report.It's Working fine for 4 to 5 columns.....Since the data table is dynamic....if more number of columns comes....Columns alignment is not coming properly  in the report...So how can i manage this through C# code...??

 

          depending upon the column numbers in the Data table....Its width should be changed automatically...to display the report data for all the columns with out overlapping of data....??

 

 

 

 

 

Regards,

SunilBabu

To check whether the parameter field is used in report and report formula using CR For VS 2010

$
0
0

Hi,

 

I want to find whether the parameter field{?test} is used in the report formula such as record selection formula, group selection formula etc using crystal SDK.

 

I tried ParameterFieldUsage2.InUse but its used for checking against the formula fields but not checking the record selection formula and group selection formula
Tried like parameterFieldDefinition.ParameterFieldUsage2 == ParameterFieldUsage2.InUse . Also i tried all the ParameterFieldUsage2 enum but no help.

 

Also i tried parameterFieldDefinition.UseCount property. but this also not give the proper result.

 

Currently am achiveing this functionality like the below code but i believe its not sound good to check for contains and also What if the line is commented out, or the parameter name happens to be part of a field/another parameter.


String recordSelectionFormula = subreportdocument.DataDefinition.RecordSelectionFormula;
String groupSelectionFormula = subreportdocument.DataDefinition.GroupSelectionFormula;
  if (recordSelectionFormula.Length > 0)
            {
                if (recordSelectionFormula.Contains(parameterFormulaName))
                {
                    return true;
                }
            }
  if (groupSelectionFormula.Length > 0)
            {
                if (groupSelectionFormula.Contains(parameterFormulaName))
                {
                    return true;
                }
            }

So is any API available to check whether the parameter field{?test} is used in the report formula such as record selection formula, group selection formula etc

Also please find the attached snapshot for the reference(Parameterfield.PNG ).

Please help me out.

 

Thanks in advance,

Somasekar.T

Crystal Reports for Visual Studio 2010 Change SQL Server Name Issue

$
0
0

using crystal reports for visual studio 2010, vb.net, asp.net

 

i have a report that connects to a sql server to select data

 

the report runs fine in the vs 2010 ide

 

at run time, i need to reset the server name the report will be using to point to QA or Production servers

 

i have searched here and the web for solutions on how to do this. i have tried every example and i cant get it to work.

 

when ever i change the server the report just comes up blank.

 

everything i have seen points to changing the connection info on eacj table and sub report in the report. i have tried and tried but i can not get this to work.

 

any suggestions?

 

the report selects a fairly small amount of data. it has 3 small sub reports

cxlibw-5-0.dll was not found

$
0
0

Hi All,

 

  We are using Crystal for 2010 SP3.  To optimize performance, we are loading the crystal framework in the background by using the following code:

 

    Public Class frmMain

        Inherits ProjectBaseForm

 

        Public Sub New()
            MyBase.New()

            'This call is required by the Windows Form Designer.
            InitializeComponent()

            Dim t As New Thread(AddressOf LoadCrystalFrameworkBackground)
            t.Start()
        End Sub

 

 

        Private Sub LoadCrystalFrameworkBackground()
            Dim crv As New CrystalDecisions.Windows.Forms.CrystalReportViewer
            Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument()

            Thread.CurrentThread.Abort()

        End Sub

 

 

       End Class

 

 

However every once in a while we are getting the following error message: 

 

"This application has failed to start because cxlibw-5-0.dll was not found.  Re-installing the application may fix this problem."

 

 

The error message is not consistently reproducable.  We'll run the program the first 20 times and everything will be fine.  Then run it and this error message shows up.  Looking for any causes or anything we can do to avoid this.  Note we are experiencing this from workstations where we have had the plug in for visual studios installed and also from workstations where we've had just the redistributable installed.

 

Any advice greatly appreciated.

Where can we find the Crystal Reports 2011 Runtime package for evaluation?

$
0
0

We are planning to upgrade from Crystal Reports XI R2 on Win XP to Crystall Report 2011 on the Win 7. I was able to install Crystal Reports 2011 evaluation version and successfully run our Application (which uses the ActiveX Crystal Viewer Control 14 to display reports).

 

But when this application package is deployed in the test client it is giving a error "Class not registered"  while loading Active Crystal Report Viewer Control.

Where can we find the Runtime package for CR 2011 which has the  Active Crystal Report Viewer (CRViewer.dll) which can be installed in the Test Client?.


Minimum Certificate key length Windows path stops the working of Crystal reports in SAP Crystal Reports

$
0
0

After applying the MicroSoft Security patch KB2661254, Crystal reports is not running. This particular patch is related to minimum certificate key length (http://support.microsoft.com/kb/2661254).

 

After removing this patch, crystals starting running to success.

 

How this particular Windows patch (minimum certificate key length (http://support.microsoft.com/kb/2661254))  might have possibly affected Crystal?

 

I am having Crystal Reports version 9.2.0.4485.

DissociatePageSizeAndPrinterPaperSize and set PrinterName

$
0
0

I have a VB.2010 Application. I design it so, that we can print some reports to a special pinter.

 

Now we have set the "Use no Printer" Option for reports that we distribute to another location.

 

If i open it via code, then it is not possible to change the destination printer. If the report save the last printer, then it is possible.

 

My code to change the printer is following

 

If PrinterName <> ""Then    _ErrorCode = ShowRPTFileErrorCodes.PrinterNotAvailable

 

                cryRpt.PrintOptions.DissociatePageSizeAndPrinterPaperSize = False

                cryRpt.PrintOptions.PrinterName = PrinterName

 

Else

 

                cryRpt.PrintOptions.DissociatePageSizeAndPrinterPaperSize = False

                cryRpt.PrintOptions.PrinterName = Interface.Printer.CurrentPrinter

           

EndIf

 

 

If i check the name of the printer with cryRpt.PrintOptions.PrinterName then it´s empty string

 

I using CR2011 - in our application we have CR4VS2010 (13_0_4)

Left alignment is generating extra space in exported pdf.

$
0
0

Hello Friends,

 

I am using Crystal Report 13 (SP 2) for Visual Studio 2010. I have crated a CR and exported it as PDF. There is a field in my CR that contains data for approx 2 or 3 paragraphs. I have set alignment of that filed to Left. The text of that field was looking fine in preview. But in exported pdf file it contains extra space.

 

Please see below image for reference:

align.png

 

Right and center alignments are also generating extra space, and justified is not suitable in my report.

 

I followed many posted regarding the issue on this forum, but did not find them helpful. Please help me and guide me, what should I do to resolve this issue.

 

I will be very thankful to you.

 

Regards,

Namrata Mathur

Crystal Report Design issue Deployed in Windows server 2008 R2

$
0
0

Hi

 

I am using crystal reports Integrated version CR for visual studio 2010 with version of 13_0_1

 

Designs are working fine in my local system which i am using windows 7 with 32 bit working fine , when i am deploying In Windows Server 2008 R2 Enterprise 64 bit system getting problem.

crystal reports design is crashing i mean design has to be changed.

Can you help on this issue any one please.

unable to find report in the manifest resources

$
0
0

when I added some crystal reports to my project one of the forms stopped opening nicely. When I double click on the form in the solution explorer it gives me the error "Crystal Report Windows Forms Viewer" and the msgbox says "Unable to find the report in the manifest resouces. Please build the project , and try again"

 

I am using Microsoft Visual Studio 2010. How can I fix this?

Untitled.jpg

Viewing all 3636 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>