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

Supressing Parameter dialog box on Refresh Report

$
0
0

After some tinkering, I've figured out how to get a parameter passed from a VB.NET form to a Crystal Report:

 

 

Dim paramFields AsNew CrystalDecisions.Shared.ParameterFields()

Dim paramField AsNew CrystalDecisions.Shared.ParameterField()

Dim discreteVal AsNew CrystalDecisions.Shared.ParameterDiscreteValue()


paramField.ParameterFieldName = "MyDateRange"

 

discreteVal.Value = Common.MyDates

 

paramField.CurrentValues.Add(discreteVal)

paramFields.Add(paramField)
crvBalances.ParameterFieldInfo = paramFields


This works just fine when the report is first opened in the Crystal Report Viewer.  If I open the report a second time, however, using a different parameter, the old data is still on the report, and when I click the Refresh button in the report viewer, up pops that Parameter dialog box.  I set the option to discard any saved data when loading the report, but that didn't help at all.  Is there a way to KEEP the parameter dialog box suppressed and be able to refresh the report?

 

I'm running Visual Studio 2008, and using the version of Crystal that comes with same.  Any help anyone can provide would be greatly appreciated.


Out of Memory - Printing Crystal Reports from Viewer VS2010 .Net 4 CR13.0.7

$
0
0

My test users have recently received the error Out of Memory when printing reports. Here is some information.

 

I have recently upgraded from

development machine: XP Sp3 VS2003 (CR for VS2003) .Net Framework 1.1 to Windows 7 32 bit SP1 VS2010 (CR 13.0.7) .Net Framework 4

production machines are Windows 7 64 bit 4gig+ RAM (CR 32bit 13.0.7 runtime)

 

The application is .NET C# WinForms

 

When doing some testing I have watched my application go from using 150MB to 250MB after the report has loaded in the CR Viewer that's ok but when I print from the viewer to Microsoft XPS Document Printer the memory used by my application spiked at over 1200MB !

The report had an image (only 17Kb) as a watermark on an underlay section but I removed that and the memory spiked at over 900MB.

 

I tested using a PDF print driver and the memory went from 250MB to spiking at 850MB.

 

Out of interest I ran some tests on the old set up XP VS2003 .Net 1.1 and the memory never went over 200MB.

 

I have been careful to design the reports properly, they even do less filtering than previously.

 

The MAX total records would be around 2500 with 600 pages in the report.

 

The database is SQL Server 2008 R2 and I am connecting the reports using ConnectionInfo and integrated security.

 

The reports are being closed and disposed I have code that tells me if even 2 reports are open at the same time

 

Where can I go from here to get the memory used down and stop these errors on the production side?

 

System.OutOfMemoryException: Out of memory.    at System.Drawing.Graphics.CheckErrorStatus(Int32 status)    at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Rectangle srcRect, GraphicsUnit srcUnit)    at CrystalDecisions.Windows.Forms.PageControl.OnPaint(PaintEventArgs e)    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)    at System.Windows.Forms.Control.WmPaint(Message& m)    at System.Windows.Forms.Control.WndProc(Message& m)    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)    at System.Windows.Forms.UserControl.WndProc(Message& m)    at CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m)    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Exporting Master and Detail report in Crystal Report

$
0
0

Dear all,

 

 

 

I have a master crystal report that contain hyper links which open a detailed report in a new tab when clicked. When I try to export the report in PDF form from master report without clicking on hyper links, it exports the master report just fine. But if I have clicked the hyper links(and the details report has been opened in a new tab) and then try to export the master report to pdf, it exports detailed report instead of exporting master report.

 

 

I have even tried exporting master report after closing the detailed report tab to no avail.Exporting detailed report works fine in every case.

 

 

I am using crystal report for visual studio 2010. Version 13.0.2 on local machine and 13.0.8 on deployment server. It behaves same way in both cases.

 

 

Any help will be much appreciated.

 

 

I have also posted the question here.  Exporting Master and Detail report in Crystal Report

 

 

Thanks

Issue with Report Viewer in WEB. VARCHAR2 Field Oveflowing (Not Truncated)

$
0
0

Dear Forum

 

Can someone tell me if there is an issue with the report viewer when viewing reports over the web

 

I have a report that displays an address. The field length is 305 chars long the field type is varchar2. Connection is to an Oracle Dbase

 

The field is naturally truncated so that not all the data is displayed (This is ok and by design. I know this is a bit strange)

 

If i display the report in using the report viewer where the report viewer is embeded on a page (winforms) teh report appears fine. Field is truncated as expected.

 

If i display the same report over the web using the report viewer the field overlays the adjacent field and the data is scrambled.

 

I have exported the report produced over the web back as a crystal report to see if there was any change to the reports design (there is not)

 

I would expect the behavior to be the same irrespective.

 

A customer is complaining about this issue. We would like to go back to them with an explination.

 

I enclose screen shots from 1) teh winforms version and 2) the version over the web.

 

And yes they are the same report

 

With Kind Regards

 

Paul

Crystal report 8.5 for vs2010

$
0
0

I don't know if this is the right forum but I am trying to work with crystal report 8.5 using vs2010. Now I am having a problem dragging the report control viewer in the form which says "failed to import activeXcontrol". I already added the reference so I don't know why it's not working. I can drag the report control but its version is 5.2. I can load a report through it but can't pass any parameter like vs2010 textbox to it's crystal report text object. I previously use SAP crystal report for vs2010 but my senior told me to use 8.5 since if there is any changes made in the report we don't need to update the exe in each client.

 

or is SAP crystal report for vs2010 can be edited outside the project file so we don't have to update the exe of the client pc too. thanks for any help!

Total No of pages different in report printed using Crystal Report XI R2 vs SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8)

$
0
0

Currently in our application, we are using Crystal Report XI R2 for generating the reports. We are in the process of upgrading the Crystal Report to SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8). I updated that on my machine and all the reports work fine. I didn't have to modify any of the reports.

 

However when comparing the reports, we found that there are few reports on which the total no. of pages differ from the report displayed using Crystal Report XI R2 vs SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8). Comparing the reports, it looks all the data that were fit on one page earlier with version XI R2 doesn't fit on the same page with version 13.8, thereby increasing the page counts.

 

The fonts, page margins everything set on report itself. Nothing being set in the code.

 

Both the application is using the same report that is pulling the data from the same database. Our application is a web application.

 

Any suggestion, why this is happening.

 

Thanks.

Sanjay

80040154 Class not registered

$
0
0

Hello.

 

I installed CRforVS_13_0_1.exe today but It doesn't work properly on my computer.

I can open and manage .rpt files in the IDE.

But when I run my website (on debug mode) my code always break on lines like this one:

CrystalDecisions.CrystalReports.Engine.ReportDocument rep = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

Throwing an error:

Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

 

I tried register C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\sacommlayer.dll with regsrv32, etc. but with no result.

 

It's starting to drive my insane, I've been working on that issue for 4 hours now, I just don't get it.

Do you know what to do?

 

PS: My computer is a Windows 7 x64 and I use VS2010 (10.0.40219.1 SP 1Rel)

 

Edited by: Sergejack on Sep 12, 2011 12:30 PM

CR 2008 embedded in VS2008 - intermittently working

$
0
0

We are having sporadic issue (at least once per day) where suddenly CR2008 embedded in VS2008 stops working, we are suddenly getting error message below. We have to restart the server and then things are fine for a while.

 

This also happens with CRXI in vs2005 where suddenly CR displaya a blank page. Also here a reboot corrects the issue.

 

Any idea what this could be, this is a Windows server 2003

 

 

Server Error in '/ProjectDailyReport1' Application.


Retrieving the COM class factory for component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} failed due to the following error: 80000003.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} failed due to the following error: 80000003.

Source Error:

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[COMException (0x80000003): Retrieving the COM class factory for component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} failed due to the following error: 80000003.]  CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc() +33  CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor() +31  CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize() +378  CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +195  Default_aspx..ctor() +258  ASP.select_report_aspx..ctor() +14  __ASP.FastObjectFactory_app_web_yvwszyrn.Create_ASP_select_report_aspx() +20  System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32  System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119  System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33  System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155  

 

   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc() +33
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor() +31
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize() +378
   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +195
   Default_aspx..ctor() +258
   ASP.select_report_aspx..ctor() +14
   __ASP.FastObjectFactory_app_web_yvwszyrn.Create_ASP_select_report_aspx() +20
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Error 1935 when installing CRRuntime_32bit_13_0.msi

$
0
0

I am getting Error 1935 - An error occurred during installation of an assembly component. The PC has Windows Vista 32 bit.

I downloaded CRRuntime_32bit_13_0.msi from the link provided and tried to install to on my pc.

Is there a newer update? Is this a known issue?

Report is generating very slowly

$
0
0

Hi all, my crystal report is generating very very slowly my report is having many sub reports inside it as well,

see the time difference in the following lines that comes out while generating the report from my Application, please comment how can i solve this

03/26/2014 06:03:47 PM ... Process({User I/F} Priority: 4, user interface)
a RDCReport is getting OLE property "SQLQueryString" with arguments: ()

03/26/2014 06:07:38 PM ... Process({User I/F} Priority: 4, user interface)
Get OLE Property "SQLQueryString" returned: SELECT "TABLE"."COLUMNS" .................... long long query here

No functions or cursors have applied in crystal report but still it is taking too long to generate

Asp.net CrystalReportViewer No Cancel Button!

$
0
0

I am using  Asp.net CrystalReportViewer to display my RPT files.

 

When i let CR prompt for the parameters, there is no way to get off the parameter screen.

There is no cancel button!!!

 

so the users only option is to hit the browser back button to get off the screen.

 

Any ideas?

 

Thanks, Jon

CR 2008 on Server 2008 R2 vs Windows Server 2003

$
0
0


I have posted a similar question before but have not beeen able to come up with a solution.

 

We recently purchased cr2008 designer sp5 and installed it on server 2008 r2 and server 2003. We have web pages where CR is embedded in the code showing the report. This works fine on server 2003, also works fine on development desktop BUT does not work on server 2008 r2.

 

The application works but when time to show the CR itsself there is just a blank page with no error messages. I have replcated the code both using vs2005 and vs2008 and none of them are working when it comes to show report.

 

IIS is configured to run 32bit mode and classic (on server 2008 r2). Applications are comiled with x86 target.

 

We also have windows applications (without user interfaces) that loops through data base and saves crystal report as .pdf documents to folders to folders and they do work either.

 

I have been working on this for the last couple fof weeks and I am clueless.

 

Any ideas where to start looking and what to try? Any any help will be greatly appreciated. Thank you.

I there already a specific date for VS2013 support like in SP9

$
0
0

Come on, i am just using VS 2012 because SAP has not yet released a version compatible with VS2013. Cand anyone point a specific date for relase maybe with SP9 ??

Error has occurred while attempting to load the Crystal Reports runtim

$
0
0

Hi all,

 

I'm using VS 2008 to create a business app that uses Crystal Reports to display and print reports. I'm distributing it mostly to Win7 Pro 64 bit machines.

 

The program is working on ALMOST every machine, but I just installed it on a new laptop, and whenever I access the Crystal part of the program, I get the classic "Either The Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly".

 

Googling this error, the UNIVERSAL answer is "Target your VB application at x86 only." The problem is, I ALREADY DID THAT. And this program works on all my OTHER Win7 64 bit machines. It's just this one.

 

Can anyone help? I'm at my wits end. I've tried installing, uninstalling, installing while right-clicking and choosing Run as Admin...

 

Thanks,

 

Andy Oliner

"This field name is not known" issue

$
0
0

Hi SAP TechSupport Team!

I have unresolved issue related to "This field name is not known" error while running my report via ReportDocument's function Export(). Before that I correctly gave all required parameters. This report work fine if I am using it with ReportViewer. I could not understand reason of that error. Please help to resolve this.

 

CrystalReports is being used is the 10.5 version, in VS 2008. That report was created in CrystalReport 8.5 old version

 

Thanks in advance

Vasil Avagyan


how to integrate the Crystal reports in ASP MVC framework

$
0
0

Hi all,

 

I know well the how to use  ADO.NET dataset with Crystal Reports.NET.  how can I have the same result In the Entity Framework?

 

 

thank you in advance

 

Clara

I wan to have a crystal for my project I am using vs2012 ultimate,MSSQL server 2008 and windows 7 ultimate 32 bit could anyone guide me to download correct version of crystal report for my configuration.

$
0
0

I wan to have a crystal for my project I am using vs2012 ultimate,MSSQL server 2008 and windows 7 ultimate 32 bit could anyone guide me to download correct version of crystal report for my configuration.

Problem with VS2012 After SAP CR installation

$
0
0

HI all,

 

after installation of SAP CR for vs 2012 even if the installation works, when I try to add a Crystal report from VS2012 Project -->Add Item ... I didnt find any Crystal report, what's wrong or I have to forgotten?

 

BR

VP

SP8 Install Executable Doesn't Install

$
0
0

I just downloaded the SP8 Install Executable (CRforVS_13_0_8.exe     299,977 KB).

When triggering it, it starts a window briefly, and immediately goes away. Nothing happens.

 

I then tried to remove the previous SP on my machine (SP7), but this made no difference.

Crystal Reports and Visual Studio when deploying

$
0
0

Hello,

 

I´ve been searching for these problem for a while with no luck. I've already try many things.

 

The thing is that I'm not able to make work any report when deploying (Windows Server 2012). Everything works fine when I try on my local machine.

 

I have Visual Studio 2012 and I've installed CRforVS_13_0_5.

 

This is my code:

 

            ReportDocument myCrystalReport;

            myCrystalReport = new ReportDocument();

            myCrystalReport.Load(Server.MapPath("~/Reports/report2.rpt"));

            CrystalReportViewer1.ReportSource = myCrystalReport;

            CrystalReportViewer1.RefreshReport();

 

 

I've pasted the error below:

 

Server Error in '/' Application.


Unknown error 0x80040200

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Unknown error 0x80040200

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[COMException (0x80004005): Unknown error 0x80040200] CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +90 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +259  [CrystalReportsException: No se ha podido cargar el informe.] CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +322 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +851 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +78 MMN.Reports.prueba1.Page_Load(Object sender, EventArgs e) +97 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772 



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408


I'd really appreciate any help.


Many thanks.

Viewing all 3636 articles
Browse latest View live


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