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

Re: Sample to launch Crystal Report 2013 from C#.NET

$
0
0

Hi Mukesh,

 

If setting Integrated security to true then do not pass in a use ID and PW, it should work if you set it to false. Be aware if the user you are setting the log on to or with Trusted enabled we fully support DB security so if that user does not have rights to access the tables it will fail to log on.

 

Do not test every loop, move that outside of the loop.

 

Take once of your reports where you manually update the database info in CR Designer and then use the attach app to this KBA to generate the code for you.

 

1553921  - Is there a utility that would help in writing database logon code?

 

 

And if you have subreports you must set log on info for each of them also.

 

 

Don



Re: Exception thrown in Crystal Report Web Viewer

$
0
0

Crystal Report Version  - 14.0.2.364

 

This tells me that you are using CR 2011, SP 2. CR 2011 is now on SP 11(!), so that is your initial place to start. SPs can be downloaded from here:

Downloads for SAP Crystal Reports and others

 

 

Next. CR 2011 does not install any SDK, and you menion that the issue is happening in the Web Viewer. What version of CR is then running this Web Viewer? Is it an app you created? App created by 3rd party?

 

 

 

 

- Ludek

Re: Crystal Report 2013 Merge Module

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

$
0
0

No previous versions is supported on Windows 10, SP 15 should have Windows 10 support.

 

Should be out end of Septemberish....

 

If it works for you then great, if not then upgrade.

 

Oh, and SP 9 had problems with WEB app's, interesting you never ran into them.

 

Don

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.

Re: Crystal Reports for Visual Studio 2015 - Some icons missing?

$
0
0

Hi Don,

 

What is the expected release date for SP 15?

 

Thanks,

Praveen.

Re: GetLastPageNumber in .net

$
0
0

Hi Guylaine,

 

GetLastPageNumber will not work until after the report has run.  The engine doesn't know what the page numbers will be until the pages have been generated. 

 

Thanks,

Brian

Re: Crystal Reports for Visual Studio 2015 - Some icons missing?


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?

Re: Sample to launch Crystal Report 2013 from C#.NET

$
0
0

Hello Don,

 

Thank you once again for prompt response.

 

Even If I do not set Integrated security to true it does not work. I am logging in as "sa" password which will have access to database.

 

What could be wrong?

 

Please advise.

 

Thank you,

Mukesh Nagda

Re: Crystal Report 2013 Merge Module

$
0
0

Hello Ludek,

 

Appreciate your prompt response.

 

We have followed link suggested by you for understanding .NET SDKs "How do you spell confusion.."

 

We are still not very clear on what is required for production environment. It would be great if you can please advise us.

 

Thank you,

Mukesh Nagda

.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.

Re: Sample to launch Crystal Report 2013 from C#.NET

$
0
0

Hello Don,

 

Database connection issue has been resolved now.

 

Will you please advise us on passing query to the report? Please find below query.

 

query.png

 

Thank you,

Mukesh Nagda

Re: Redistribution Files

$
0
0


Hi,

 

I have had to go back to my original setup adding CrystalDecisions.CrystaReports.Engine 11.5.3700 and CrystalDecisions.Shared 11.5.3700 but now on my development PC I get Failed To Load Report error on all reports.

 

I have installed Crystal XI R2 SP6 for creating my reports and have installed:-

 

SAP Crystal Reports Runtime Engine for .NET Framework (64-bit) 13.0.14.1720

SAP Crystal Reports version for Microsoft Visual Studio 13.0.14.1720.

 

The reason I have had to go back is because on our new server Windows 2012 R1 when I install the runtimes and try and print I get an exception on the HTTPExport saying The System could not find the path specified. I have outputted the path and it looks fine.

 

Any help much appreciated,

 

Roger

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


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

$
0
0

Hi Ryan,

 

"x86 was deployed on the runtime PC, as well as the dev PC."

 

DO NOT install the runtime on the DEV PC, when you use the installer for VS, that installer puts all of the 32 and 64 bit ( assuming you clicked Yes when it asked ) onto your DEV PC.

 

The error makes no sense, it's the first assembly loaded as soon as you load a report. Are you closing and disposing of the report object some where prematurely?

 

You should not close/dispose until you are completely done with the report.

 

Don

 


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.


Re: visul studio.net 2010 using crystal reports

$
0
0

The code is in the .net framework 4.0 which is 64 bit.

 

I know the application, updates the data source in a Dataset in vb.net 2010 code. Would you tell on how cr will will know how to use this dataset?

Would you like me to show you some code?

Re: 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

Hi Don,

 

Thanks for replying,

Actually this print functionality is working fine with IE 10 and 11 but showing issue with crome,IE 8, IE 9

Upgraded to the lastest SDK but reports not working.

$
0
0

Hi,

 

I have downloaded the latest SDK for VS2010 :-

 

SAP Crystal Reprots runtime engine for .NET Framework (64-bit)     13.0.14.1720

SAP Crystal Reports, version for Microsoft Visual Studio                    13.0.14.1720

 

I then installed the latest version of the runtime library's on Windows Server 2012 :-

 

SAP Crystal Reports runtime engine for .NET Framework (64-bit)     13.0.14.1720.

 

My web based project now runs on the new server with references to Crystal reports but when it comes to this command:-

 

 

ExportFormatType.PortableDocFormat, Response, False, "CIC Preview")

 

 

The report returns and exception:-

 

The system cannot find the file specified.

 

The strange thing is it steps over the report.load line of code because I have put traps in. I have also output the full path / filename it is trying to load and this is correct to.

 

 

Any help please as I need to transfer to the new server as soon as possible because the old one is being de-commissioned soon.

 

 

Thank you for any help,

 

 

Roger

Viewing all 6879 articles
Browse latest View live


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