Open programatically Crystal Report Viewer XI from MS Access 2003

Thank you in Advance!!!
I got the following VBA code.
1) What library do I need to include to access Crystal Report Viewer XI?
2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
Please look at ***???
Dim crrpt As New CRAXDRT.Report
Dim crapp As New CRAXDRT.Application
***???Problem here: Dim CRViewer11 As New CrystalActiveXReportViewer
Dim myParamField As CRAXDRT.ParameterFieldDefinition
Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
Dim dtFirstDayOfYear As Date
Dim dblCreditUsed, dblYTDAmount As Double
Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
'Set db = CurrentDb
strAttachDir = "T:\Work\"
'open crystal report(rpt)
strReportDir = "T:\Work\"
strCrReport = "TimeDetailwithData.rpt"
Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
strAttachment = strAttachDir & strFileName
crrpt.DiscardSavedData
'SET PARAMETER FIELDS
Set myParamFields = crrpt.ParameterFields
For Each myParamField In myParamFields
With myParamField
Select Case .ParameterFieldName
Case "StartPeriod"
.SetCurrentValue CDate("2008-7-16")
Case "EndPeriod"
.SetCurrentValue CDate("2008-7-17")
Case "Org - Comp"
.SetCurrentValue "2WV"
Case "Org - Dpt"
.SetCurrentValue "300"
Case "Org - Fac"
.SetCurrentValue "01302"
End Select
End With
Next
crrpt.EnableParameterPrompting = False
crrpt.ExportOptions.FormatType = crEFTCrystalReport70
crrpt.ExportOptions.DestinationType = crEDTDiskFile
crrpt.ExportOptions.DiskFileName = strAttachment
crrpt.Export False
Set CRViewer11 = crapp.OpenReport(strAttachment)
***???Problem here: CRViewer11.ReportSource = strAttachment
***???Problem here: CRViewer11.ViewReport

You will have to use the Crystal Reports Report Designer Component (craxdrt.dll). Before you do however, it may be good to know that CR XI r2 is the last version of CR that includes the craxdrt.dll as this is considered to be a retired technology in CR 2008. This may impact your efforts as the life cycle of the app may be limited(?).
Here is a link to more details of the  RDC lifecycle:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bd35e5-c71d-2b10-4593-d09907d95289
A bit of code help:
https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
A note on connecting to databases:
https://smpdl.sap-ag.de/~sapidp/012002523100006008462008E/crxir2.zip
Help file:
rdcsdk_com_dg.chm
C:Program FilesBusiness ObjectsCrystal Reports 11.5Helpen
dcsdk_com_dg_docdoc
Ludek

Similar Messages

  • Open programatically Crystal Report Viewer XI to display rpt file

    Thank you in Advance!!!
       I got the following VBA code.
    1) What library do I need to include to access Crystal Report Viewer XI?
    2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
        Please look at ***???
        Dim crrpt As New CRAXDRT.Report
        Dim crapp As New CRAXDRT.Application
    ***???Problem here:    Dim CRViewer11 As New CrystalActiveXReportViewer
        Dim myParamField As CRAXDRT.ParameterFieldDefinition
        Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
        Dim dtFirstDayOfYear As Date
        Dim dblCreditUsed, dblYTDAmount As Double
        Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
        Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
        'Set db = CurrentDb
        strAttachDir = "T:\Work\"
        'open crystal report(rpt)
        strReportDir = "T:\Work\"
        strCrReport = "TimeDetailwithData.rpt"
        Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
        strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
        strAttachment = strAttachDir & strFileName
        crrpt.DiscardSavedData
        'SET PARAMETER FIELDS
        Set myParamFields = crrpt.ParameterFields
        For Each myParamField In myParamFields
            With myParamField
                Select Case .ParameterFieldName
                        Case "StartPeriod"
                            .SetCurrentValue CDate("2008-7-16")
                        Case "EndPeriod"
                            .SetCurrentValue CDate("2008-7-17")
                        Case "Org - Comp"
                            .SetCurrentValue "2WV"
                        Case "Org - Dpt"
                            .SetCurrentValue "300"
                        Case "Org - Fac"
                            .SetCurrentValue "01302"
                End Select
            End With
        Next
        crrpt.EnableParameterPrompting = False
        crrpt.ExportOptions.FormatType = crEFTCrystalReport70
        crrpt.ExportOptions.DestinationType = crEDTDiskFile
        crrpt.ExportOptions.DiskFileName = strAttachment
        crrpt.Export False
        Set CRViewer11 = crapp.OpenReport(strAttachment)
    ***???Problem here: CRViewer11.ReportSource = strAttachment
    ***???Problem here: CRViewer11.ViewReport

    Hi, Rocio;
    In the future, please submit programming type questions to our SDK Forums.
    The component you are looking for is the Crystal Report Viewer Control x, where x is your version of Crystal Reports.
    You can also browse to the file, it is crviewer.dll.
    Regards,
    Jonathan

  • Unable to view queries from MS Access 2003

    Hi
    I installed Oracle SQL Developer 2.1.0.63 on my machine. I successfully connected to one of MS Access 2003 database. Also I changed the permissions of MS Access system tables in database. So I am now able to see all my tables under "Tables" in that database.
    But I am not able to view query contents which I have written for MS Access tables (Only names of those queries are displayed under "Queries").
    Can anyone plz help me out for this?
    Thanks.
    Edited by: user12364936 on Dec 17, 2009 10:56 PM

    Hi,
    Queries from MS Access are considered as Views in Oracle.
    So I recommend you to do a capture of you MS Access database to view correctly your queries:
    ==>Right click on Access connexion
    ==>Select 'Capture Access database' menu
    Once the captured has been made, you'll see in the capture the 'Views' with same names as your queries.
    Right click on the view and select Edit menu.
    You'll see the script which can be used to retrieved the same data than your queries.
    I hope it helps you.
    Regards
    Mireille

  • Crystal report viewer 2.0.23 access denied

    Post Author: gionnyDeep
    CA Forum: General
    hi all
    I'm using CR viewer 2.0.23 in a java standalone apllication.Actually whe i try to open a CR XI report with CR viewer 2.0.23 i get Access denied.
    It look like CR viewer does not fetch login information to database by the report.
    I found a work aroud but sometimes works and sometimes does not! I set for each table of my report db login and db password as follow:
    DatabaseController dc= rc.getDatabaseController();                Tables tables = dc.getDatabase().getTables();                for (int i = 0; i < tables.size(); i++) {                                 ITable table = tables.getTable(i);                    IConnectionInfo connectionInfo = table.getConnectionInfo();                                         String userName=table.getConnectionInfo().getUserName();                    String password=table.getConnectionInfo().getPassword();                                      connectionInfo.setUserName(userName);                    connectionInfo.setPassword(password);                                        connectionInfo.setKind(ConnectionInfoKind.SQL);                    table.setConnectionInfo(connectionInfo);                    dc.setTableLocation(table, tables.getTable(i));                                     } 
    The problem is that it works just with reports created with CR XI.If i use a report created with CR 9 or 10 and i save this report with CR XI.And after that i open my report in CR viewer 2.0.23 sometimes it works sometimese does not.I got Access denied!!!!

    Post Author: gionnyDeep
    CA Forum: General
    hi all
    I'm using CR viewer 2.0.23 in a java standalone apllication.Actually whe i try to open a CR XI report with CR viewer 2.0.23 i get Access denied.
    It look like CR viewer does not fetch login information to database by the report.
    I found a work aroud but sometimes works and sometimes does not! I set for each table of my report db login and db password as follow:
    DatabaseController dc= rc.getDatabaseController();                Tables tables = dc.getDatabase().getTables();                for (int i = 0; i < tables.size(); i++) {                                 ITable table = tables.getTable(i);                    IConnectionInfo connectionInfo = table.getConnectionInfo();                                         String userName=table.getConnectionInfo().getUserName();                    String password=table.getConnectionInfo().getPassword();                                      connectionInfo.setUserName(userName);                    connectionInfo.setPassword(password);                                        connectionInfo.setKind(ConnectionInfoKind.SQL);                    table.setConnectionInfo(connectionInfo);                    dc.setTableLocation(table, tables.getTable(i));                                     } 
    The problem is that it works just with reports created with CR XI.If i use a report created with CR 9 or 10 and i save this report with CR XI.And after that i open my report in CR viewer 2.0.23 sometimes it works sometimese does not.I got Access denied!!!!

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

    Moving 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 Session times out for more data in Portal

    Hi All,         
         I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
    Please help . Please let me know if I am missing something.. Thanks in Advance!!!
    CODE;
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
           pageEncoding="ISO-8859-1" session="false"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
    <%@page
           import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
           <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
    <%@page import="java.io.Writer"%>
    <%@page import="java.io.IOException "%>
    <%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
                  <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
           <% response.setHeader("pragma","no-cache");//HTTP 1.1
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.addDateHeader("Expires", -1);
    response.setDateHeader("max-age", 0);
    //response.setIntHeader ("Expires", -1);
    //prevents caching at the proxy server
    response.addHeader("cache-Control", "private"); %>
    <%
           String reportPath,Sharedpath;
           ReportClientDocument reportClientDocument;
                ParameterFieldController parameterFieldController;
                try{
                    reportPath = "reportlocation";
                 Sharedpath = "Target Location";
                    reportClientDocument = new ReportClientDocument();
                    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
                         reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
                         reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");              
                         System.out.println("Connecting...");
                       parameterFieldController = reportClientDocument.getDataDefController()
                   .getParameterFieldController();
                    parameterFieldController.setCurrentValues("", "param 1",
                         new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
    parameterFieldController.setCurrentValues("", "Param 2",
                  new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
    reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
           reportClientDocument.close();
           System.out.println("Finished...");              
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setReportSource(Sharedpath);
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
                  System.out.println("Finished...");
           }  catch (ReportSDKException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
    %>

    Hi All,         
         I am using below java SDK code to render a report in crystal report viewer. When i refresh report with more data(more parameter value) the server session times out in portal. Is there any way to fix this issue. The report loads data and then displays in Crystal report viewer, When more data is there the server times out as the server time is set to 60 sec. Is there any way to open the crystal report viewer as and when the report loads data to avoid server time out isse.
    Please help . Please let me know if I am missing something.. Thanks in Advance!!!
    CODE;
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
           pageEncoding="ISO-8859-1" session="false"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ParameterFieldController"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKException"%>
    <%@page
           import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
           <%@page import="com.crystaldecisions.report.web.viewer.*"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase"%>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%>
    <%@page import="java.io.Writer"%>
    <%@page import="java.io.IOException "%>
    <%@ page import="com.crystaldecisions.report.web.viewer.ReportExportControl" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
    <%@page
           import="com.crystaldecisions.sdk.occa.report.application.DatabaseController"%>
                  <%@page
           import="com.crystaldecisions.sdk.occa.report.application.ReportSaveAsOptions"%>
           <% response.setHeader("pragma","no-cache");//HTTP 1.1
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.addDateHeader("Expires", -1);
    response.setDateHeader("max-age", 0);
    //response.setIntHeader ("Expires", -1);
    //prevents caching at the proxy server
    response.addHeader("cache-Control", "private"); %>
    <%
           String reportPath,Sharedpath;
           ReportClientDocument reportClientDocument;
                ParameterFieldController parameterFieldController;
                try{
                    reportPath = "reportlocation";
                 Sharedpath = "Target Location";
                    reportClientDocument = new ReportClientDocument();
                    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
                         reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly);
                         reportClientDocument.getDatabaseController().logon("Dbname", "dbpassword");              
                         System.out.println("Connecting...");
                       parameterFieldController = reportClientDocument.getDataDefController()
                   .getParameterFieldController();
                    parameterFieldController.setCurrentValues("", "param 1",
                         new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29});
    parameterFieldController.setCurrentValues("", "Param 2",
                  new Object[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23});
    reportClientDocument.saveAs("Target Report Name","Target Location", ReportSaveAsOptions._overwriteExisting);
           reportClientDocument.close();
           System.out.println("Finished...");              
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setPrintMode(CrPrintMode.ACTIVEX);
    viewer.setReportSource(Sharedpath);
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
                  System.out.println("Finished...");
           }  catch (ReportSDKException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
    %>

  • Crystal Reports Viewer XI R2 Missing icons on toolbar when displayed

    I am using Crystal Reports Viewer XI R2 on Windows 2003 Server and trying to deploy to a different server.
    I have deployed a new web site from a development server to production.  The crystal reports render correctly, but the only problem is that the icons for the viewer show "X".  I have tried the following:
    Copy the aspnet_client folder (c:\Inetpub\wwwroot\aspnet_client) and all of itu2019s subfolders to the physical root directory of the custom web site.
    If the above does not help, ensure that this is in the web.config of the application:
    <httpHandlers>
    <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </httpHandlers>
    Still see "X" in the view tool bar.
    The w3SVC1 log shows the following:
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /PCS2/WebResource.axd d=fkLVkQwks9cycSbn9MoaTw2&t=633187128429062500 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 200 0 0
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/prevd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/firstd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/next.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/grouptree.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/upd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/last.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/search.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/bologo.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    2008-08
    Can anyone help my find my icons?

    >
    Clif McNeely wrote:
    >
    > The w3SVC1 log shows the following:
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /PCS2/WebResource.axd d=fkLVkQwks9cycSbn9MoaTw2&t=633187128429062500 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 200 0 0
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/prevd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/firstd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/next.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/grouptree.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/upd.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/last.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/search.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08-07 18:35:59 W3SVC1 137.25.173.215 GET /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/bologo.gif - 80 - 137.25.173.215 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.2;SV1;.NETCLR1.1.4322;.NETCLR2.0.50727;InfoPath.2) 401 2 2148074254
    > 2008-08
    >
    > Can anyone help my find my icons?
    Your IIS logs show that the web server can't find the toolbar gif files. The first thing I'd do here is browse to this location using your IIS Manager. Find the next.gif file and right click it and select Browse. This will take your application out of the picture and will tell you if you can see this gif file on its own as processed by IIS.
    If that doesn't work you likely have a permissions issue. Look at the security on the toolbar directory and see if the ASPNET or Network Service account have rights to read that directory. Also make sure the group IIS_WPG has access here too. You might even want to run the IIS Managers permissions wizard to clean up file permissions here.
    Another thing you could try is creating a Virtual Directory that points to the original aspnet_client directory under C:\inetpub\wwwroot.
    Hopefully that helps. Good luck!

  • Open a Crystal Report preview from an Add-on

    Hi All,
    I'm just trying to open a Crystal Report preview using a button from my add-on.
    I want to use the SAP Crystal report, (the runtime integrated with SAP 8.8)
    Basically I have my report created, so I need to create the object, pass the parameters and open an screen with my preview.
    The main idea is open this Crystal report object when the addon starts and then just use that object.
    I've found an example with this object SAPbobsCOM.ReportLayoutsService but this is for SAP 8.8.1 and I'm working with 8.8. I don't know if i can use SAPbobsCOM.ReportLayout.
    I need a simple example please.
    Thanks .

    Hi,
    Have you read through this: View Crystal Report from add-on ?
    Thanks,
    Gordon

  • 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

  • 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

  • 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

  • Possible solution: Open Crystal Reports Print Layout from UDO form

    Hi all,
    I recently had to print information of a UDO which I have on a new form. I searched through the forum and found different solutions, but none that used the new "integrated" crystal reports viewer. So I came up with this workaround, which so far works great. I post it here for anybody else needing this kind of workaround, or in case somebody has a better solution, pick that up.
    Here it is:
    1) Create your Crystal Report file and import using the Reports and Layouts screen in SAP Business One. Give it a meaningful name and location in the menu. Have at least one parameter to take the DocNum or DocEntry, or whatever your primary key is. (Note: I know the import can be done by SDK, but as far as I can see there's no way to place it in the menu structure just yet.)
    2) In your Add-On in the event ID 520 (print), call the following function with the Document Number grabbed from the open form:
    public static bool printUDO(string strDocNum)
                // get menu UID of report
                Recordset oRS = (Recordset)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
                oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = 'ReportName' AND Type = 'C'");
                if (oRS.RecordCount == 0)
                    B1Connections.theAppl.MessageBox("Report layout 'ReportName' not found.", 0, "OK", null, null);
                    return false;
                // execute menu and enter document number
                B1Connections.theAppl.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString());
                Form form = B1Connections.theAppl.Forms.ActiveForm;
                ((EditText)form.Items.Item("1000003").Specific).String = strDocNum;
                form.Items.Item("1").Click(BoCellClickType.ct_Regular); // abrir reporte
                return true;
    I know it's kind of a dirty solution, but it works, and if you have any suggestions, I'd be happy to hear them.
    Thanks!
    Joerg.

    Hi Joerg,
    It's not a dirty solution... I like it and i'm using it
    Thanks!
    Best regards,
    Ana Silva

  • 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

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

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

Maybe you are looking for

  • I am very disappointed

    I love my galaxy nexus but how can I love a phone that drops my calls regularly? I just got off the phone with Verizon technical support after a week-long struggle and they can't do anything for me. So when I first got my phone I had dropped calls an

  • ITunes hanging/freezing

    I'm on a 2Ghz Intel Core Duo MacBook Pro with 10.5.6 and 2 GB of RAM. I have iTunes 8.1.1, upgraded today. Previous to the upgrade, iTunes would hang when encountering certain songs in my library. The songs had no common factor such as location or ty

  • SharePoint Provider-hosted Apps - Expired OAuth Client Secret - Token Request failed

    Hi everyone, in the past days, we have encountered authentication problems with our provider-hosted SharePoint apps. The apps are not deployed through the Office Store, but through the specific organizational app-catalog of the SharePoint tenant of o

  • Internal mic/garage band

    Hi. I'm wondering if anyone has had trouble with a macbook's internal mic for recording a vocal in garagband? I thought maybe it was the mic itself but it seems to work okay in other apps. But in GB no matter the volume setting when recording or dist

  • Crashing java virtual machine problem...

    This topic is related to my previous topic: http://forum.java.sun.com/thread.jsp?forum=31&thread=341889&tstart=0&trange=15 I think it is due to the memory the program uses... on average it uses 300 meg of memory, but whenever i have more than say 10