Crystal Reports - Unhandled exception
Good day all
When running a report in Crystal reports addon I get the following error:
"Unhannled Exception hes occured in you aplication. If you click continue.............."
I am running crystal reports 2.0.0.7 on a 64bit server. Can this error be related to the Crystal runtime?
Does the .rpt files need to be recompliled for 64bit?
Regards
Erika Boshoff
I think the version you are using was developed to run on 64 bit, so this shouldn't be the issue.
The error messages in Crystal are not very clear, check the reporting & printing forum for much more info on Crysal issues.
Similar Messages
-
Passing parameters from Forms to Reports - Unhandled exception error
Hi there,
I am passing parammeters to my Reports through Forms. I am using the built-in RUN_REPORT_OBJECT to invoke and run my report.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := FIND_REPORT_OBJECT('MY_REPORT');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER,
'p1='| |to_char(:block.p1_field)| |
' p2='| |to_char(:block.p2_field)| |
' p3='| |to_char(:block.p3_field)| |
' paramfrom=no');
v_rep := RUN_REPORT_OBJECT(repid);
EXIT_FORM;
END;
In one of my reports, after the report was invoked on the previewer window and I closed it, an unhandled exception error message appears.
Are there any restrictions on the length of REPORT_OTHER parameters/value, as in this form, there are quite a number of parameters set to passed into the reports?
I did not encounter this problem when running the report using the default REPORTS PARAMETER FORM to pass in the parameter. It is only when I pass in through FORMS using SET_REPORT_OBJECT_PROPERTY, then the error appears.
I did not encounter this error with other reports which have little parameters.
Regards,
Hon KoatPang,
Not sure it this will make the problem go away, but you could try to send the parameters in a parameter list, instead of setting the REPORT_OTHER values.
The syntax is the same you use to pass parameter list from one form to another:
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
v_list paramlist;
c_listname constant varchar2(30) := 'my_list';
begin
repid := FIND_REPORT_OBJECT('MY_REPORT');
v_list := get_parameter_list(c_listname);
if not id_null(v_list) then
destroy_parameter_list(v_list);
end if;
v_list := create_parameter_list(c_listname);
add_parameter(v_list, 'P1', text_parameter, to_char(:block.p1_field));
add_parameter(v_list, 'P2', text_parameter, to_char(:block.p2_field));
v_rep := RUN_REPORT_OBJECT(repid, v_list);
end;Hope this solves your problem,
Pedro -
Crystal report does not show any output
Hi
The client runs crystal report and on the crystal viewer no out put is retrieved. basically The page shows as gray colour. Its like as if there is no report to run. No error message is also received
However when you print the report it prints fine with all the details on the report
The user has full rights to the crystal reports folder as well
All users can run the crystal reports fine except for one user
Any possible solutions?
Thank you
KInd Regards
ApsaraHi,
We have the same problem, did you find the final solution?
Thanks in advance
Regards. -
Crystal Report 2013 memory problem
Hi,
I am developing a Windows service. The service calls Crystal Report to generate PDFs. When a new contract appears in database (MS Access), the service reads contract number and build a formular. Then pass the formular to ReportDocument. The code looks like this
using (ReportDocument report = new ReportDocument()) {
report.Load("contract.rpt");
// some initialize report
foreach (var contract in contracts) {
report.RecordSelectionFormula = BuildFormular(contract);
report.ExportToDisk(ExportFormatType.PortableDocFormat, BuildOutputFilename(contract));
report.Close();
It works fine. When deploy on production, I want the location of Access file can be changed programmatically. So I modified the code
using (ReportDocument report = new ReportDocument()) {
report.Load("contract.rpt");
// some initialize report
foreach (ReportDocument subreport in report.Subreports) {
foreach (Table table in subreport.Database.Tables) {
table.Location = MdbPath;
foreach (Table table in report.Database.Tables) {
table.Location = MdbPath;
foreach (var contract in contracts) {
report.RecordSelectionFormula = BuildFormular(contract);
report.VerifyDatabase();
report.ExportToDisk(ExportFormatType.PortableDocFormat, BuildOutputFilename(contract));
report.Close();
It works but memory increases over time. Here are Private Bytes (I use Performance Monitor tool)
10:45 - 58.000MB
11:00 - 61.801MB
11:15 - 64.611MB
11:30 - 65.544MB
11:45 - 65.716MB
12:30 - 69.095MB
I also attached some screenshot of report of DebugDiag tool.
My environment:
Net framework 4.5
Tool runs as Windows Service
Crystal Report 2013 (Crystal Report Runtime 32bit 13.0.10.1385).
Database: MS Access/OleDb
Any suggestion?
Many thanksHi Ludek,
I wrote 3 tests. You can get detail here:
https://dl.dropboxusercontent.com/u/4059883/WinFormSavedData.zip
https://dl.dropboxusercontent.com/u/4059883/WinFormSavedData.Statistic.docx
https://dl.dropboxusercontent.com/u/4059883/WinFormNoSavedData.zip
https://dl.dropboxusercontent.com/u/4059883/WinFormNoSavedData.Statistic.docx
https://dl.dropboxusercontent.com/u/4059883/WinFormChangeLocation.zip
https://dl.dropboxusercontent.com/u/4059883/WinFormChangeLocation.Statistic.docx
Here are summary:
Tests are a Windows Form apps with one main form which has one button. If we click on the button, it call Crystal Report to generate 100 pdf. The Access database is simple - one table which has 10 records.
Test case 1 - Saved data report.
I clicked 7 times (700 pdf created). Memory increase from 40.177 MB to 43.347 MB
Test case 2 - No saved data report
I clicked 10 times (1000 pdf created). Memory increase from 41.123MB to 42.835MB
Test case 3 - No saved data report and change location
I clicked 10 times (1000 pdf created). Memory increase from 52.412 to 54.063MB
Because I am developing a Windows Service and it runs 24/7, I expected that memory should not increase over time. My service runs 2 or 3 days and Crystal Report throws exception "Not enough memory for operation"
00:00:11,276 [Worker-8] ERROR e.PdfGenerator.PdfGeneratorJob - Error while generating pdf
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException:
Not enough memory for operation.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)
Thank for all advice
Vi -
Crystal Reports 2011 getting An unhandled win32 exception occurred in crw32
I am using Crystal reports 2011 with windows XP. I am getting the error message "An unhandled win32 exception occurred in crw32.exe" I have seen the resolution for this at ""Unhandled win32 exception occurred in crw32.exe [2920]."" but this does not work either. I have added every possible .exe to not use DEP, that I could find in the Business Objects folder. The Business Objects folder is the correct folder. There is not any other folder in "Program Files" that is related to Crystal Reports. Can anyone help with this. I have come to the conclusion that the only solution is to switch to DevExpress Reports. Don't want to have to but, I have customers who are expecting working reports. I am using a MySQL database with version 5.1 ODBC driver. Another developer has Vista operating system running the same version of Crystal Reports, same database and ODBC driver and it works fine for him. Please don't say upgrade to Vista because the majority of my customer base is using XP. I would appreciate if someone could share some incite here. Thank you in advance.
Hello,
First thing is to download 5.3 DataDirect Drivers.
DEP is not a problem as of CR XI R2 SP6 and CR 2008 SP 2.
When are you getting the error when opening Crystal or at some other click?
Check your Anti-virus software, it will block access to dependencies CR requires or access to the Registry.
Look in your AV logs to see if it's logging that it's blocking access to something.
Also, CR 2011 requires Windows XP SP3.
And if you have not downloaded SP1 or SP 2 try uninstalling CR and then without running CR between installs complete them first and then try again.
AND you must be a local PC Administrator to install.
Don
Edited by: Don Williams on Nov 13, 2011 6:37 AM -
Crystal Reports PrintToPrinter - The process was terminated due to an unhandled exception
Hi,
I am having a real problem with Crystal Reports in an application built using Visual Studio 2013.
Sometimes (in fact nearly all the time, but not always) whenever I call PrintToPrinter, I get the following error:-
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 37A9D5DC
I have two projects that wrap the functionality, one a Windows Service and the other a Console application.
I will attach a sample of my code, but at the moment I am testing using the console application for testing and this error always terminates the application completely. I have added all sorts of exception handling to try and stop it terminating the app, but to deal with the exception gracefully. Nothing however works, it always terminates the application completely.
The strange thing is that this only happens when calling PrintToPrinter. If I use export functionality such as ExportToStream, everything is absolutely fine and I don't get any errors.
The application always works fine on my development machine as well printing to an Epson WF-3540, it just falls over when deployed to the live server.
The application is developed in Visual Studio 2013.
It uses .NET Framework 4.5.1.
The printer that we are printing to that causes the issue is an HP LaserJet P3010 Series PCL 6
All Crystal Reports For Visual Studio are patched to the latest versions on the live server (13.0.5.891)
I am at a complete loss and any help or guidance would be very much appreciated.
A sample of my code is attached
Many thanks in advance.
SimonVS 2013 is not supported until SP 9 due out end of this month
Don -
Unhandled Exception Error in Crystal Reports
I am trying to run Crystal Report and I get a error saying "Unhandled Exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close automatically. Load Report failed." Any help to resolve this will be much appreciated. Thanks.
Hi Mark,
Check Unhandled exception has occurred in your application thread for solutions.
Thanks,
Neetu -
Unhandled exception error when i open the reports in crystal reports 12.0
Hi All
When i open Reports in SAP Business one it is showing unhandled exception occured unknown user name and password
because of this i could not check my reports can any one help me on this?
Regards
Boopathi.THi,
Have you used CR add-on for B1? You may search within the forum to find the similar issue.
Thanks,
Gordon -
Please also see attachment (same info as below).
Background
This code works in windows XP (32 bit), using/complied VS2005 with no problems.
Please contact:
Hamid Deljoo at work 416-867-8977 (8am to 4pm EST)
Problem is:
We are migrating this code from XP to windows 7 (using win7 64bit for development to be deployed on win7 PCs 64bit).
When trying to display a crystal report (.rpt) an exception is raised.
Exception info is:
CrystalDecisions.CrystalReports.Engine.DataSourceException was unhandled by user code
Message=Failed to load database information.
Error in File wbstats {CC56070D-0873-4815-BAD5-0DA0FBAEDCB6}.rpt:
Failed to load database information.
Source=CrystalDecisions.ReportAppServer.DataSetConversion
StackTrace:
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
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.ReportDocument.Export(ExportOptions options)
at net.bmogc.cas.ui.ReportViewer.LoadStatsReport(String warmBodyCode) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\ReportViewer.cs:line 739
at net.bmogc.cas.ui.WarmBodyManage.Stats() in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\WarmBodyManage.cs:line 873
at net.bmogc.cas.ui.WarmBodyManage.CASAuthgation_ToolStripItem_Click(Object sender, EventArgs e) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\WarmBodyManage.cs:line 593
at net.bmogc.cas.ui.CASAuthgation.<>c__DisplayClass15.<CreateToolStripItem>b__14(Object sender, EventArgs e) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\Common\CASAuthgation.cs:line 1242
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(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)
InnerException: System.Runtime.InteropServices.COMException
Message=Failed to load database information.
Error in File wbstats {CC56070D-0873-4815-BAD5-0DA0FBAEDCB6}.rpt:
Failed to load database information.
Source=""
ErrorCode=-2147482931
StackTrace:
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
InnerException:
Background info is:
Vs2013 (update 3, latest version) is used.
Installed: Crystal Reports, Support Pack 10 (v. 13.0.10.1385), using 64 bit
VS2013 build settings.What database are you using?
What database client?
How are you connecting to the database (ODBC, OLE DB, etc.)?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Hi,
i'm using Crystal Reports for VS version 13.0.13.1597 with Visual Studio 2013
Unfortunately I get a COMExeption when trying to Print some reports after previously displaying a preview using the CrystalDecisions.Windows.Forms.CrystalReportViewer Component.
System.Runtime.InteropServices.COMException was unhandled by user code
HResult=-2147483648
Message=
No Error.
Source=rptcontrollers.dll
ErrorCode=-2147483648
StackTrace:
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetPage(PageRequestContext pPageRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.GetPage(PageRequestContext pageReqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.QueryPageSettingsEventHandler(Object sender, QueryPageSettingsEventArgs e)
at System.Drawing.Printing.PrintDocument.OnQueryPageSettings(QueryPageSettingsEventArgs e)
at System.Drawing.Printing.PrintDocument._OnQueryPageSettings(QueryPageSettingsEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, Boolean reformatReportPageSettings)
at Soloplan.CarLo.Printing.PrintAdapterCrystalReports2011.Print() in c:\project.net\Soloplan\CarLo\Printing\PrintAdapterCrystalReports2011.cs:Line 1528.
InnerException:
As you can see the error message is a bit short on information what went wrong, especially the Message: No Error.
Is there any possiblity to extend the information on this exception?
The behavior is reproducible with some reports, while others work just fine, and even with the problematic reports it only when the call of the Print function is done while the preview is shown.
I hope someone can point me in the right direction.
Thanks
JohannesWow. It's been a long, long time since I've seen CR throw error: no error (like v. 4.5 or so...). Used to chuckle about it - I think I even saved a screenshot of it
It will be good to have more info on this:
Win or web app?
Printer used.
Printer driver name and version.
The reports that do not work throw the error consistently?
Code used to print the reports.
Is this a threaded app?
Do you get the issue printing from the viewer?
Do you get the issue printing from the designer viewer?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter -
Unhandled exception in crw32.exe when dragging field onto report
I support a Crystal Reports Designer XI user who is receiving an error:
Unhandled exception at 0x00891ff3 in crw32.exe: 0xC0000005: Access violation reading location 0x00000020.
So far, this only appears to happen when she drags a field from Field Explorer onto a new or existing report. The data connection to the database appears not to be the issue, as she accesses that DB from different applications with no problem.
DEP is set with Crystal as an exception, I have uninstalled and reinstalled along with deleting temp files and leftover registry keys, I have closed all other applications, I have granted her admin rights, disabled VirusScan, and nothing seems to fix this issue. She had this issue once before on a different computer (with the same software installed) and we ended up getting her a new computer at around the same time so the issue never needed to be resolved. On the current computer she was working problem-free for about 3-4 months, and a few days ago it started showing up on her new computer. I could rebuild her Windows profile but that is a huge hassle and I don't think of that as a permanent fix.
Thanks for any help... I'm racking my brain on this one!
Nick HHi Nick,
CR XI is NOT DEP aware and will never be. Only option is to upgrade to XI R2 and SP 6 for free or disable DEP. DEP was released after XI and XI is past it's end of life so no new patches to fix the problem.
Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
Thank you
Don -
If image file not exist in image path crystal report not open and give me exception error problem
Hi guys my code below show pictures for all employees
code is working but i have proplem
if image not exist in path
crystal report not open and give me exception error image file not exist in path
although the employee no found in database but if image not exist in path when loop crystal report will not open
how to ignore image files not exist in path and open report this is actually what i need
my code below as following
DataTable dt = new DataTable();
string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
using (SqlConnection con = new SqlConnection(connString))
con.Open();
SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
da.Fill(dt);
foreach (DataRow dr in dt.Rows)
FileStream fs = null;
fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
BinaryReader br = new BinaryReader(fs);
byte[] imgbyte = new byte[fs.Length + 1];
imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
dr["Image"] = imgbyte;
fs.Dispose();
ReportDocument objRpt = new Reports.CrystalReportData2();
objRpt.SetDataSource(dt);
crystalReportViewer1.ReportSource = objRpt;
crystalReportViewer1.Refresh();
and exception error as belowFirst: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
Second : Drag And drop this image Filed Where I want.
private void LoadReport()
frmCheckWeigher rpt = new frmCheckWeigher();
CryRe_DailyBatch report = new CryRe_DailyBatch();
DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
DataTable dt = GetImageRow(table, "Footer.Jpg");
report.SetDataSource(dt);
crv1.ReportSource = report;
crv1.Refresh();
By this Function I merge My Image data into dataTable
private DataTable GetImageRow(DataTable dt, string ImageName)
try
FileStream fs;
BinaryReader br;
if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
else
// if photo does not exist show the nophoto.jpg file
fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
// initialise the binary reader from file streamobject
br = new BinaryReader(fs);
// define the byte array of filelength
byte[] imgbyte = new byte[fs.Length + 1];
// read the bytes from the binary reader
imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
dt.Rows[0]["Image"] = imgbyte;
br.Close();
// close the binary reader
fs.Close();
// close the file stream
catch (Exception ex)
// error handling
MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
return dt;
// Return Datatable After Image Row Insertion
Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP] -
Exception-Error when excecuting JSP-File in Crystal reports for Eclipse
Hi,
I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
Coud anyone help me?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
ReportClientDocument cannot be resolved to a type
10: try catch (ReportSDKExceptionBase e)
60:
An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
e cannot be resolved
55:
56:
57: } catch (ReportSDKExceptionBase e)
60:
61: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
Bericht1.jsp:
<%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
String reportName = "Bericht1.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// set the reportsource property of the viewer
IReportSource reportSource = clientDoc.getReportSource();
crystalReportPageViewer.setReportSource(reportSource);
// set viewer attributes
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
// Apply the viewer preference attributes
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
Thanks
ArnoldAccording to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using. -
SQL Exception in Crystal Reports
When i am trying to connect through the JDBC connection from the File -> Log On or Off Server ,i am getting this error
SQL Exception:[SQL State]null:[Error Message]
java.io.IOException:Failed to load
Please help me out with thisHi
Instead of going in File -> Log On or Off Server
Try to click on File --New -- Expend create new connections and try to create a JDBC connection.
Also try to search 'HOW TO CREATE JDBC connection for CRYSTAL REPORTS' to find a SAP note.
-Sastry -
Crystal Report 11 error "AccessViolationException was unhandled" on windows
We have migrated VB code to VS 2010. We are using Crystal Report 11 with Visual Studio 2010, Crystal report is working fine with other Windows OS but not working in Windows 7 OS it throws an error "AccessViolationException was unhandled". We are using Crystal Report viewer, the error stops at the viewer control and gives the above error. Please let me know what is the solution for this
Note: All admin rights has been given to systemOnly version of CR runtime supported in VS 2010 is Cr for VS 2010:
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe
Thank you
Don
Maybe you are looking for
-
Backlight Works But the display is not
I recently changed my logic board with a used due to a hardware problem.After the installation the MB works fine except that my display is not working (the backlight is working. I connect to an external Display and it works fine. Please Help!!!!i Dou
-
Hi, I have a Belkin Wireless G Plus Router for my WiFi. There are some WiFi "holes" in my house, and I was wondering if I can use the AP Express as a repeater. Or do I need to buy a third party router. Thanks again! Josh iBook G3 500 MHz, 576 MB RAM
-
Unexpected XMP_Error Invalid UTF-8 data byte
Hi all, I'm using the XMP SDK 4.4.2 and with it the sample application "xmpcommands". This one is extremely helpful - but it fails when using files that have Umlauts(öäü) in the name. When calling, i.e. xmpcommand.exe get c:\Fileöäü.jpg the command r
-
Problem using production version of SQL Server 2005 JDBC drivers
A production version of the Microsoft SQL Server 2005 JDBC driver became available on 1/20/06, and we are having some issues getting it to work with WLS 9.1. The non-XA driver works fine, but when we attempt to use the XA version, we see the error be
-
Interactive Reporting Migration
Hi, Could any one Please give some details on Interactive Reporting Migration from lower version to higher version(9x) and what are the lower versions. Thanks in advance.