Crystal Report Viewer error
Hello,
I upgraded my web site to the VS 2010 and when I tried to run Crystal report (Crystal Reports for Visual Studio 2010) received the following error in the Firefox u201Cbobj is not definedu201D. When I opened Event Viewer I saw the error below
u201CThe description for Event ID ( 4353 ) in Source ( Crystal Reports ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded.u201D
I found one thread describing problem with u201CBusinessObjects.Licensing.KeycodeDecoder.dllu201D and tried to follow all suggestions with no luck.
Thank you for help in advance
See the sticky post at the top of this forum;
[Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting}]
and follow the instructions there.
Locking this thread.
Ludek
Similar Messages
-
Crystal Report Viewer Error Handling
Dear All
Thank you for your attention.
I wrote a C# program for user to print out an order using WPF and crystal report viewer.
Computer A is connected directly to the printer through USB.
Computer B and C are connected to the printer through printer sharing.
Computer A can print out anything such as word doc or image to the printer.
However, when using the print function in the crystal report viewer(select printer and press print), it crashes.
Very strange that computer B and C could use the print function in the crystal report viewer without any error.
As in my developer computer I could not simulate the error, how could I capture and study the error of the print function in the crystal report viewer in computer A?
Thanks a lot.
Best Regards
swivantry this:
https://msdn.microsoft.com/en-us/library/aa288423(v=vs.71).aspx
https://msdn.microsoft.com/en-US/library/ms225372(v=vs.80).aspx -
Crystal Report Viewer Error: Could not render the page
Hi,
I was facing the same issues whereby i creating my crystal report in VS2005 profesional built in crystal report designer. When preview in VS2005 the graph displayed correctly. However, when export to IIS it shows the error could not render the page.
I am using Windows 2008 server, IIS7.
I tried to install the CRREDIST x86.msi into my server, however it still could not show out the graph (pie chart) in the localhost.
Appreciated anyone know this could kindly advice.
thanks.
ckHello,
Crystal Reports 10 is not supported on Windows 2008 Server.
Please view the information [here|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
Upgrade the Crystal Reports.
Thanks,
Bhushan. -
Crystal Report Viewer error out when running multiple instances
Hi,
I am using java 1.4 with BO XI R3.0.
I notice I can only run one report at a time. If I was to run two reports, the 1st report will error out while 2nd report will run to its completion. Reports run on separate popup windows. I have tested with IE6, IE8 and also FireFox 3.0
Depending on the timing, I get different kinds of error.
"A request was cancelled. The necessary security privileges could not be verified. This indicates a problem with the security server. [RCIRAS9190] [RASLIB9002] "
"The Report Processing Server session you are using to connect is in the process of being shut down. You need to retry. [RCIRAS0200]"
I am using PSReportFactory and set parameters into CrystalReportViewer to display.
processParametersu2026
CrystalReportViewer viewer = new CrystalReportViewer();
pfieldDV = new ParameterFieldDiscreteValue();
pfieldDV.setValue(formatViewerParameterInputValue(tempRpt[1],tempParam[x]));
pfield.getCurrentValues().add(pfieldDV);
viewerParameters.add(pfield);
viewer.setParameterFields(viewerParameters);
createCrystalViewer(m_oReportWrap.getRequest(), response, sInstanceId,viewer);
private void createCrystalViewer(HttpServletRequest request, HttpServletResponse response2, String sInstanceId, CrystalReportViewer viewer) throws ReportSDKExceptionBase, FileNotFoundException, IOException, SDKException
IEnterpriseSession eSession = oLogon.getCESession();
IInfoStore iStore = oLogon.getInfostore();
IInfoObject rptObject = findInfoObject(iStore,sInstanceId);
IReportSourceFactory rptFactory = IReportSourceFactory)eSession.getService("","PSReportFactory");
IReportSource reportSource = rptFactory.openReportSource(rptObject,Locale.ENGLISH);
IReport report = (IReport)rptObject;
ConnectionInfo conn = new ConnectionInfo();
ConnectionInfos connInfo = new ConnectionInfos();
ServletContext sc = getServletConfig().getServletContext();
String realPath = sc.getRealPath("");
Properties prop = new Properties();
viewer.setOwnPage(true);
viewer.setDatabaseLogonInfos(connInfo);
viewer.setReportSource(reportSource);
viewer.setURI(request.getRequestURI() + "?reportID=" + rptObject.getID() + &viewerType=vwrTypeJavaSDK&viewID=1");
viewer.setEnterpriseLogon(eSession);
viewer.setHyperLink("New Window");
viewer.processHttpRequest(request, response2, sc, null);Thanks to both of you.
I actually was able to resolved this issue by tracking the values inside IEnterpriseSession.
// Perform Crystal Enterprise Logon
ISessionMgr oSessionMgr = CrystalEnterprise.getSessionMgr();
IEnterpriseSession m_oCESession = oSessionMgr.logon(sUserid, sPassword, sSystemName, getSecTypeString(iSecType));
System.out.println("in logon m_oCESession "+m_oCESession);
The UserInfo in the SeucuritySession: userInfo was always null so whatever i pass in, it was not storing them.
(EnterpriseSession:logon=(SecuritySession:userInfo=null)
All i need to do is to add IUserInfo userInfo = null; before IEnterpriseSession then it will store the user & password. -
Post Author: jwenny
CA Forum: Deployment
Need help badly!!!
We are using the crystal reports plugin for STRUTS.
We are able to display the report in the crystal report viewer. However, when we click any control buttons (print, export, etc...), then we get:
JSPG0036E: Failed to find resource /Report-viewer.jsp
We then moved Report-viewer.jsp to the WebContents folder (root directory) and got a different error when we clicked any control button:
Error: 400 page not found
Does anyone know how to solve this problem? For instance, is there a setting or parameter that needs to be set?
Greatly appreciate any help!HI,
Whenever we print the viewer does an auto postback, I believe due to this some of the values are getting missed. Moreover we are referring to the viewer and reportdocument object, it seems. So can you try this simple code in an application to see if it helps:
ReportDocument rdoc = new ReportDocument();
rdoc.Load("C:\TASKECrystalReports\Intraday.rpt");
rdoc.SetDatabaseLogon("uid","pwd");
rdoc.SetParameterValues("parameter name","value");
CrystalReportViewer.ReportSource = rdoc;
Helps?
Thanks. -
Error in Preview and Print in Crystal Report Viewer 2.0.0.7 in Workstation
Hi Guys,
I am encountering a problem when clicking preview and print in Crystal Report Viewer 2.0.0.7. It returns an error
Unhandled exception has occurred in your application. If you click Continue the application will ignore and attempt to continue. If you click quit, the application will close immediately. Load report failed.
I already install the runtime crruntime_120_mlb, . net framework 3.5 sp1 and the add-on itself. The viewer is working properly in SAP Server. My version of SAP is SBO 2007 A SP00 PL10.
Regards,
Michaelhere's the detailed error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
CrystalDecisions.Shared.CrystalReportsException Load report failed. --- System.Runtime.InteropServices.COMException (0x80004005) The device is not ready.
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.EnsureLoadReport()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database()
at SAP_CR.MyForms.frmReportViewer.ConfigureCrystalReports()
at SAP_CR.MyForms.frmReportViewer.frmReportViewer_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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)
Loaded Assemblies
mscorlib
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3620 (GDR.050727-3600)
CodeBase fileCWINDOWSMicrosoft.NETFrameworkv2.0.50727mscorlib.dll
SAP_CR
Assembly Version 2.0.0.7
Win32 Version 2.0.0.7
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRSAP_CR.exe
Interop.SAPbouiCOM
Assembly Version 8.0.0.0
Win32 Version 8.0.0.0
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRInterop.SAPbouiCOM.DLL
System.Windows.Forms
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Windows.Forms2.0.0.0__b77a5c561934e089System.Windows.Forms.dll
System
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3614 (GDR.050727-3600)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll
System.Drawing
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Drawing2.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll
CustomMarshalers
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32CustomMarshalers2.0.0.0__b03f5f7f11d50a3aCustomMarshalers.dll
Interop.CR_Crypto
Assembly Version 6.0.0.0
Win32 Version 6.0.0.0
CodeBase fileCProgram%20FilesSAPSAP%20Business%20OneAddOnsSAP_CRInterop.CR_Crypto.DLL
System.Data
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.Data2.0.0.0__b77a5c561934e089System.Data.dll
System.Configuration
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll
System.Xml
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3082 (QFE.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll
System.Transactions
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.Transactions2.0.0.0__b77a5c561934e089System.Transactions.dll
System.EnterpriseServices
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase fileCWINDOWSassemblyGAC_32System.EnterpriseServices2.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll
CrystalDecisions.Windows.Forms
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.Windows.Forms12.0.2000.0__692fbea5521e1304CrystalDecisions.Windows.Forms.dll
CrystalDecisions.Shared
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.Shared12.0.2000.0__692fbea5521e1304CrystalDecisions.Shared.dll
CrystalDecisions.ReportSource
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.ReportSource12.0.2000.0__692fbea5521e1304CrystalDecisions.ReportSource.dll
CrystalDecisions.CrystalReports.Engine
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.CrystalReports.Engine12.0.2000.0__692fbea5521e1304CrystalDecisions.CrystalReports.Engine.dll
System.Web
Assembly Version 2.0.0.0
Win32 Version 2.0.50727.3618 (GDR.050727-3600)
CodeBase fileCWINDOWSassemblyGAC_32System.Web2.0.0.0__b03f5f7f11d50a3aSystem.Web.dll
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.CommLayer12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.CommLayer.dll
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.ClientDoc12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.ClientDoc.dll
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version 12.0.2000.0
Win32 Version 12.0.2000.840
CodeBase fileCWINDOWSassemblyGAC_MSILCrystalDecisions.ReportAppServer.DataSetConversion12.0.2000.0__692fbea5521e1304CrystalDecisions.ReportAppServer.DataSetConversion.dll
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.DataDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.DataDefModel.dll
CrystalDecisions.ReportAppServer.Controllers
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.Controllers12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.Controllers.dll
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.CubeDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.CubeDefModel.dll
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version 12.0.1100.0
Win32 Version 12.0.1100.840
CodeBase fileCWINDOWSassemblyGACCrystalDecisions.ReportAppServer.ReportDefModel12.0.1100.0__692fbea5521e1304CrystalDecisions.ReportAppServer.ReportDefModel.dll
BusinessObjects.Licensing.KeycodeDecoder
Assembly Version 12.0.1100.0
Win32 Version 12.0.0.840
CodeBase fileCWINDOWSassemblyGACBusinessObjects.Licensing.KeycodeDecoder12.0.1100.0__692fbea5521e1304BusinessObjects.Licensing.KeycodeDecoder.dll
JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example
configuration
system.windows.forms jitDebugging=true
configuration
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box. -
Crystal Report Viewer Control error
Please Help, I have a web application developed in .net 2005 which is using crystal reports developer product version 10.0.0.533.
This web application with crystal is working fine on my local machine with OS windows xp, but on the windows server 2003 the application web form is running into "couldnot load file or assembly 'CrystalDecision.VSDesigner, Version=10.0.0.3300' or one of its dependencies"
I have compared the assembly information of my local machine with that of the server and could not see the crystaldecision.vsdesigner version 10.0.0.3300 on the server 2003. I have uninstalled microsoft .net 2005 and crystal reports and installed crystal first and visual studio .net 2005 next and vice versa but still could not see that particular assembly available in the windows 2003 server.
Please suggest as what to do for the assembly to be available on the server so crystal report viewer control can be created with out error. Thanks for any help.Hello Sunitha,
Visual Studios 2005 ships with a bundled edition of Crystal Reports. This bundled edition is based on the v10 code stream, but it is not CR10. It's CR.NET for Visual Studios and it's v10.2. Crystal Reports 10.0 and the bundled CR.NET 10.2 for VS2005 are not interchangeable.
The stand alone version of Crystal Reports 10 is not expected to integrate correctly into VS2005. If you have CR10 Developer installed on your VS2005 machine you can force VS2005 to use the CR10.0 assemblies, but it is not supported.
You need to clean up your application so that it's referencing the 10.2 version assemblies and then deploy the 10.2 runtime files. You can visit the [Crystal Reports for Visual Studio .NET Runtime Distribution - Versions 9.1 to 12.0|https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/crystalReportsruntimeforVisualStudio.NET] Wiki for a nice overview of the various versions of Crystal Reports, as well as a listing of the runtime files to match the version of Crystal Reports that is being used. For VS2005 and bundled CR.NET look at the "CR 10.2 (VS .NET 2005)" section of the Wiki.
Sincerely,
Dan Kelleher -
Crystal Report Viewer Microsoft JScript runtime error
When I use the crystal viewer control to render a report on the screen I receive the following error message:
Microsoft JScript runtime error: Object doesn't support property or method 'isObject' ... and the following line is hilighted:
if(!bobj.isObject(json)).
Here is the markup for the test page I'm using
{<body>
<form id="form1" runat="server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="true" ReportSourceID="crSource" />
<CR:CrystalReportSource ID="crSource" runat="server">
</CR:CrystalReportSource>
</form>}
I believe I set all info on crSource correctly (report path etc ...) because If I remove the Crystal reports viewer from the page and just use the crsource (i.e crptSource.ReportDocument.ExportToHttpResponse ...) I can export the report OK. Its only when I have the crViewer on the page Is when I recieve this error.
Web Config
<assemblies>
<add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
<add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
<add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<controls>
<add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagPrefix="CR" />
<http handlers>
<add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
appsettings
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
I am using crystal reports 2008, visual studio 2008, windows 7 pro, MS Sql Server 2005, IE9
I uninstalled crystal reports, and reinstalled crystal reports 2008 sp3 (Full build) - No help
When I goto help about visual studio it says crystal reports 2008 (No specific version info)
Assembly cache on the machine has
12.0.2000.0 and 12.0.1100.00 as the vast majority ... a few (Design and Engine) have older 10.5.3700 and so forth (There are so many)
I found this problem on the web with different solutions involving frame work folder or not having IIS setup to server the crystal reports viewer ... this is happening to me on my local development machine using the ASP.Net Develepoment server included with VS2008 ..
Any help you could give me would greatly be appreciated
Thanks in advance
KevinHi Kevin,
Take a look at below SAP Note.
[1531003 - Error: bobj undefined - javascript error |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333331333033303333%7D.do]
I got this result just by searching 'bobj is undefined javascript' in the top right search box.
Thanks,
Bhushan. -
Error With Export/Print from Crystal Report Viewer
Hello there,
I've searched through the web and SAP discussion boards with not much luck with this issue.
After working through this for some days now I've decided to look here for help.
Environment:
I have created a web Crystal Report viewer application(Developed with SBOP BI Platform 4.0 SP06 .NET SDK Runtime) that communicates with a managed Cyrstal Server 2011 SP4 (Product 14.0)
I am able to connect and authenticate with the server, retrieve a token for communication and display reports in the Crystal report Viewer successfully.
Problem:
When I attempt to export, I receive the prompt to select format and pages.
When I click export after selections most times I receive an error with the text
Unable to cast COM object of type 'System.__ComObject' to interface type 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{74EEBC42-6C5D-11D3-9172-00902741EE7C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Other times the page simply refreshes on export.
When I click to print, no print dialog is displayed the page always refreshes and no error is displayed.
No Print or Export document is ever created.
As many print/export issues seems to be related, I'm guessing this two issues are as well.
Notes:
I am utilizing the ReportClientDocument model
I am storing this in session to use as the crystal report viewer report source on postbacks
I am assigning a subset of export formats to the crystal report viewer
I am setting particular parameters as well on the report source
At this point I would appreciate every assistance I may receive on this issue
Thanks in advance,
Below is the pertinent code
Code:
<aspx>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="true" EnableDatabaseLogonPrompt="False"
BestFitPage="False" ReuseParameterValuesOnRefresh="True"
CssClass="reportFrame" Height="1000px" Width="1100px" EnableDrillDown="False"
ToolPanelView="None" PrintMode="Pdf"/>
<Codebehind>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CrystalDecisions.Enterprise;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.Shared;
namespace ClassicInternalReportPage
public partial class Reports : System.Web.UI.Page
protected override void OnInit(EventArgs e)
base.OnInit(e);
if (!String.IsNullOrEmpty(Convert.ToString(Session["LogonToken"])) && !IsPostBack)
SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession = sessionMgr.LogonWithToken(Session["LogonToken"].ToString());
EnterpriseService reportService = enterpriseSession.GetService("RASReportFactory");
InfoStore infoStore = new InfoStore(enterpriseSession.GetService("InfoStore"));
if (reportService != null)
string queryString = String.Format("Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "
+ "Where SI_PROGID='CrystalEnterprise.Report' "
+ "And SI_ID = {0} "
+ "And SI_INSTANCE = 0", Request.QueryString["rId"]);
InfoObjects infoObjects = infoStore.Query(queryString);
ReportAppFactory reportFactory = (ReportAppFactory)reportService.Interface;
if (infoObjects != null && infoObjects.Count > 0)
ISCDReportClientDocument reportSource = reportFactory.OpenDocument(infoObjects[1].ID, 0);
Session["ReportClDocument"] = AssignReportParameters(reportSource) ? reportSource : null;
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
//Viewer options
// Don't enable prompting for Live and Custom
CrystalReportViewer1.EnableParameterPrompt = !(Request.QueryString["t"] == "1" || Request.QueryString["t"] == "4");
CrystalReportViewer1.HasToggleParameterPanelButton = CrystalReportViewer1.EnableParameterPrompt;
CrystalReportViewer1.AllowedExportFormats = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
protected void Page_Load(object sender, EventArgs e)
if (IsPostBack && CrystalReportViewer1.ReportSource == null)
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
private bool AssignReportParameters(ISCDReportClientDocument reportSource)
bool success = true;
if (Request.QueryString["t"] == "1" || Request.QueryString["t"] == "2" || Request.QueryString["t"] == "4" )
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "STORE", Session["storeParam"]);
if (Request.QueryString["t"] == "2")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "FromDate", Request.QueryString["fromdate"]);
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "ToDate", Request.QueryString["todate"]);
else if (Request.QueryString["t"] == "3")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "SKU", Request.QueryString["sku"]);
else
//Unknown report type alert
success = false;
return success;Thanks Don for your response,
I'm new to the SCN spaces and my content has been moved a couple of times already.
In response to your questions
The runtime is installed on the web application server, if by that you mean the machine hosting the created .NET SDK application.
My question was whether it was also required on the Crystal Server 2011 (I.E. the main enterprise server with CMS and Report management and I guess RAS and all that). I figured this would remain untouched and queries would simply be made against it to retrieve/view reports e.t.c
If install of the SDK on Crystal Server 2011 is indeed required should I expect any interruption to any of the core services after a restart. I.E. I'm hoping that none of the SDK objects would interfere with the existing server objects (in SAP Business Objects)Reason I ask is I note that much of the SDK install directories are similar to the existing Crystal Enterprise Server 2011 (Product 14.0.0)
Is this temp folder to be manually created/configured or is it created by the application automatically to perform tasks. Or are you referring to the default C:\Windows\Temp directory and so saying that the application would try to use this for print and export tasks?Once I'm sure which I'd give the app pool user permission
Printing is to be client side but I figured by default (with the Crystal Report Viewer) it would simply pool and print from the user's printer. This is how it works with the previously used URL reporting approach (viewrpt.cwr). Therefore a user can print the document from wherever they are with their own printer.We don't intend on printing from the server machine, but are you suggesting that a printer must be installed on server (which one web or enterprise server) for any client side printing to work.
App pool is running in 32 bit mode
Initially didn't get anything useful from fiddler but I'd try and look closer on your suggestion.
It's also possible that some of my questions are a misunderstanding of APP vs RAS vs WEB, so please feel free to clarify. Currently I see the Web server as simply the created .NET SDK Application and RAS (Crystal Server 2011 e.t.c) as the existing fully established Application server which I simply pool for information.
Thank you for your patience and advice, -
Error when running Crystal Reports Viewer
Hello,
Has anyone come across this error before when opening the crystal report viewer?
'The CrystalReportsViewer executable launcher was unable to locate its companion launcher jar'
Any advice would be much appreciated.
Kind regards,
KateMoving to Crystal Reports forums - the "Crystal Reports Viewer" desktop application is built on the Crystal Reports Java SDK, but it's not a SDK issue.
The launcher executable just can't find the internal files it needs for its operation.
Sincerely,
Ted Ueda -
Crystal Report Viewer 2008 paging error. Unable to process your request
Hi everyone,
I encountered this error today when clicking on the next page button on the Crystal Report Viewer. I am running Crystal 2008 SP0. When i click on show detail i get this:
Programming Error520|/wEWPQL/uNqsCgKLovFcAtm0IoIAoScvAHAoqK76EFApyD1ugPApqWlPcMAsX1vAHAsX1198BAsCEq8AHAtuulPcMAoaMm/kHAoaMg/YCAoSGgI0OAs/lg/YCAsWelPcMArPesvYEAreG34oIAqKak5INAtzilMNAtD9h8wDApmmIoPAti0IoIApuWgI0OAubdht0DAsSe5NMPAqOak5INAqOa9/ICAr39wAOAp79l8IOApnFpvwJAo2nlP4BAsWFxAGAsHe54QMAs/Ok/EBAp7Eo3kCgvyr9gEC9POo2gkC2qGU/gEClfLUnAMCvuWnwQgCmuLjgg4Cnv3bgg8ChuPz6gMCpeOPzAMCl6zX3wECpuuLzAMC3eqToA4CvuWXgg4Czs7nhAwCveXvww0C3OrjoQ0C3eqn4wkCvuW7wQgCnv3Hgg8Cvf3b4A4Cnv2fwg4C0e7nhAwCxei3zAMCw97nhAwC6OONrwUYE9w8XzGf1oPuoIcvJLRvyIbTWg==
I have a simple .Net page that has a dropdown control that a user can select to pass the parameter for the report. I have a server side button that gets the report on the onclick event. The code behind is as follows:
protected void btnReport_Click(object sender, EventArgs e)
CrystalDecisions.CrystalReports.Engine.ReportDocument Myreport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
Myreport.Load(Server.MapPath("Reports/rpt_equipment_summary.rpt"));
ConnectionInfo crLoginInfo = new ConnectionInfo();
Database crDatabase;
Tables crTables;
CrystalDecisions.CrystalReports.Engine.Table crTable;
TableLogOnInfo crTableLogOnInfo;
crLoginInfo.ServerName = "----";
crLoginInfo.DatabaseName = "------";
crLoginInfo.UserID = "-----";
crLoginInfo.Password = "------";
//Get Table or SP information from report
crDatabase = Myreport.Database;
crTables = crDatabase.Tables;
//Loop through all tables in the report and apply the
//connection information for each table.
for (int i = 0; i < crTables.Count; i++)
crTable = crTables<i>;
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo =
crLoginInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
//Add Parameter
ParameterField paramField = new ParameterField();
ParameterDiscreteValue spValue = new ParameterDiscreteValue();
ParameterFields ParamFields = new ParameterFields();
paramField.Name = "@txComments";
spValue.Value = ddlPastInvoices.SelectedValue.ToString();
paramField.CurrentValues.Add(spValue);
ParamFields.Add(paramField);
CrystalReportViewer1.ParameterFieldInfo = ParamFields;
CrystalReportViewer1.ReportSource = Myreport;
Is there something i am missing for paging to work?
Thanks in advanceSorry i forgot to include more information.
.Net 3.5 and I can view this report fine in Crystal report designer. I get no error message when I switch pages. The issue happens when i view the report inside a Crystal report viewer control that i have on the page.
<%@ Register assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
I haven't tried your sample reports. Where can i find those? i have other reports with multiple pages so I can also try using those reports as well.
Thanks again,
Pablo -
CRVS2010 Beta - Report Viewer Errors for Crystal Reports in VS 2010
I have a project that was written in VS 2008 targeting the 3.5 framework which contains a ton of Crystal Reports. I recieved my new license for VS 2010 and did the install along with the Crystal Reports for Visual Studio 2010 Beta 2. I converted my project over successfully. I am able to open up the reports on their own. When I try to save them they want to be converted to the new format. This also works fine. My problem is the Crystal Reports Viewer. I am not able to add any reports to the viewer without receiving error messages. I have tried using the 10.5 and the latest version of the viewer, but receive errors everytime that I try to add a report to it. I always recevie the following error:
"Error invoking 'Choose a Crystal Report...'. Details: Invalid Report Source"
I have also tried just creating a brand new report from the Crystal Report Viewer Tasks window. When I do that I get this error:
"Unable to find the report in the manifest resources. Please buld the project, and try again." "Error invoking 'Create a New Crystal Report...'. Details: Unable to find the report in the mnifest resources. Please build the project, and try again."
I have tried changed the framework target to 4.0, but this has not helped. I have tried using the 14.0 versions of the references and the 10.5 versions. I have searched all over the internet for a resolution, but can't seem to find one. Any help would be greatly appreciated.I am having the same problem. You say make sure all of my assemblies are version 14. Three questions:
1. Now that I have removed all of the old Crystal assemblies from my project, what are the assemblies that I need to add back?
2. My VS 2010 "add references" popup shows me many crystal assembles (Crystal XI is also installed) which ones to I need to install now?
3. If I don't know what they are, or where to find them, how do I determine their version?
You solution reminds me of the old saying "If I had ham, I could make ham and eggs. If I had eggs!"
More information please,
J Rich
Edited by: JosephRich on Nov 6, 2010 5:36 PM
Edited by: JosephRich on Nov 6, 2010 5:39 PM -
Memory Full Error in Crystal Reports Viewer
Environment:
Windows 7 64 Bit
Crystal Reports for Visual Studio Version 13.0.13.1597
SQL Server Database
Connecting with OLE BD (ADO)
I am previewing a report in the Crystal Reports Viewer and it instantly returns an error pop-up "Memory Full". When I run the report in the runtime environment on the same machine everything is fine. Other reports will run in the viewer. There seems to be a problem with just this one. This Report runs on a different machine with the same setup other than it is running 13.0.8.
I tried upgrading from 13.0.8 to the version above and there was no difference.
Any ideas?
Thanks,
KobyUse Modules or ProcessMonitor and compare what is missing between your DEV PC and Runtime Only PC.
May give you a clue as to what is missing or if it's permissions, DB client or third party dependencies.
Windows or WEB App?
Don -
Page Not Found Error when clicking on Crystal Report Viewer print icon
Hi,
I am working with ASP.NET 2.0 and crystla reportXI release2.
I am getting "Page Can not be Found " error when clicking on Crystal Report Viewer print icon.
Could you please tell me how to get rid of this error?
Regards,
SmithaThis sounds like a postback issue. Does your application handle postback by putting the report in session?
There is a [sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip] to look at on our website. It was created with Crystal Reports XI R2 and Visual Studio .NET but the code will be the same.
A short pseudocode would be something like this:
Dim rptDocument As ReportDocument
If Not Me.IsPostBack or Session("Report") = Nothing Then
rptDocument = New ReportDocument
rptDocument.Load(sGlobalPath & "\myreport.rpt";)
Ludek -
Crystal Report Viewer Session Time out error ( FWM 01002)
Hi,
We are using java 1.4 and Teradata base with BO XI 3.0
I am getting the following error when click on icons (Export, Print, Paging) within Crystal Report Viewer.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unable to
reconnect to the CMS [servername]. The session has been logged off or has expired. (FWM 01002) [RASLIB9038]---- Error code:-2147215357
Error code name:internal at
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source) at
com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.a(Unknown Source) at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.getLastPageNumber(Unknown Source) at com.businessobjects.report.web.b.a.do(Unknown Source) at
com.businessobjects.report.web.event.q.a(Unknown Source) at com.businessobjects.report.web.event.q.a(Unknown Source) at com.businessobjects.report.web.event.k.a(Unknown Source) at com.businessobjects.report.web.event.bt.broadcast(Unknown Source) at com.businessobjects.report.web.event.ak.a(Unknown Source) at com.businessobjects.report.web.a.q.if(Unknown Source) at com.businessobjects.report.web.e.a(Unknown Source) at com.businessobjects.report.web.e.a(Unknown Source) at com.businessobjects.report.web.e.if(Unknown Source) at
com.crystaldecisions.report.web.viewer.CrystalReportViewerUpdater.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.if(Unknown Source) at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at
If I let the report sit for 30 minutes or so, the icons will work. The u201Csession
timeout error messageu201D is kind of misleading. I have updated the JDBC drivers to version 13.0 for Teradata (terajdbc4.jar and tdgssconfig.jar) and did not see improvement.
Can anyone please help?
Thanks!
Edited by: Yingchiu Ou on May 12, 2010 12:42 AMI see the viewer, but not the attendant EnterpriseSession nor what the ReportSource is connected to.
Since the error message explicitly states issues with EnterpriseSession lifetime, it'll be good to give the above info.
Sincerely,
Ted Ueda
Maybe you are looking for
-
How should I report forum performance issues?
The forums rely heavily on the caching features of browsers to improve the speed of page rendering. Performance of these forums should greatly improve after a few pages because more and more of the images, css and javascript is cached in the browser.
-
Does iTunes match need to locate the actual files or just see its record in your library database? I am currently traveling in US and I have US and Australian iTunes accounts. But all my music files are on a hard drive in Australia. Can I start using
-
Creating hyperlinks in InDesign for epubs
Hi everybody, When I view epub files in Adobe Digital Editions, the hyperlinks I create in InDesign all have a blue underline. The text color, red in this case, appears just fine. The underline is being applied by the epub reader, or so it seems. Is
-
How to dedicate Queues for Particular scenario
Folks, How we can dedicate queues to a particular scenario. I have a unique requirement , I need to dedicate XBQSx kind of queues to particular Scenario. Thanks, Manish Kosarkar
-
ACPI tables, Resource conflict, Dell Dimension 8100 - need Solaris 7
I just bought a new Dell Dimension 8100 and I am getting the same error as SunilPP, "ACPI tables not in reclaim memory" and "Recourse conflict, both devices are added NON ACPI device ...". One of the solutions suggested on this forum is to install So