Running a crystal reports viewer from forms

Greetings,
I am using Oracle Forms 10g!!
I have a form that is used to invoke a crystal report viewer using the HOST command. The viewer has the ability to pass in a id and password. When I try to run it I get:
Logon failed.
Details: IM003:Specified driver could not be loaded due to system error 998 (Oracle in Oracle_HOME)
The report runs fine otherwise.
Regards,
Bill Chadbourne

I have the following in my WHEN-BUTTON-PRESSED trigger:
CLIENT_HOST('cmd /c "C:\Program Files\Jeff-Net Report Runner Viewer\JNRRE.EXE" jnreport=H:\OC\Computer Services\Oracle Database\DFACrystalReports\EPA_PTS\COST_RECOVER.RPT jnid=rs_ray jnpassword=rs_ray') ;
When I click the button I receive:
Logon failed.
Details: IM003:Specified driver could not be loaded due to system error 998 (Oracle in Oracle_HOME)
If I change the trigger text to:
CLIENT_HOST(' cmd /c "C:\Program Files\Jeff-Net Report Runner Viewer\JNRRE.EXE jnreport=H:\OC\Computer Services\Oracle Database\DFACrystalReports\EPA_PTS\COST_RECOVER.RPT jnid=rs_ray jnpassword=rs_ray" ') ;
(From the CMD window) 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
I would rather not use a .bat file, if possible.
Regards,
Bill Chadbourne

Similar Messages

  • Problem to run the Crystal report inside from SAP B1 based on SQL views.

    Hello,
    I have a problem to run my Crystal report inside from SAP B1 which is based on SQL views.And the SQL views are stored in a separate database in SQL server.The error which i am getting is saying the the tablename does not exist.What i need to do in order to sort this problem.
    Great if somebody can help me to sort out this so that i can run my report based on SQL views stored on separate database other than SAP databases inside from SAP B1.
    Edited by: rozenagrawal on Apr 19, 2011 11:51 AM

    Try using a SQL synonym in your company database for the views outside the company database. I don't know if SBO will let you get away with it, but its worth a shot.
    If your company database is MyCompany and you have a view called MyView in Views database, assuming the view belongs to schema dbo, and you want the synonym to belong to dbo schema in your company database, run this:
    Use MyCompany
    go
    create synonym dbo.OutsiderView for
    Views.dbo.MyView
    go
    select * from OutsiderView
    The select statement should return the contents of MyView in the Views database while you are connected to your MyCompany database.
    For more info, see the Books Online for MSSQL on topic synonym.
    You will need to change your CR options to include displaying synonyms along with tables, views, etc. You may also need to grant select to B1 users.
    Edited by: Cindy Lange on Apr 21, 2011 4:00 PM

  • Crystal report viewer from portlet

    Hi,
    I have a problem with opening Crystal report viewer from portlet. I am using Spring portletMVC but this doesnt matter in this case. After clicking some button a controller process form in method where is access to ActionRequest, ActionResponse. But how can I "redirect" with some parameters to plain JSP page where I can write something like this:
    CrystalReportViewer viewer = new CrystalReportViewer();
         viewer.setReportSource(rcd.getReportSource());
         viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
         viewer.dispose();
    Oh, perharps is understandable, sorry for my English and thanks for helping. Any code of link would be wonderful.

    I haven't worked with Crystal Reports in quite awhile, but in the past I've written code to launch Crystal Reports using OLE. If I recall correctly, there existed an ActiveX control that could be embedded into VB forms, and the like. I'm unsure, however, whether they continue to support this mechanism. Given that your requirements do not allow CLIENT_HOST or DDE, however, I am guessing that OLE automation would also be unacceptable.
    Have you looked at WEB.SHOW_DOCUMENT?
    Eric Adamson
    Lansing, Michigan

  • Calling Crystal Reports XI from Forms 10g

    Any one succeed in calling Crystal Reports XI from Forms 10g,
    or using Import Java Class in Forms 10g
    to call Crystal Reports XI
    or any other method to invoke crystal Reports XI from FORMS
    share your Knowledge to OTN
    please provide me the steps,documents to [email protected]
    Message was edited by:
    user501763

    Hi,
    Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
    -Arun

  • Problem showing the crystal report viewer in form after added the component on it

    Greetings
    I have a problem running a program. I created a form which I added the component Crystal Report Viewer perfecty but during program execution when I call that form my VS 2012 Ultimate show the following error:
    Translated:
    Failed to create the form. See Exception.InnerException for details. Error: An exception occurred in the type initializer for 'CrystalDecisions.Shared.SharedUtils'.
    Note: If I remove the component from the form. the applications runs fine when calling the form without the component CrystalReportViewer
    It is something related to my VS? o just that the actual version 13.0.9 is not yet compatible?

    Report.Show?
    How about you try:
    CrystalReportViewer1.ReportSource = <path to your report>
    Or:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    crReportDocument.Load(<path to your report>)
    CrystalReportViewer1.ReportSource = crReportDocument
    Or, if the report is added to the project:
    crReportDocument = New test
    CrystalReportViewer1.ReportSource = crReportDocument
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    Message was edited by: Ludek Uher

  • Error in the integrated Crystal Reports viewer from SAP 8.8

    Hi, we recently started using the integrated crystal reports from 8.8 and ocasionally the viewer throws the following error:
    Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
    Just-In-Time (JIT) en lugar de a este cuadro de diálogo.
    ************** Texto de la excepción **************
    System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
       en CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e)
       en System.Windows.Forms.Control.WmMouseMove(Message& m)
       en System.Windows.Forms.Control.WndProc(Message& m)
       en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       en System.Windows.Forms.ContainerControl.WndProc(Message& m)
       en System.Windows.Forms.UserControl.WndProc(Message& m)
       en CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m)
       en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Ensamblados cargados **************
    mscorlib
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4206 (VistaSP2GDR.050727-4200)
        Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    B1CRBridge
        Versión del ensamblado: 1.0.0.0
        Versión Win32: 8.80.235
        Código base: file:///C:/Program%20Files%20(x86)/SAP/SAP%20Business%20One/B1CRBridge.DLL
    CrystalDecisions.CrystalReports.Engine
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/12.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
    System
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4205 (VistaSP2GDR.050727-4200)
        Código base: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    CrystalDecisions.Shared
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
    CrystalDecisions.ReportAppServer.CommLayer
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.CommLayer/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
    System.Windows.Forms
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Configuration
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Xml
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    CrystalDecisions.ReportAppServer.ClientDoc
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.ClientDoc/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
    System.Data
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    CrystalDecisions.ReportAppServer.DataSetConversion
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
    CrystalDecisions.ReportAppServer.DataDefModel
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.DataDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
    CrystalDecisions.ReportAppServer.Controllers
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.Controllers/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
    CrystalDecisions.ReportAppServer.CubeDefModel
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.CubeDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
    CrystalDecisions.ReportAppServer.ReportDefModel
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.ReportDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
    BusinessObjects.Licensing.KeycodeDecoder
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.2.753
        Código base: file:///C:/Windows/assembly/GAC/BusinessObjects.Licensing.KeycodeDecoder/12.0.1100.0__692fbea5521e1304/BusinessObjects.Licensing.KeycodeDecoder.dll
    System.Web
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4209 (VistaSP2GDR.050727-4200)
        Código base: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    CrystalDecisions.Shared.resources
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared.resources/12.0.2000.0_es_692fbea5521e1304/CrystalDecisions.Shared.resources.dll
    CrystalDecisions.CrystalReports.Engine.resources
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine.resources/12.0.2000.0_es_692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.resources.dll
    System.Web.Services
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
    CrystalDecisions.ReportSource
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
    CrystalDecisions.Enterprise.Framework
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.2.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.Enterprise.Framework/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.Framework.dll
    CustomMarshalers
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
    CrystalDecisions.ReportAppServer.XmlSerialize
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.XmlSerialize/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll
    mscorlib.resources
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4206 (VistaSP2GDR.050727-4200)
        Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    CrystalDecisions.Windows.Forms
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
    CrystalDecisions.Windows.Forms.resources
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms.resources/12.0.2000.0_es_692fbea5521e1304/CrystalDecisions.Windows.Forms.resources.dll
    CrystalDecisions.Enterprise.InfoStore
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.2.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.Enterprise.InfoStore/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.InfoStore.dll
    CrystalDecisions.Enterprise.Viewing.ReportSource
        Versión del ensamblado: 12.0.1100.0
        Versión Win32: 12.3.1102.753
        Código base: file:///C:/Windows/assembly/GAC/CrystalDecisions.Enterprise.Viewing.ReportSource/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.Viewing.ReportSource.dll
    CrystalDecisions.Web
        Versión del ensamblado: 12.0.2000.0
        Versión Win32: 12.3.2002.753
        Código base: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Web/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Web.dll
    FlashControlV71
        Versión del ensamblado: 1.0.3187.32366
        Versión Win32: 1.0.3187.32366
        Código base: file:///C:/Windows/assembly/GAC/FlashControlV71/1.0.3187.32366__692fbea5521e1304/FlashControlV71.dll
    System.Windows.Forms.resources
        Versión del ensamblado: 2.0.0.0
        Versión Win32: 2.0.50727.4016 (NetFxQFE.050727-4000)
        Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
    ************** Depuración JIT **************
    Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
    aplicación o equipo (machine.config) debe tener el
    valor jitDebugging establecido en la sección system.windows.forms.
    La aplicación también se debe compilar con la depuración
    habilitada
    Por ejemplo:
    <configuration>
        <system.windows.forms jitDebugging="true"></system.windows.forms>
    </configuration>
    Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
    se enviará al depurador JIT registrado en el equipo
    en lugar de controlarlo mediante el cuadro de diálogo.
    Edited by: Vangelis Sanchoyerto on Dec 23, 2010 10:20 AM

    The  tag doesnt work? :S

  • 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
    Kevin

    Hi 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,

  • Crystal Report Viewer ActivX Control into an SAP Form

    Hi
    I need to show an Crystal Report Viewer in a SAP form This code show an blanck from.
    I know that only ATL activX are supported by SB1, but I don’t have more information about the Crystal ActivX.
    Dim oFormTST As SAPbouiCOM.Form
    Dim oCreatP As SAPbouiCOM.FormCreationParams
    oCreatP = oApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
    oCreatP.UniqueID = "TEST"
    oCreatP.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
    oCreatP.FormType = "TESTFtype"
    oFormTST = oApp.Forms.AddEx(oCreatP)
    Dim oItemX As SAPbouiCOM.Item
    Dim oActivX As SAPbouiCOM.ActiveX
    oFormTST.Height = 400
    oFormTST.Width = 400
    oItemX = oFormTST.Items.Add("TEST01", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
    oActivX = oItemX.Specific
    oActivX.ClassID = "CrystalReports11.CrystalReportViewer.1"
    Dim oRep As CrystalDecisions.Windows.Forms.CrystalReportViewer
    oRep = oActivX.Object
    oRep.ReportSource = "E:\DevLoc\App\bin\FICHETECH.rpt"
    oItemX.Height = oFormTST.Height
    oItemX.Width = oFormTST.Width
    oFormTST.Visible = True
    Some one as an idea ?
    Thks

    Vishal,
    I would like to let you know of an SBO addon that we have created called CrystalWave. This addon integrates Crystal reports with B1. This might save you a some time trying to recreate the wheel. Please take a look at the following link:
    http://www.twbs.com/CrystalWave.html
    YOu can download a fully functional copy at http://www.twbs.com/selectcwversion.html
    This will work only on the SBODEMO_US company.
    Let me know if you have any questions.
    Gopal Viswanathan

  • Pls Help: View Crystal Report Via Oracle Form Builder

    Hi!!
    I want to know how to view the .rpt report (report made from Crystal Report) via Oracle Form Builder. I've to do it in my project. If you know, please tell me.
    Thanks in advance,

    I don't know how does crystal reports work, and I would guess you should ask the crystal guys to help you with this. find out if they have a command line interface that you can invoke from the host command in forms.
    We can help you do it with Oracle Reports though :-)
    http://otn.oracle.com/products/reports

  • 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

  • Crystal report viewer not showing any option in browser at run time

    Hello concern
    I am mahendra gohil a student in computer science.
    I am using crystal report viewer with VS 10 . Every thing is fine code is running , in browser data are displayed but I didn't find any options that make print of my document . In my document has multiple pages but it displays only first page. all options are set to true with "pdf" as print mode.
    I have read all post regarding this issue , could not find any solution. Also set "Enable Acrobat Javascript " in adobe reader application.
    I have attached my project image with this question.
    Can any one plz help me to solve this ?

    I am using Firefox 20.0* and Crome 34.0.*
    Here is my code
    page :: viewreport.aspx
    <%@ Page Title="" Language="C#" MasterPageFile="~/ideal.master" AutoEventWireup="true" CodeFile="viewreport.aspx.cs" Inherits="Default3" %>
    <%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
        <style type="text/css">
        .style1
            width: 100%;
    </style>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <table class="style1">
        <tr>
            <td>
                 </td>
            <td>
                 </td>
        </tr>
        <tr>
            <td colspan="2">
                <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
                    AutoDataBind="True" EnableDatabaseLogonPrompt="False"
                    GroupTreeImagesFolderUrl="" Height="50px"
                    ToolbarImagesFolderUrl="" ToolPanelWidth="200px" Width="881px"
                    ToolbarStyle-BackColor="#33CC33" ToolbarStyle-BorderColor="#FF5050"
                    ToolbarStyle-BorderStyle="Dashed" />
            </td>
        </tr>
    </table>
    </asp:Content>
    page :: viewreport.aspx.cs
                ReportDocument rp = new ReportDocument();
                rp.Load(Server.MapPath("IPD_BILL.rpt"));
                string payment_str = "SELECT * from report";
                DataSet ds = new DataSet();
                ds = conn.read_op(payment_str);       
                rp.SetDataSource(ds.Tables[0]);
                CrystalReportViewer1.ReportSource = rp;

  • 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

  • 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

  • Run a report developed on Crystal Reports XI from java

    Hi,
    I am trying to run a report developed on Crystal reports XI from my Java Web Project.
    I used the configuration specified in:
    http://businessobjects.com/pdf/dev_zone/crxi_java_startup_guide.pdf
    but I am getting the error:
    "com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: There is no server specified.---- Error code:-2147217390 Error code name:serverNotFound"
    when the code reaches the line: oReportClientDocument.open(reportName, 0)
    I am using Eclipse as SDK and Tomcat as Webserver.
    Thanks for the help.

    can i use it In J2SE
    if yes where i download it.also some link for reading

Maybe you are looking for

  • Advantage of NAT IP Pool for PAT

    Hi support community, would there be any benefits from using a small pool of public IPs (outside global addresses) to perform PAT instead of using a single IP address that is nomally associated with outside interface? We have enough public IPs where

  • Problems with email account

    Hello. I am having problems with my Mac email account. I think that by mistake I linked my account to Verizon.com email and now when I open my Macmail it gives me the following message: "There may be a problem with the mail server or network. Verify

  • Apple tv quit working

    it seems my apple tv just quit working and cant figure out why. I did just buy a mac pro laptop and set that up --but i wouldn't think that wouldn't have anything to do with it--but as I mess with the remote control for the apple tv, it pulls up appl

  • Users and privileges

    Hi All; What are the steps to create a user and give him full privileges? Can you give me an example with the User Nabil please? Thanks alot

  • Zwei while schleifen gleichzeit​ig

    Hallo, ich habe zwei While Schleifen in einer erfolgt die Datenerfassung mit einem Timing von 500ms und in der anderen die Datenprotokollierung jedoch alle 3 Minuten. Mein Problem ist nun das die zweite Schleife die erste ausbremst, mit anderen Worte