Crystal Reports from PHP using COM

I have tried copying various snippets of PHP code to render a Crystal Report in PDF which I can then stream to the browser, but I never get past the creation of the CrystalRunTime.Application.  (Earlier examples had CrystalDesignRunTime.Application instead; they did not work either).  Any suggestions what is wrong here?
$ObjectFactory= new COM("CrystalReports12.ObjectFactory.1") or die ("Error on load");
echo "<p>ObjectFactory created.<p>About to create CrystalRunTime.Application...";
try {
     $crapp = $ObjectFactory-> CreateObject("CrystalRunTime.Application");
} catch (com_exception $e) {
     echo("Error on instance creation:<br>".$e->getMessage().'<p>'.$e->getTraceAsString());
     echo "<p>".$e;
     exit;
Here is the output:
ObjectFactory created.
About to create CrystalRunTime.Application...Error on instance creation:
Source: Unknown
Description: Unknown
#0 C:\xampp\htdocs\tempo\comtest.php(11): com->CreateObject('CrystalRunTime....') #1
exception 'com_exception' with message 'Source: Unknown
Description: Unknown' in C:\xampp\htdocs\tempo\comtest.php:11 Stack trace: #0 C:\xampp\htdocs\tempo\comtest.php(11): com->CreateObject('CrystalRunTime....') #1

$ObjectFactory= New COM("CrystalReports11.ObjectFactory.1");
               //------ Create a instance of library Application -------
               try
                    $CRobj = $ObjectFactory->CreateObject("CrystalRunTime.Application.11");
               catch (com_exception $e)
                    echo("<br>Error on instance creation:<br>".$e->getMessage().'<p>'.$e->getTraceAsString().'</p>');
                    echo "<p><pre>".print_r($e, true)."</pre></p>";
                    exit;
Source: Unknown
Description: Unknown
#0 C:\xampp\htdocs\analytics\generate_cr.php(103): com->CreateObject('CrystalRunTime....') #1 {main}
com_exception Object
    [message:protected] => Source: Unknown
Description: Unknown
    [string:Exception:private] =>
    [code:protected] => -2147352567
    [file:protected] => C:\xampp\htdocs\analytics\generate_cr.php
    [line:protected] => 103
    [trace:Exception:private] => Array
            [0] => Array
                    [file] => C:\xampp\htdocs\analytics\generate_cr.php
                    [line] => 103
                    [function] => CreateObject
                    [class] => com
                    [type] => ->
                    [args] => Array
                            [0] => CrystalRunTime.Application.11
    [previous:Exception:private] =>
Edited by: EddieM on Dec 9, 2009 9:34 PM

Similar Messages

  • Crystal report from JSP using the JRC

    Hi, I am trying to call crystal report from JSP using the JRC.
    But i am getting the Error as 'Logon Failed'. my web.xml entry is
    <env-entry>
    <env-entry-name>jdbc/Test</env-entry-name>
    <env-entry-value>!oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{password}@//10.0.0.1:1521/TestDB</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    i am setting the userid and password in the code. Please see the below code for your reference. Please help me to solve the issue.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSource" %>
    <html>
    <head>
    <title>Crystal Report with Database Logon information</title> </head>
    <body bgcolor="#ffffff">
    <%
    try
    String report = "/TEMPLATE.rpt";
    IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
    JPEReportSource reportSource = (JPEReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
    viewer.setHasRefreshButton(true);
    IConnectionInfo newConnInfo = new ConnectionInfo();
    newConnInfo.setUserName("TEST");
    newConnInfo.setPassword("TEST");
    ConnectionInfos newConnInfos = new ConnectionInfos();
    newConnInfos.add(newConnInfo);
    viewer.setDatabaseLogonInfos(newConnInfos);
    viewer.setEnableLogonPrompt(false);
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    out.println("Connection Information: "+viewer.getDatabaseLogonInfos().getConnectionInfo(0).getAttributes().toString());
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);
    viewer.dispose();
    catch(Exception e)
    throw new JspException( e);
    %>
    </body>
    </html>

    I never really had much luck with this approach.
    Mind you I was using Crystal Reports 10, and as far as I recall it didn't allow setting/changing of database at this level.
    Things to check
    - can you create a database connection on your page with this URL/username/password?
    - what server are you using? Tomcat? WebLogic?
    I found this in your other post:
    Connection Information: {Server Name=ee6rpt, Connection String=DSN=s(ee6rpt);User ID=s(ee62test);Password=;UseDSNProperties=b(false), Database Name=, Database DLL=crdb_odbc.dll}That would indicate it is using odbc to connect to the database (crdb_odbc.dll). ODBC is a bad idea with java.
    The way I have got it to work for me (after much trial and error) was to in Crystal Reports to connect using the Oracle Driver, and specifying a tnsname - eg define REPORT_DS in tnsnames.ora.
    When running through the JRC, it looked for a JNDI datasource under that same name "REPORT_DS".
    Don't know if that will help you or not.
    Good luck,
    evnafets

  • How to use crystal report with php

    Hello every body
    can any body know how to use crystal report with php any helping material, code or tutorial for my problem ill be very thankful for helping me
    farooq

    Hello sir
    i am sudeep and i need to deploy crstal reports in php
    i want to integrate it in sugar crm (open source project(
    can u plz tell me how to do it
    i have written this code
    <?php
    //echo phpinfo();exit;
    $ObjectFactory= New COM("CrystalReports11.ObjectFactory.1");
    $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application");
    //$crapp = new COM("CrystalRuntime.Application.10");
    $reportToRun="C:\Report4.rpt";
    $creport = $crapp->OpenReport($reportToRun, 1);
    //reportToRun=full path to *.rpt file
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['User ID'] = $user;
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['Password'] = $pass;
    //fomatType = integer 22=xls, 31=pdf etc
    $creport->ExportOptions->FormatType = $formatType;
    //type 1 is to output to a file I think 2 is email
    $creport->ExportOptions->DestinationType = 1;
    //location = full path to report output file
    $creport->ExportOptions->DiskFileName = $location;
    $creport->DiscardSavedData();
    $creport->Export(False);
    ?>
    thanks in advance

  • Crystal Report with PHP

    Hi, I am new to crystal report. I want to use CR 11 integrated with my web based application. Now as entire application is designed in PHP, I need to use PHP, use COM, to pass parameters and generate PDF report.
    I have following question.
    Will I need CR server ?
    How do i actually invoke CR from PHP ?
    Right now I am doing following
    $my_report = "C:
    Inetpub
    wwwroot
    test
    test.rpt";
    $my_pdf = "C:\Inetpub\wwwroot\test
    MyReport.pdf";
    try 
        $ObjectFactory = new COM ( 'CrystalRuntime.Application' ); 
    catch ( exception $e ) 
        echo 'caught exception: ' . $e->getMessage () . ', error trace: ' . $e->getTraceAsString (); 
    $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application");
    $creport = $crapp->OpenReport($my_report, 1);
    $creport->Database->Tables(1)->SetLogOnInfo("server IP address", "db_name", "username", "password");
    $creport->EnableParameterPrompting = 0;
    $creport->DiscardSavedData;
    $creport->ReadRecords();
    $creport->FormulaFields->Item(1)->Text = ("'My Report Title'");
    $creport->ParameterFields(1)->AddCurrentValue ("FirstParameter");
    $creport->ParameterFields(2)->AddCurrentValue (2000);
    $creport->ExportOptions->DiskFileName=$my_pdf;
    $creport->ExportOptions->PDFExportAllPages=true;
    $creport->ExportOptions->DestinationType=1;
    $creport->ExportOptions->FormatType=31;
    $creport->Export(false);
    $creport = null;
    $crapp = null;
    $ObjectFactory = null;
    but i am getting following error
    caught exception: Failed to create COM object `CrystalRuntime.Application': Invalid syntax , error trace: #0 C:\Inetpub\wwwroot\cr_test.php(69): com->com('CrystalRuntime....') #1 Notice: Undefined variable: ObjectFactory in C:\Inetpub\wwwroot\cr_test.php on line 78 Fatal error: Call to a member function CreateObject() on a non-object in C:\Inetpub\wwwroot\cr_test.php on line 78
    I will appreciate any help provided in this matter

    Thank you. Ludek Uher
    Just after I posted my update, I realized that there was an error in version I am passing, i actually have version 14.0.0.760 RTM
    Now my code is like this
    $my_report = "C:\\MyReport.rpt";
    $my_pdf = "C:\\MyReport.pdf";
    try 
        $ObjectFactory = new COM ( 'CrystalReports14.ObjectFactory.1' ); 
    catch ( exception $e ) 
        echo 'caught exception: ' . $e->getMessage () . ', error trace: ' . $e->getTraceAsString (); 
    $crapp = $ObjectFactory->CreateObject("CrystalReports14.ObjectFactory.1");
    $creport = $crapp->OpenReport($my_report, 1);
    and it creating creating Crystal Reports object. Now the problem I am facing is that the method OpenReport() is not working.
    Does the RPT file mentioned in $my_report variable should exists when I run this code?
    The same question also goes for the PDF file I am mentioning in $my_pdf variable.

  • Can't view Crystal Reports from BW

    Hi,
    I'm installing SAP Integration Kit XI 3.1 SP3 with IIS.  I am able to publish reports from BW to BOE but not able view them from BW.  I followed the documentation to use report/report_view.aspx to define the viewer application in Content Administration Workbench.  But it is giving me a "The page cannot be found" error when I try to view Crystal Reports from BW.  I tried looking for the file report/report.aspx but cannot find it.  I was able to locate the file in SAP_CrystalReport_View/report_view.aspx.  I repointed the system to this path but it still giving me the same error. 
    Anybody here encountered this before?
    Thanks,
    Elijah

    Hi Ingo,
    - has the report being saved to BW and then published to BusinessObjects enterprise ?
        Yes, the report is being published from BW to BOE successfully.
    - did you import the ABAP Transports to the BW system ?
        I imported all the transports that came with the Integration Kit.  I'm not sure if the ABAP transport is one of them.
    - has the viewing service in transaction SICF been configured ?
        Yes, the top entry in the handler list is /CRYSTAL/CL_BW_HTTP_HANDLER.
    I did notice that the BW system is on a different subdomain than the web application server.  For example,
       BW system        -  bw01.us.mydomain.com
       BOE web server -   boweb.mydomain.com
    Would that affect the single sign on?

  • Cannot refresh a stored procedure within a Crystal Report from Xcelsius

    Please help...Xcelsius 2008 & Live Office problem...
    What I am trying to do is to refresh a stored procedure that is within a Crystal report from within my Xcelsius dashboard in Preview mode. The data returned appears on the Xcelsius dashboard. It works fine in Design mode, just not in Preview or when published as a swf.
    1. I set up a Crystal Report using a Stored Procedure as the data provider.
    2. The Stored Procedure has a parameter built into it.
    3. When the report is refreshed within Crystal, the prompt dialog box is displayed; I fill in the desired value, and run. Everything comes back fine.
    4. Crystal Report is exported to the repository.
    5. In Excel, I inserted the Crystal Report using Live Office. It shows up as a Live Office object just fine.
    6. I bound an Excel cell to the prompt; when you change the value in the bound cell, the Live Office object refreshes and displays the correct results.
    7. In Xcelsius, I imported the Excel spreadsheet.
    8. I set up a Text component that is bound to the cell containing the parameter value. Also set up a Grid to display the results, and a Connection Refresh button to call the refresh. Added a Live Office Data Connection pointing to the Web Service URL for the report.
    Note: When in Designer mode, if the value of the bound cell is changed, the results in the grid change accordingly.
    9. When in Preview mode (or generated swf), if the Refresh button is pressed, a "User Identification" dialog box appears asking me to log on. The values it asks for are: System, User Name, Password, and Authentication. I enter the same credentials as are within the Live Office settings in Excel, (which are working correctly), but receive an error "soapenv:Server.generalException: Database logon failed.".
    Note - all the id's are synced up - Business Objects, Database, etc.
    I've tried all kinds of combinations, but nothing gets me past this error. If I use any other server than the one listed under System in Live Office, the error message is "soapenv:Server.generalException: Server XXXXX not found or server may be down".
    I've noticed that in Excel directly, when I open the spreadsheet and refresh the Live Office object, I am prompted to log on to the database where the stored procedure is being executed. This dialog box does not appear once the Excel sheet has been imported into Xcelsius. One of the combinations I tried in the "User Identification" dialog box was the name of the database server, that didn't work either.
    I also tried creating the Live Office object directly within the Excel spreadsheet in Xcelsius, but then I was unable to bind the prompt value. Could never get the Live Office/Properties menu to appear.
    Ideas? Thoughts?
    Thanks in advance!
    Stephanie

    This post looks like a duplicate of: Live Office: Database logon failed error

  • Creating a crystal report from R/3

    Hi,
    I am new to R/3. I am trying to create a new crystal report from R/3. I already connect crystal report with R/3 using integration kit. My problem now is i not sure which field i should i take from a which table when i look in R/3.I been provided a link, http://www.sap-img.com/sap-sd/important-tables-for-sap-sd.htm where i can check all the table for SD, PM n etc. For example, i go to t.code VA03 and search for an order, i see there is so many field. How do i know which field is from which table n row. Let said i want to pull the below information to my crystal report, how do i know which table and row i should take ? (this is just an example)
    PO Number, Po Date, Material, Order quantity, pricing date, net value and overall status
    Thank you

    Moved to Integration Kit forum.
    The people in this forum will know more about the data structure than the CR Design forum which typically doesn't know much about the SAP Data sources Structure.
    Don

  • Unable to print crystal report over web using ActiveX Control

    Post Author: jimmyp
    CA Forum: General
    We have a problem with printing crystal report over web using ActiveX Control.  When clicking print button, it only shows a blank dialog web crystal viewer page without any error.  The page just simply hangs.  We installed the PrintControl DLL and enable all the security setting for ActiveX Control for IE.  It still does not print.  Does anyone know why?  
    Environment.
    Bundle Crystal Report v10
    Asp.net 2.0
    IE 6.0 or higher.
    Appreciate for your help.
    Jimmy

    Post Author: Ian Kulmatycki
    CA Forum: General
    A team member here found this, I haven't read it, I'm not sure if our problems are related to this, but hopefully it helps someone:
    -ian
    When Secure Sockets Layer (SSL) is enabled, using the ActiveX control to print reports from a Crystal 10 DHTML viewer results in the following error message:
    "A communication error occurred, printing will be stopped."
    How can this error message be resolved?
    Resolution
    This is a known issue with Crystal Reports 10 and Crystal Enterprise 10 viewers and has been tracked. The Track ID is ADAPT00282199.
    This error occurs due to the receiving application performing a case-sensitive check for the HTTPS request header value "ON". When a sender application sends the value as "on" in lower case, the error occurs. The update below changes the receiving application to be case-insensitive.
    Hot Fixes or Service Packs address this issue as indicated below. With the updates, this issue is resolved.
    Unless indicated otherwise, Weekly Hot Fix updates from our FTP site have only been tested with English versions of products.
    For Crystal Reports 10 and Crystal Enterprise 10, the update for this issue is included in the Crystal 10 Viewers Weekly Hot Fix (WHF). This is available in English only at the following location:
    ftp://ftp.crystaldecisions.com/outgoing/EHF/viewers10win_en.zip
    This issue is addressed in the following components (and later versions):
    PageObjectModel.dll, version 10.0.5.785, dated 8/25/2004
    ReportRenderer.dll, version 10.0.5.785, dated 8/25/2004
    WebReporting.dll, version 10.0.5.785, dated 8/25/2004

  • Crystal reports from XML data source in 'CR in Eclipse(CR4E)'.

    I'm trying to generate the crystal reports from XML file using 'eclipse in crystal reports' through programatically. It had thrown this error.                                                                               
    log4j:WARN No appenders could be found for logger (com.businessobjects.reports.sdk.JRCCommunicationAdapter).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.an.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.b(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bb.int(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.byte(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.addTable(Unknown Source)
         at com.businessobjects.samples.CreateXMLInlineSchemaReport.main(CreateXMLInlineSchemaReport.java:50)
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Error loading database connector.  The class 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader' could not be accessed.
         at com.crystaldecisions.reports.queryengine.Connection.ur(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.uB(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.br(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.bs(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.t1(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Table.u7(Unknown Source)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(Unknown Source)
         at com.crystaldecisions.reports.common.CommandManager.a(Unknown Source)
         at com.crystaldecisions.reports.common.Document.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.f.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         ... 24 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         ... 36 more
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Failed to load the database connector 'crdb_xml.dll'.
         at com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader.loadDriver(Unknown Source)
         ... 40 more
    Edited by: Kondal Kolipaka on May 29, 2009 6:25 AM

    Hi,
    1) Open the Crystal report with XML datasource connectivity in the Crystal Report designer.
    2) Click on File ->Report Options.
    3) Uncheck the Verify On First Refresh box.
    4) Save the Crystal report.
    5) Open this Crystal report in Crystal Report for Eclipse designer and try Executing it again.
    Please let me know the results.
    Thanks,
    Neeraj

  • Crystal Reports and PHP

    Post Author: amyfletcher
    CA Forum: General
    I am working on an application for one of our clients in PHP and MySQL.  The client would like to utilize Crystal Reports to create some of the reports in the database.  I am not very familiar with Crystal Reports.  Can it work with PHP?  Is it fairly easy to integrate?  Would the user machines be required to have Crystal Reports installed on it or is there some sort of embedded viewer that we could use?  Please let me know.  Thanks!

    Post Author: halfer
    CA Forum: General
    Sorry Amy, these fora aren't exactly teeming with helpful respondents! I am using Crystal 9 and Crystal 10 with PHP, and it does work. You can install the Crystal Reports component on the server (it's on the developer disc, I presume it would come with the standard edition). You can then instantiate a Crystal object in PHP using the COM class, if you are using Windows.I have had problems (a) switching databases in reports based on stored procedures and (b) supplying date types in PHP to the Crystal COM object, so be aware that your mileage may vary. Do some R&D before committing yourself to a particular route (you can still use PHP, you may just need to create an external component to interface to Crystal).

  • Scheduling Crystal report from BOE

    Hi,
    I have a Crystal report (based on ECC Function module) which doesn't retrieve data when I schedule it from BOE (infoview).
    I have Integration kit installed, and the crystal report works fine when i execute it manually.
    I think it is an issue with connectivity/authentication or something. I don't have a service user id created. (to run the Crystal report i use my ECC user id which has authorization to S_RFC etc)
    Can you tell me the steps that i need to follow before i am able to run my ECC crystal report from BOE/infoview?
    Thanks, Arka

    Hi,
    the user that is scheduling the report needs to have the same authorization like viewing the report. you can also see the list of detailed authorizations required in the documentation for the SAP Integration Kit in the chapter authorizations.
    all product documentation is available on help.sap.com
    regards
    Ingo Hilgefort

  • Moved some Crystal Reports from 8.5 to 10. They all work except one.

    Moved some Crystal Reports from 8.5 to 10. They all work except one.
    The report runs, then stops.
    It brings up the Formula Workshop - Format Formula Editor - Suppress (No Drill-Down)
    Highlights one of the Formula Fields, which is in used as part of record selection, then stops

    Go to [http://service.sap.com]
    In that go to SAP Support Portal ->Help & support tab ->Report a Product Error
    You would have to supply Customer number and User ID and it would allow you to create a case (incident).
    You can also call on our CIC numbers if you face any issues and they would be able assist you in creating an Incident.
    Americas : 1 866 8907686 (toll-free)
    support.bosapamerica@ sap.com (Remove the space)
    APJ: 1800 613459 (toll-free)
    support.bosapasia@ sap.com
    EMEA: 08081012181 (toll-free)
    support.bosapemea@ sap.com
    Hope that helps!!
    Regards,
    Shweta

  • Look and feel discrepency after migrating Crystal Reports from XIR2 to XIR3

    Hi,
    We are migrating Crystal Reports from XIR2 to XIR3. If the report is designed in Crystal client by inserting a subreport it does not come well in web viewer(Infoview). If I do not use subreports then the view is same (both in web viewer & windows client preview).
    Could you please let me know, what could be the problem and how to resolve this?
    Your valuable time and solution is much appreciated.
    Thanks in advance.
    Mohan

    Hello,
    What happen if you use the web java viewer instead of web viewer? (you can change it in the preferences options)
    Otherwise, when you say "it does not come well", what do you mean?
    Thanks
    Philippe

  • View discrepency while migrating Crystal Reports from XIR2 to XIR3

    Hi,
    We are migrating Crystal Reports from XIR2 to XIR3. If the report is designed in Crystal client by inserting a subreport it does not come well in web viewer. If I do not use subreports then the view is same (both in web viewer & windows client preview).
    Could you please let me know, what could be the problem and how to resolve this?
    It's urgent. Your valuable time and solution is much appreciated.

    I moved your thread to the " .NET - SAP Crystal Reports" forum, assuming this is in a .NET app(?)
    Unfortunately, the description:
    " does not come well in web viewer"
    is somewhat "loose". Perhaps inserting a link to a screenshot(s) that demo the issue will be a good idea?
    Also, if my assumption is correct:
    1) What version of .NET?
    2) What is the exact version of CR? (In CR designer go to Help | About)
    3) What browser?
    4) Does this work on you dev system?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Calling a Crystal Report from and Oracle Form6i

    I am attempting to call a crystal report from within an oracl form. I would appreciate documentation/suggestions on how to accomplish this task.
    Thanks
    NBranson

    HI Nicole,
    I have used crystal reports from oracle forms in one of my project. Send a mail to this address, i ll reply you back with the source code. My email address is [email protected] .
    But if you just want to know the steps here it is :
    STEPS TO display the Crystal Report in Oracle Forms :
    1. Create a new form.
    2. Create a control block, name it 'CONTROL'.
    3. Create a CONTENT canvas, name it 'REPCAN'.
    4. Create an ActiveX control on the canvas, name it 'CrystalReport1'.
    5. Create a Image item , name it 'REP'. Make sure that image item overlaps the ActiveX control completely, this image item is used to get the item handle. Enlarge this object such a way that it will fit the window, the report gets displayed in this item so the item size should be adeqately large.
    6. Right click on the ActiveX control item, select Insert Object from the menu.
    7. From the list select Crystal Reprot Control.
    8. Select the Progrm=> Import OLE Library Interface Menu in the form.
    9. Select Crystal.CrystalReport from the List, this will list two methods and one Event . The two methods are CrystalCtrl and IRowCursor, the event is CrystalReprotEvent.
    10. Select all the three and click on the OK button to accept. This will create the program units.
    11. In the When-New-Form-Instance trigger of the form write the following code.
    Declare
         charWinHandle varchar2(50);
         numWinHandle Number;
    Begin
         Set_Application_Property(Cursor_Style,'BUSY');
         charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
         numWinHandle := To_Number(charWinHandle);
         :Item('Control.CrystalReport1').OCX.Crystal.CrystalReport.WindowParentHandle := numWinHandle;
         :Item('Control.CrystalReport1').OCX.Crystal.CrystalReport.WindowState := 2;
         :item('CONTROL.CRYSTALREPORT1').OCX.Crystal.CrystalReport.Connect := 'DSN=;UID='||Get_Application_Property(UserName)||';pwd='||Get_Application_Property(password)||';dsq=;';
         Crystal_CrystalCtrl.ReportFileName (:Item('Control.CrystalReport1').interface,'C:\Sample_Rep.Rpt');
         Set_Window_Property(Forms_Mdi_Window,Window_State,Maximize);
         Set_Window_Property('MAIN',Window_State,Maximize);
         :reptitle := 'Report Preview Window';
         numWinHandle := Crystal_CrystalCtrl.PrintReport(:Item('Control.CrystalReport1').interface);
         Set_Application_Property(Cursor_Style,'DEFAULT');
    End;
    One thing to mark here is the, change the report name and path according to your required file name and path in
    Crystal_CrystalCtrl.ReportFileName (:Item('Control.CrystalReport1').interface,'C:\Sample_Rep.Rpt');
    12. If you want to run multiple reports then create a parameter and pass the file name to the form through the parameter. In the above line of code, you can replace the file name with parameter, so each time the form is called with different parameter with the file name , it displays different reports.
    13 Run the Form.

Maybe you are looking for