Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all 2556 articles
Browse latest View live

Crystal Report Viewer

$
0
0

Has anyone encountered issues with the latest (August 11, 2015) security patches?

 

We installed the patches on a 2008 R2 server with CR13 SP12 installed .  Now the Crystal Reports Viewer will no longer display.

 

We rolled back the patches in our development environment to no avail.


Exception thrown in Crystal Report Web Viewer

$
0
0

Hi ,

 

We have integrated crystal reports with our web application for our reporting solution. While most of the reports works fine, one particular report has

an intermittent issue. When the underlying query for the report takes more than 5 minutes to execute and give a result, the crystal report viewer throws back a null pointer exception, we checked that the underlying query is submitted to the DB and is still running while the crystal report viewer has thrown and exception. When the same report, if the query executes within 5 minutes, is able to  retrieve the result and show it on the screen. Any suggestion as to how to resolve this.

A first chance exception of type 'System.Runtime.InteropServices.COMException' The system cannot find the path specified

$
0
0

Hi all,

 

I'm currently working on a project that involves implementing a function to generate and export a PDF using a crystal report. So far I've had plenty of errors and the latest one is proving difficult. System Info:

 

Development machine:

Windows 8

VS2013

Crystal Reports SP14 Runtime and VS integration

 

Client machine:

Windows 7

No VS

Crystal Reports SP14 Runtime only.

 

So currently my project works fine on my dev machine but not on the client machine, which specifies the above error. Ill attach the relevant functions of code for people to view. If you need to know anything else, ill be watching this over the next couple of days and will respond ASAP.

 

Note: All connection strings for Databases and locations have all been checked and double checked and everything is fine there.

 

Thanks in advance,

Ryan

CR report working in Win 10 but page orientation fails at print

$
0
0

Hi--

 

This is for a CR created in VS 2013 with CR update 14 installed on the development machine.

 

I have a CR that opens and displays data just fine on the screen as formatted for landscape on Win 10.  However when I try to print, it prints in portrait only.  On Win 7 and 8.1, it prints in landscape as formatted without any action in the print window.  Changing the Win 10 printer preferences manually to landscape has no effect.

 

This happens on both the physical printer and when printing to MS pdf and XPS, so apparently not related to the physical printer driver (which was updated after installing Win 10, and does print in landscape with anything else).

 

Is this an issue to be fixed with CR update 15?  If so, any ideas on how I might fix this in the interim?

Since changing the printer preferences to landscape manually has no effect, it doesn't seem likely that doing so in code would help much.

 

This is for a product that is in the hands of users--so, would really appreciate any ideas!

 

Thanks,

 

Charles Carroll

crystal report low performance

$
0
0

Hi,

 

I experienced some critical performance issue with some Crystal report. The report who got issues contains 25 sub-reports.

 

 

 

I’m using Crystal report 2013 (SDK V13_0_13 for Visual Studio.net, ODBC connection towards an Oracle 11g database).

 

 

 

Is there a known fix for this problem (instruction, command) or even a patch to solve this issue ?

 

 

 

Thanks à lot,

PrintToPrinter fails on certain printers?

$
0
0

System info:

CrystalReport .Net Runtime 13.0.14.1720

Windows 7 Enterprise

 

The following c# code is used to print reports.

 

  rpt.Load( full path to the rpt file );

  PageMargins margins;

  

  margins = rpt.PrintOptions.PageMargins;

  margins.bottomMargin = 350;

  margins.leftMargin = 350;

  margins.rightMargin = 350;

  margins.topMargin = 350;

  rpt.PrintOptions.ApplyPageMargins(margins);

  

  rpt.PrintOptions.PrinterName = @"\\PC name\printer name";

  

  rpt.PrintToPrinter(1, false,0,0);

 

 

I have an HP LaserJet 1022 usb printer connected to my development computer.  This piece of code prints reports just fine in this situation.


Then there is another development machine in the same domain as the one above with the exact same piece of code.  The printer is added as a network printer, and I can print test pages via printer properties.  However, printing reports to this network printer failed, with "RPC server unavailable" being thrown by the PrintToPrinter call.  The remote procedure call service is running since test pages can be printed.


I have tried replacing the pc name by its IP address, but to no avail.


In both PCs the latest printer driver is used, and there are printers on the same domain that print just fine.


Any help would be appreciated.

crystal report low performance

$
0
0

Hi,

I experienced some critical performance issue with some Crystal report. The report who got issues contains 25 sub-reports.

I'm using Crystal report 2013 (SDK 13_0_13) for Visual studio.net. ODBC connection towards an Oracle 11g database.

Is there a know fix for this problem (instruction, command) or even a patch to solve this issue ?

Thanks a lot.

Install Crystal Reports 2013

$
0
0

Hello!

 

I have an application that should run with Crystal Reports 2013, which I'm developing in Visual Studio 2010.

 

What do I need to download and install for my development environment, and what do I need to download and install on the target machine?

 

I'm developing on a Windows 7 machine, and my target machine is a Windows 2012 Server.

 

Regards

Paul Steneram Bibby


Crystal Reports XI R2 SP6 - Product Key?

$
0
0

I have inherited a legacy ASP.NET 1.1 project developed in Visual Studio 2003 and deployed to the (external) end user on a Windows 2000 server.

The project makes use of Crystal Reports 9.1.5000 which must be bundled with Visual Studio 2003 somehow, since it all compiled and worked on the dev system (Windows XP) without my having to install any developer version of CR.  There are about 25 reports (rendered on Web pages) which I believe were built using Report Designer.

 

Since Windows 2000 is no longer supported by Microsoft, the customer's IT service provider is insisting that the app be migrated to Windows 2008 R2.  I have got it running on that platform except for the CR screens, which crash on trying to load a CrystalDecisions.CrystalReports.Engine.ReportDocument.  (CR 9.1 is not supported on this OS, I find).

 

I have tried migrating the app to Visual Studio 2010 and using the latest CR, but javascript incompatibilities I have run into mean this would be a major undertaking (there are hundreds of pages and popups to test/fix and I just don't have time, although clearly I will have to bite this bullet eventually).  Therefore I need to be able to build in VS2003 but deploy on Windows 2008.

 

Looking at this forum my only chance seems to be to install CR XI R2 SP6 on the dev system and deploy the corresponding msms on the target system.  There may still be problems as it is not officially supported on Win2008 (only Win7), but they can maybe be fixed.  I can't use 10.5 (which is supported on Win2008) as it doesn't support VS2003, according to https://wiki.sdn.sap.com/wiki/display/BOBJ/Which+Crystal+Reports+assembly+versions+are+supported+in+which+versions+of+Visual+Studio+.NET

 

I tried to install CR XI R2 SP6 on my dev system but was asked for a product key which I don't have.  My company does not have any support arrangement with SAP so I cannot apply for a key, which was not required with the previous CR version.  (Oddly, when I installed the latest developer CR 13 as noted above, I was not asked for a product key either, so I don't understand this requirement.  Is upgrade to XI R2 not free?  Did I download the wrong installer?)

 

What options do I have?

 

Desperately yours,

Jeremy Tinkler

Will the application developed using CR 13 SP 9 not work in Windows 10?

$
0
0

Hi,

 

We have developed the windows application using VS 2013.

We have used crystal reports 13 SP 9 for reports.

 

We have installed our application and it is working fine till Windows 8.1.

 

Recently, we have installed our application in a Windows 10 machine and found that all the reports are failing and application got crashed.

 

The dump says following are the errors,

 

-->

.......

ntdll!NtWaitForMultipleObjects+0xa

ntdll!RtlReportExceptionEx+0x479

ntdll!RtlReportException+0xb3

ntdll!RtlReportCriticalFailure$filt$0+0x33

ntdll!_C_specific_handler+0x96

ntdll!_GSHandlerCheck_SEH+ox7b

ntdll!RtlpExecuteHandlerForException+0xd

ntdll!RtlDispatchException+0x19b

ntdll!RtlRaiseException+0x18d

ntdll!RtlReportCriticalFailure+0x8c

ntdll!RtlpHeapHandleError+0x12

ntdll!RtlpLogHeapFailure+0xa8

.......

<--

 

We know that till CR 13 SP 14, crystal reports developer version for VS.Net do not support Windows 10.

 

Will it holds good for the implementation perspective as well?

Will the application developed using CR 13 SP 9 not work in Windows 10?

 

Can you please clarify?

 

Regards,

Guru

GetLastPageNumber in .net

$
0
0

Hi, Here’s the error that I got. Since we’re working usually in French, I’ll leave the error as it appeared. It says, roughly translated: “Error in file […] operation not authorised on related parameter”

 

{" Erreur dans le fichier FaDetail 6436_7080_{916660D8-FDDF-4696-BBB3-3150E4351AAE}.rpt : Opération non autorisée effectuée sur un paramètre relié."}

 

With the following line :

i = crReport.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext) So, just for you to know, my reports contains a lot of sub-reports (approx. 20)

 

Here’s a sample code in vb.net:

 

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load       

 

Dim crDiskFileDestinationOptions As New DiskFileDestinationOptions        

Dim crReportDetail As New CrystalDecisions.CrystalReports.Engine.ReportDocument       

Dim crReportSommr As New CrystalDecisions.CrystalReports.Engine.ReportDocument       

Dim i As Integer       

 

Try           

     crReportDetail.Load("D:\Applprod\Sige\Rapport\FaDetail.rpt", OpenReportMethod.OpenReportByTempCopy)            

     SetDBLogonForReport(crReportDetail)            

     bFactDetlInitParams(crReportDetail)           

     i = crReportDetail.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext)                  crReportDetail.ExportToDisk(ExportFormatType.PortableDocFormat, "D:\Applprod\Sige\TEMP\Detail.pdf")       

Catch ex As Exception           

     MsgBox(ex.Message)       

End Try

 

End Sub

 

 

Thanks lot.

visul studio.net 2010 using crystal reports

$
0
0

I have a VB.NET 2010  desktop application that generates reports by using crystal reports. Since I am new to working with crystal reports, I have the following questions:

1. I am trying to determine how the input data is linked to the crystal report for the data to be displayed. In the vb.net 2010 code, I can see where there is a select statement and the data is placed in a dataset will a fill statement. I looked at crystal reports 'experts', formulas, and select statements, and I do not see how the data gets into the report. I do see where the connection to where the database is at. Thus can you tell me what to look for so I can see how the data gets into the crystal report?

2. This particular report displays summarized data in groups. I have found that some of the summarized data is lost and not being displayed. I have run the query on my own in the database and I do see how some of the data is not displayed. Thus can you tell when what I can look at to see where the data is lost? I have looked at section experts/groups, but I do see where the grouping columns are at. Can you recommend how I can find this type of selection criteria I am missing?

.NET WinForms Application - Crystal Reports failed to open the connection

$
0
0

Hi,


I have developed a .NET Windows Forms application to generate and print the reports as per the business requirements. The reports were designed using Crystal Reports 8.5 and XI R2 versions. Our Client has been using these reports for a long period. There is a legacy system which generates these reports and it is developed using VBScript, Crystal Reports (ActiveX) components. The legacy system works for Windows 32-bit machines only. Now I have developed a .NET solution to replace the legacy system for Windows 64-bit machines. The .NET application is developed using C# and Crystal Reports .NET Framework. I have downloaded CRforVS_redist_install_32bit_13_0_14.zip file from SAP website, installed it on DEV machine and referenced the assemblies (.DLLs installed) in .NET application. The data source for Crystal Reports are XML files and we need an XML Data Driver. So I have downloaded the CRforVS_crdbxml_13_0_14.zip file from SAP website and installed it as per the instructions given. When tested the .NET application, it works fine for some of the reports. I mean, the application generates the Crystal Reports out of .rpt files and prints them. However, the application fails for some of the reports and gives the error below.


      Failed to open the connection.

      PRSales 4408_5568_{7A85C4FB-D0E4-462A-BEDC-BD42D4DD4981}.rpt


When I verified the same report thru the legacy system, it is able to generate and print the report without any issues. The data source for this report (.rpt) is an XML file residing on the local machine. The XML file path is mentioned in the .rpt file. I have opened the .rpt file thru Crystal Reports designer and able to give a sample print. However, the .NET application is unable to generate a report out of .rpt file and print it. The issue does not occur for all the .rpt files; some of them are generated and printed while the others give the errors. Here below is the code written in .NET application to generate and print the reports out of .rpt files.


      Private void PrintCrystalReports()

      {

           try

           {

                // Create instance for Crystal Report document

                ReportDocument reportDoc = new ReportDocument();

     

                // Prepare the Crystal Report file path and load it into the Crystal Report document created

                string strReportPath = string.Format("{0}{1}", strCRXMLTemplatesPath, strReportFileName);

                reportDoc.Load(strReportPath, OpenReportMethod.OpenReportByDefault);

                        

                // Set the printer settings to print the Crystal Report

                PrinterSettings printerSettings = new PrinterSettings() { Duplex = Duplex.Simplex };

                PageSettings pagesetting = new PageSettings();

                PrintLayoutSettings printlayout = new PrintLayoutSettings();

                        

                // Send the Crystal Report to printer

                reportDoc.PrintToPrinter(printerSettings, pagesetting, false);

       

                // Close the Crystal Report document

                reportDoc.Close();

           }

           catch

           {

                // Exception handling code

           }

        }

       

Please let me know if anything wrong in the code snippet above or I have to add any extra code to make it working. Thanks in advance.

SAP Crystal Report - Crystal report shows inconsistent behaviour on Click of Print button in Crome and IE 8 , IE 9 while working fine with IE 10 and 11

$
0
0

I am using crystal report version 13.0.2000.0 to display the reports on website (developed in ASP.net) framework ( .NET 4.5).

 

In DIV we are displaying the crystal report. We had our own print button in the corner of the div outside crystal report viewer.

 

On google chrome browser version 4.0.2403.157 m, when we are trying to print the crystal report by clicking on print button, a popup print window is opened but  our page that is having crystal report  is refreshed and shows NULL in the crystal report viewer div . WHY?

 

This null goes away that is the crystal report is displayed in the div again on the page when we perform some action on print popup (i.e either we are printing the report or we are canceling the popup)

 

 

The same issue is occuring on IE 8 and 9 as well. while it is working fine with IE 10 and IE 11. In IE 10 and IE 11 even after clicking on print button , report viewer stays in DIV also and in Print window also.

 

My issue is that why when we are printing the crystal report on page DIV disappears and although after cancelling the Print popup it is showing again.and but its working fine with IE 10 and IE 11.

 

Has anyone is having solution for this issue?

Dynamic Cascading Parameters : Description field values

$
0
0

If I access the parameter definition and check the attributes there I can access two values 'IsDCP' a logical that denotes this is a dynamic/cascading parameter and 'FieldID' that appears to be the value field. Firstly is this assumption correct ? and secondly is the field used for the 'description' stored in a similar manner ?  or is there anywhere else in the object model I can access this information ?


Thousand Seperator custom Positioning

$
0
0

Hi,

I am using Crystal Report 13 with visual studio 2013.i need all my numeric field to the format 22,33,56,369.23 instead of 223,356,369.23.i google for a long time.What i found is that ,create rule with the field and convert field value to text with a format.But my question is there an options like Thousand Seperator in the following image.

 

ConditionalThousandSeperator.png


  How can i use this option to customize the position in numeric field value?How can i create a rule to position my separator? What is the syntax of the   rule?Please let me know.it is urgent

 

Thanks

Sabbir

Database Vendor Code: 6550

$
0
0

Dear All,

 

I am facing an error while migrating My code from VB.Net 1.1 to 4.0 and Crystal reports 9.0.2 to 13.0.2000

 

The strange thing is, whenever I try to export the data in run mode, I am getting error with HasRecords

 

Failed to retrieve data from the database.

Details:  [Database Vendor Code: 6550 ]

Failed to retrieve data from the database.

Details:  [Database Vendor Code: 6550 ]

Failed to retrieve data from the database.

Error in File ECARD-LATEST 2420_180_{3FCF39B7-2D8C-4C8E-8408-436F54225B10}.rpt:

Failed to retrieve data from the database.

Details:  [Database Vendor Code: 6550 ]

 

Where,

ECARD-LATEST is the name of RPT file.

 

_HResult -2147221760 Integer

HasSavedData is False

 

 

Source : CrystalDecisions.ReportAppServer.DataSetConversion

StackTrace :    at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.hasRecords()

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_HasRecords()

  

IF I try to export the same record in DEBUG mode, records were successfully exported to PDF format.

Since there were so many records in each run, and every time pressing F11 is not at all a good Idea.

 

 

Can anyone tell me the reason behind this.

 

I am working under 2008 R2 server.

Using Crystal reports 13.0.2000 runtime.

Microsoft VS 2010 environment.

Using Oracle 10g Client.

Using Stored Procedure to Retrieve data.

 

Please let me know anything more required.

 

Thanks.

Printing Issues while printing a crystal report

$
0
0

Hi All,

 

I have a crystal report in a page, when i try to print that page by clicking on the print button, iam getting "Null" while printing.

 

The below is my page before clicking print image button ( Red color highlighted is Print Button)

1.jpg

Once after clicking the Print button iam getting "null" in the Report. as you can see below.

2.jpg

 

The print functionality is working fine except that it is showing null while printing and once the printing is done, the report is loading in the page causing the page load.

This report is being used in aspx page and we have done coding in C#.

So please help us in solving the Null issue while printing.

unattended installation of the 64 bit CR redistributable

$
0
0

Hello:

 

Is it possible to run the CRRuntime_64bit_13_0_14.msi setup in silent mode without requiring input from the user?

 

Thank you

Max processing time or Max records limit reached.

$
0
0

I am getting "A processing limit was reached. Max processing time or Max records limit reached" when requesting the report thru my web app. My Development environment is ASP VB.net  running Crystal Server 2013 SP01 BOBI 14.1.  The report runs fine in CMC with the same parameters.


Viewing all 2556 articles
Browse latest View live


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