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,

Similar Messages

  • How to print directly to Printer from Crystal Report Viewer ?

    Hi All,
    We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
    Now there is new requirement :
    Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
    So I am looking at  Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
    Thank you very much,
    Krist
    Indonesia

    Hi,
    It can't be achieved through XI.
    JRCXI R2 SDK offers the ability to print the report server side
    using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
    Here is the code(for XIR2):
    import="com.crystaldecisions.reports.sdk.*"
    import="com.crystaldecisions.sdk.occa.report.lib.*"
    import="com.crystaldecisions.sdk.occa.report.document.*"
    try {
    final String REPORT_NAME = "Inventory.rpt";
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    //Create and set print options.
    PrintReportOptions printOptions = new PrintReportOptions();
    //Note: Printer with the 'printer name' below must already be configured.
    printOptions.setPrinterName("
    10.10.45.220
    BOBJ 2C");
    printOptions.setJobTitle("Sample Print Job from JRC.");
    printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
    printOptions.setPaperSource(PaperSource.auto);
    printOptions.setPaperSize(PaperSize.paperLetter);
    printOptions.setNumberOfCopies(1);
    printOptions.setCollated(false);
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
    printOptions.addPrinterPageRange(printPageRange);
    //NOTE: If parameters or database login credentials are required, they need to be set before.
    //calling the printReport() method of the PrintOutputController.
    reportClientDoc.getPrintOutputController().printReport(printOptions);
    reportClientDoc.close();
    out.println("Successfully sent report to the printer.");
    catch(ReportSDKException ex) {     
         out.println(ex);
    Please revert in case you have any query.
    Thanks,
    Neeraj

  • Printing from Crystal Reports Viewer

    I have an issue with a customer demanding to print Post Script from Crystal Report Viewer.  When we print using the PS driver we get the form, but the data is blank.  If we use PCL the report prints fine.  Is there any recommendations for using PCL or PS.  Customer says that Crystal reports are Post Script driven and the PS driver should work.  Any help with this would be appreciated.

    Thank you Mariellen for posting the solution.
    Also note that we have only tested the Zebra Printer with the Zebra Print Drivers. I worked with their developers and they said all drivers use the same under laying code so they should all work.
    The other requirement is you must define your paper size in the driver config tool for each size you are going to use, have a separate Printer defined on your PC.
    Thank you
    Don

  • Printing from Crystal Report Viewer in Powerbuilder

    I have a Crystal Report Viewer Control placed on a Powerbuilder window. I have my own Print button placed on the window. The code I have in the clicked event of this button is as follows
    g_ole_crx_report.PrintOut(True,1,False)
    This code displays a Print dialog box where I can select the printer.
    I want to implement a functionality which checks whether the printing was successful . If it was successful I want to update a table in the DB else do not update.If I click Cancel on the Print dialog the DB table should not be updated.
    Is it possible to implement such functionality?
    I am using CR XI RDC with Powerbuilder 9.0.
    Thanks,

    Only option I can think of, is to create your own printer dialog and capture the cancel print event there.
    You will not be able to get at the print cancel event of the printer dialog displayed by the CR viewer print button.
    Ludek

  • 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,
    Michael

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

  • Can't Print Landscape from Crystal Reports Viewer XI

    Post Author: conrad
    CA Forum: General
    Product: Crystal Reports Viewer XI, version 12.0.0.r130_v20070725 and
    Crystal Reports XI, version 11.0.0.1282
    Patches Applied: none
    Operating System(s): XP Pro SP2
    Database(s):
    Error Messages: noneSteps to Reproduce:
    Download and install Crystal Reports Viewer XI
    Open a Crystal Report that prints landscape.
    Save report with data.
    Open that report with Crystal Reports Viewer XI.  Report will display landscape.
    Click Print..OK
    Viewer will attempt to scale output to fit on portrait paper, with varying degrees of success.
    Checking the properties of the report from Viewer (File...Report Properties...) shows a "Page Orientation" of "Landscape" and a message "Page Orientation and size defined by the application (no page information set by report author)."
    Any ideas on how to get the report to print landscape?  It prints that way from Crystal Reports XI.

    Hello Glenda,
    as you refer to the legacy technology I recommend to post this query to the [Legacy Application Development SDKs|SAP Crystal Reports - Legacy SDKs; forum.
    This forum is dedicated to topics related to legacy SDKs, including the Report Designer Component (RDC), OCX, VCL, and Crystal Reports Print Engine (CRPE).
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Legacy Application Development SDKs queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • JNDI error while generating pdf from crystal reports in java

    Hi, i want to generate PDF from crystal reports in java. I have the .PDF file with database configured into the report. Following details are available in report.
    1. Server Name      = testdb
    2. Database Name  = testdb
    3. User
    4. Password
    I am using CR XI.
    In CRConfig.xml i had given following details.
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@192.218.216.102:1521://TESTDB</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>user</JDBCUserName>
         <JNDIURL>password</JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>testdb</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
         </GenericJDBCDriver>
    </JDBC>
    When i am calling from java as standalone, i am getting following error.
    JRCAgent1 detected an exception: Error finding JNDI name (testdb)
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)      at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
    Can anyone let me know where is the problem?

    Actually, the question boils down to; does the framework support the fonts?
    I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
    I believe if you use the code below, it will list fonts available to the framework:
    foreach(FontFamily ff in FontFamily.Families)
    System.Diagnostics.Debug.WriteLine(ff.Name);
    For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|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%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
    Ludek

  • Cannot Send Email from Crystal Reports Viewer; MAPI:Overflow

    I am trying to send a report via email with crystal reports, but i get the following error message:
    "The following unexpected error occured while trying to send the report to MAPI: Overflow."
    I am using Outlook 2010, Win 7 x64 bit.
    Does anyone have any ideas or thoughts?

    Yes, it is a 3rd party app that opens Crystal Reports Viewer.  Attached are the screen shots I get when try to send the report as an email.
    -Dan

  • Help with calling packages from crystal reports

    hi I am trying to call a package from crystal reports, but geting an error
    Failed to open a rowset
    4200:datadirect:odbcdriver:odbc oracle driver: unrecognised escape sequence.
    im sure its somthing realy stupid im doing wrong any ideas????
    the command in crystal is
    {CALL  Enhanced_Pharos_Report.run_report
    (NVL({?var_detail_id},0))}
    the package, which works as a stand alone object is
    ----------spec------------------
    create or replace package Enhanced_Pharos_Report
    AS
    TYPE result_set_type IS REF CURSOR;
    PROCEDURE run_report
    (var_detail_id NUMBER, v_Media_Object_Name out varchar2);
    end;
    -----------body-----------------------
    create or replace package body Enhanced_Pharos_Report as
    v_Media_Object_Name varchar2(300);
    function Media_Object_Name(var_Detail_id Number) return varchar2 as
    Result varchar2(300);
    begin
    SELECT promo_name
    INTO Result
    FROM promo
    WHERE promo_id = (SELECT promo_id
    FROM promo_plan
    WHERE promo_plan_id = (SELECT promo_plan_id
    FROM event_promotion
    WHERE detail_id = var_Detail_id));
    return(Result);
    end Media_Object_Name;
    PROCEDURE run_report
    (var_detail_id NUMBER, v_Media_Object_Name out varchar2)
    is
    begin
    v_Media_Object_Name := Media_Object_Name (var_detail_id);
    end;
    end;

    Are you able to view your report on the browser in the format:
    http://myserver:portno/report_name.rpt

  • Problem with vertical text in crystal report viewer

    Hi,
    I am displaying vertical text in crystal report designer and deploying the report in crystal reports server 2008. The deployed report is being displayed using JAVA in crystal report viewer control.
    Problem: Vertical text header  is getting collapsed wth other vertical headers.
    Please help on this.
    Thanks,

    Hi Vijay,
    I found out another method of retaining all the chart formatting that is done in the preview pane.
    Once you have done all the changes then you will find interestingly there is a chart menu option that appears in the tool bar. Once you click on it there is an option "Apply Changes to All Charts".
    Select that option, close your preview. Open it once again and you will find that all the settings are still there and the Web Viewer is able to display them properly.
    I think that I resolved this.
    Regards,
    Gourav

  • Cannot export crystal report in excel format from crystal report viewer

    This problem occurs on only one workstation.
    Open Advanced Reports > Enter workorder # > Click on 'workorder work(uninvoiced)' > Work order opens.
    Click on icon "Export report"
    Save as type: change to .xls
    Error: Crystal Report Windows Forms Viewer. Error in file
    SAP.......rpt:
    Error detected by export DLL:
    Export failed.

    Try adding c:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to your windows enviroment variable PATH then restart.

  • Error connecting to database from Crystal Report

    Hi,
    I am using Crystal report 2008, .NET 3.5 on Windows Server 2008 + SQL Server 2008
    I have a batch that generates report (via export) then this batch will send the exported report via email.
    I am encountering this error when reading report from BO Server
    Error: CrystalDecisions.CrystalReports.Engine.LogOnException: Database logon failed. ---> System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
    While when trying to read the report from physical file within the server, it will give me this error
    Error: CrystalDecisions.CrystalReports.Engine.InternalException: Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2812 ]
    Failed to retrieve data from the database.
    Error in File IAREPORT {92DFCAFC-58AC-4CB3-B9DD-A9565E07088D}.rpt:
    Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2812 ] ---> System.Runtime.InteropServices.COMException (0x800002D3): Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2812 ]
    Failed to retrieve data from the database.
    Error in File IAREPORT {92DFCAFC-58AC-4CB3-B9DD-A9565E07088D}.rpt:
    Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2812 ]
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
    The report is working in our SIT environment but it is not working in our UAT environment.
    I have tried the following:
    1) running the batch (that generates the report) in SIT environment to call SIT database
    Working fine
    2) running the batch (that generates the report) in SIT environment to call UAT database
    Will give the above error
    3) running the batch (that generates the report) in UAT environment to call UAT database
    Will give the above error
    4) running the batch (that generates the report) in UAT environment to call SIT database
    Working fine
    For reading report from BO Server, I have tried viewing the report directly and scheduling the report directly from BO Server and it works fine.
    Also I have tried to 'verify database' on the UAT report, but it seems it didn't solve the issue.
    Does anyone have any idea how to solve this? Or what could cause this?
    Appreciate your help.
    Thanks.

    Here's how I connect to the database
    when reading report from bo server:
    Dim enterpriseSession As CrystalDecisions.Enterprise.EnterpriseSession
                Dim enterpriseService As CrystalDecisions.Enterprise.EnterpriseService
                Dim infoObjects As CrystalDecisions.Enterprise.InfoObjects
                Dim infoObject As CrystalDecisions.Enterprise.InfoObject
                Dim infoStore As CrystalDecisions.Enterprise.InfoStore
                Dim query As String = ""
                query = "SELECT * FROM CI_INFOOBJECTS WHERE SI_PROGID = 'CrystalEnterprise.Report' AND SI_NAME LIKE '" & reportName & "'"
                'Create a session manager
                Dim sessionMgr As New CrystalDecisions.Enterprise.SessionMgr
                'Log into BusinessObjects Enterprise
                enterpriseSession = sessionMgr.Logon(cu.BOXIUser, cu.BOXIPwd, cu.BOXIServer, cu.BOXIAuthentication)
                'Create the infostore object
                enterpriseService = enterpriseSession.GetService("InfoStore")
                infoStore = New CrystalDecisions.Enterprise.InfoStore(enterpriseService)
                infoObjects = infoStore.Query(query)
                If (infoObjects.Count > 0) Then
                    infoObject = infoObjects(1)
                    crDoc.Load(infoObject, enterpriseSession)
                    crDoc.SetParameterValue("@batchID", batchID)
                    Dim CrExportOptions As ExportOptions
                    Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions()
                    Dim CrPDFFormatOptions As New PdfRtfWordFormatOptions
                    Dim CrExcelFormatOptions As New ExcelFormatOptions
                    CrDiskFileDestinationOptions.DiskFileName = reportFile
                    CrExportOptions = crDoc.ExportOptions
                    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = IIf(reportFormat = IAConstant.PDF, _
                                                ExportFormatType.PortableDocFormat, _
                                                IIf(FINRptFormat = IAConstant.EXCELONLY, _
                                                ExportFormatType.ExcelRecord, ExportFormatType.Excel))
                        .DestinationOptions = CrDiskFileDestinationOptions
                        .FormatOptions = IIf(reportFormat = IAConstant.PDF, _
                                             CrPDFFormatOptions, CrExcelFormatOptions)
                    End With
                    crDoc.Export()
                Else
                    Throw New ApplicationException(Constant.APP_ERR & " - Report not found")
                End If
    The error is thrown when trying to export --> crDoc.Export()
    The username and password are correct because it is the same username and password that the batch used to extract the data in the initial stage.
    Here's how my batch works:
    1) Extract and massage data directly from .net SP (this is working fine)
    2) Obtain the report then use the same connection string (for physical path report) or use the report connection string (for bo server report), this report is using Stored Procedure (the problem starts here)
    For reading report from bo server, I have also checked that the connection from the report itself is correct, because we can schedule/view the report from bo server successfully.
    SQL Driver, is it the SQL Native Client you are saying? It's SQL Native Client 10.
    I think we are using Business Objects Enterprise XI 3.1 Client Tools SP2 in our apps server.

  • How to set default export format in Crystal Reports Viewer

    When Viewing Crystal Reports, the top left button can choose export file format, how to set it default to Excel?
    If we can only go with hidden the button, and create a new button, any one can kindly provide how to?
    The BOE version is XI R2 SP2.
    Thanks in advance!
    Jennie

    hi all , i have same problem like i want only 1 report to be generated like for ex:only PDF should be generated n all others has to be disabled. my jsp is as follows:
    <%@page import="com.abc.def.crystalReports.JRCHelper,
    com.crystaldecisions.reports.reportengineinterface.*,
    com.crystaldecisions.report.web.viewer.CrystalReportPartsViewer,
    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,
    com.crystaldecisions.report.web.viewer.*,
    com.crystaldecisions.sdk.occa.report.exportoptions.*,
    java.sql.Connection,
    java.sql.DriverManager,
    java.sql.ResultSet,
    java.sql.SQLException,
    java.sql.Statement,
    java.util.ResourceBundle"%><%
         // 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 {
              ResourceBundle messageBundle = ResourceBundle.getBundle("resources.ApplicationResources");
              String reportName = messageBundle.getString("report.path");
              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);
                   // ****** BEGIN CHANGE DATASOURCE SNIPPET **************** 
                        String connectString = "jdbc:oracle:thin:@****:db;
                        String driverName = "oracle.jdbc.driver.OracleDriver";
                        String JNDIName = "";
                        String userName = "root";               // TODO: Fill in database user
                        String password = "root";          // TODO: Fill in password
                        // Switch all tables on the main report and sub reports
                        JRCHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
                   // ****** END CHANGE DATASOURCE SNIPPET ****************      
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                        // Create the CrystalReportViewer object
                        CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                        ReportExportControl exporter = new ReportExportControl();
                        //     set the reportsource property of the viewer
                        JPEReportSourceFactory rptSrcFactory = new JPEReportSourceFactory();
                        IReportSource reportSource = (IReportSource)rptSrcFactory.createReportSource(reportName,request.getLocale());
                        Boolean b1 = new Boolean(messageBundle.getString("Toggle.Group.TreeButton"));
                        Boolean b2 = new Boolean(messageBundle.getString("Has.ExportButton"));
                        Boolean b3 = new Boolean(messageBundle.getString("Has.SearchButton"));
                        Boolean b4 = new Boolean(messageBundle.getString("Display.GroupTree"));
                        Boolean b5 = new Boolean(messageBundle.getString("Has.Logo"));
                        Boolean b6 = new Boolean(messageBundle.getString("Display.Toolbar"));
                        crystalReportPageViewer.setHasToggleGroupTreeButton(true);
                        crystalReportPageViewer.setHasExportButton(true);
                        crystalReportPageViewer.setHasSearchButton(false);
                        crystalReportPageViewer.setDisplayGroupTree(false);
                        crystalReportPageViewer.setHasLogo(false);
                        crystalReportPageViewer.setOwnPage(true);
                        crystalReportPageViewer.setOwnForm(true);
                        crystalReportPageViewer.setReportSource(reportSource);
                        crystalReportPageViewer.processHttpRequest(request, response, application, null);
                        IReportSource reportSource = (IReportSource)rptSrcFactory.createReportSource(reportName,request.getLocale());
                        //CharacterSeparatedValuesExportFormatOptions csvOptions = new CharacterSeparatedValuesExportFormatOptions();
                        ExportOptions exportOptions = new ExportOptions();
                        //exportOptions.setExportFormatType(ReportExportFormat.characterSeparatedValues);
                        //exportOptions.setExportFormatType(ReportExportFormat.PDF);     
                        exportOptions.setExportFormatType(ReportExportFormat.characterSeparatedValues);
                        exporter.setReportSource(reportSource);
                        exporter.setExportOptions(exportOptions);
                   //exporter.setExportAsAttachment(true);
                        exporter.processHttpRequest(request, response, application, null);
                   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    if i want to add custom button where to add

  • Printing from Crystal Reports

    I now have the crystal report running successfully on the windows 7 machine. It come up on the screen OK, but when I try to print the report it does not show any printers available to print to. Hopefully this would be a simple fix
    Running windows 7 Home premium with 64 bit.
    Microsoft Visual Studio 2005
    Development machine is running windows xp pro.
    Jerry

    Hi,
    Please go through [this|VS2005 Crystal Report Print Report Button is not working on Windows 7 x64; thread.
    Regards,
    Priyanka
    Edited by: priyanka12 on Aug 26, 2010 12:55 AM

  • Get entire record from Crystal report viewer

    Hi,
    I'm using Crystal 2008 .Net components to view reports from within an application.
    I would like to write a custom drill down event so that users can link back from a record on the report they are previewing to somewhere else in the application. In order to do this I need access to the whole record's data for the object that they clicked on.
    It's not really much good if I just have the value, name and table of the field they clicked on, since it is probably not a unique value within that table, and therefore I couldn't drill back to the specific record they selected. Also, if it's not a database field in the first place then I have no way of going anywhere. But if I can get the whole record they are on then I'll already know which primary key field I want, and I could then get the appropriate value from the record.
    Is this possible?
    Richard

    You can get at specific objects using events,  but not a whole record.
    Can't think of any way of doign this at all...
    Ludek

Maybe you are looking for