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.

Similar Messages

  • Is it possible to call a Crystal Report from Oracle Forms.

    Hi Everybody,
    I got a Dout about Crystal Reports. Is it possible to call Crystal Reports from Oracle Forms.

    Hello,
    That depends are you running Forms via the WEB or client/server. I will assume you are running client/server since you are running crystal reports. The answer is yes. All you will have to do is use the HOST command or the win_api_shell to run the report. Look in the Forms manual for information on the commands and what else you may need.
    John

  • How to Call a Crystal Report from Form 6i?

    Dear All,
    Can anybody tell me how to call a crystal report, designed using Crystal Report 9, in form 6i? I tried one solution by using the host command but it was not working properly. The code I was tried is like:
         f_name varchar2(240);
         f_name :='C:\Program Files\Crystal Decisions\Crystal Reports 9\crw32.exe D:\Form16\Form16_Rep\bin\Debug\Form_16_character_emp.rpt';
                   host(f_name);
    This open the crystal report in design view. So how we call a report which run automatically like in .Net. How to pass the connection info of the database schema?
    Thanks & Regards
    Sunil

    Hi
    First see the built in run_product function.
    You can create a parameter list, add the
    "MAXIMIZE" paramter in it and then call your
    report with run_product passing your parameter list in it.
    hence the called report will be maximized.
    null

  • Can u call a BIP Report from within Oracle Forms?

    Hi,
    We want to use BIP as a reports solution for a Forms 10g Application. Currently we use oracle Reports. I would be very grateful if anybody can show us how to do the following as I could not find it in any documentation. Of course, I get the feeling that these cannot be done, but I want to double-check.
    (1.) How to call a BIP report with a input parameters from within an Oracle 10g Menu? i.e. when the user clicks on the menu item, BIP should be started and it should run the report within the BIP.
    -- So we also need a way to pass parameters to the BIP
    -- Also BIP has a different username/password also
    Is this possible or NOT POSSIBLE( i.e. U have to ask the user to login to BIP and then run the report)?
    Thanks & Regards,
    CS

    Hi,
    Have a look in this document to get an idea how to do:
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    Regards
    Rainer

  • Calling Crystal Reports from Oracle Forms 10G

    Hi everyone,
    I am trying to call a crystal report from Oracle Forms 10G.
    I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file.
    Can someone please send me the code to do this and also the exact steps that are to be followed.
    Thanks
    Fm.

    Hi Andreas,
    I am trying to call the crystal report from an Oracle Form using a URL. No batch file is being used here.
    I am looking for a peice of code similar to run_product or run_report built in in Oracle which calls an Oracle report from an Oracle Form.
    Also I dont want to display the report on a screen or a window in Oracle Forms. I would like it to run just as we run an Oracle Report from an Oracle Form.
    Is that possible ? If yes please let me know the steps to do this.
    Thanks
    Faiz
    Edited by: IQ on May 13, 2011 11:38 AM

  • Call crystal report from SDK

    Hi, i need to call a crystal report from SDK. Is there any way to use the B1 internal viewer to show it or do i need to use my own crystal viewer to show the report?
    Thanks

    Hello,
    You may try this.
    Regards
    János

  • URGENT!!! calling crystal reports from oracle forms 10g

    Is it possible to call crystal reports from oracle forms 10g?
    Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
    Please provide codes with details showing step by step.
    Thanks

    hi
    try something like this.
    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.Crysta lReport.WindowParentHandle
    := numWinHandle;
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
    :Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.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;NOTE: Change the report name and path according to your required file name and path in
    the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
    assumes that you will use the current USER and PASSWORD for the Form.
    - To make the above Form generic so that you can run any Crystal report from it, then create
    a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
    Then just replace the file name with the passed parameter.
    -. Run the Form
    If its correct/helpful please mark it thanks.
    sarah
    Edited by: S@R@h on Nov 27, 2009 6:33 AM

  • Calling Crystal Reports from Oracle Forms 6i

    Hello
    I am trying to invoke/call Crystal Reports from Forms 6i.
    I have created OCX Item, while right click on item and insert-object, i am unable to see "Crystal Report" Control.
    I have installed crystal Reports 2008 (Version 12) and CR Standard Production version 9.
    Is there any Active X control registration in forms.
    I could see "Crystal Report Viewer Control 9" and "Crystal Report Print Control 12.0"
    Could some one help me,
    Thanks
    Tumuganti

    Did u Succeed in calling crystal Reports XI from Forms 6i
    or from Forms10g
    for me also the same Requirement
    please send any document ,Attachment ,steps to call Crystal Reports XI from Forms
    [email protected]
    Message was edited by:
    user501763

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • Call Crystal Report from java

    <p>Hi,<br /><br />Can anyone pl send me an e.g of how to call crystal reports from java ? Preferably crsytal version 10. how to instantiate a crystal report viewer? how to pass parameters? how to set the connection string?</p><p>my email is <a href="mailto:[email protected]">[email protected]</a><br /><br />Regards,</p><p>Hui Bee<br /></p>

    <p>Hi Hui Bee, </p><p>   There are a number of version 10 samples available contained in the following package:</p><p><a href="http://support.businessobjects.com/communityCS/FilesAndUpdates/cr10_jrc_samples.exe" title="JRC 10 samples">http://support.businessobjects.com/communityCS/FilesAndUpdates/cr10_jrc_samples.exe</a></p><p>However, I would strongly suggest that you take a look at using the latest version of the Java component that ships with our Crystal Reports for Eclipse product. You can download it from here:</p><p><a href="/node/450">http://diamond.businessobjects.com/node/450</a></p><p>and best of all, it&#39;s free! </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>          </p>

  • How Can I call Crystal report from R3?

    Hi experts,
      How Can I call Crystal report from R3?

    Hi Bill,
    Can you please be specific and could you please provide the steps
    Thank you

  • How to Call Crystal Reports from Swing Application

    Hi All,
    I have a requirement for calling Crystal Report from Swing Application. Please let me know how can I do that, and also provide the Source code for calling the crystal report.
    Thanks in advance.
    Chandra

    hi
    this is the code that i am using in my application which is similar to urs. but i am working with CR XI so make all the neccessary changes.
        import java.awt.*;
        import javax.swing.*;
        import com.crystaldecisions.ReportViewer.*;
        import com.crystaldecisions.reports.sdk.*;
        import com.crystaldecisions.sdk.occa.report.reportsource.*;
       public class HelloSwing
            public static void createAndShowGUI()
                try
                    //Make sure we have nice window decorations.
                    JFrame.setDefaultLookAndFeelDecorated(true);
                    //Create and set up the window.
                    JFrame frame = new JFrame("HelloWorldSwing");
                    frame.setTitle( "Testing Reports");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   ReportViewerBean viewer = new ReportViewerBean();
                    viewer.init( new String[0], null, null, null);
                  ReportClientDocument rpt = new ReportClientDocument();
                    rpt.open( "report path", 1 );
                    IReportSource rptSource = rpt.getReportSource();
                    viewer.setReportSource( rptSource );
                    frame.getContentPane().add( viewer, BorderLayout.CENTER );
                    frame.setSize( 700, 500 );
                    frame.setVisible(true);
                    viewer.start();
                catch ( Exception exception )
                    System.out.println( exception.toString() );
            public static void main(String[] args)
                javax.swing.SwingUtilities.invokeLater(new Runnable()
                    public void run()
                        createAndShowGUI();
       there are 23 jar files that u need to import into ur package. but remember that ReportViewerBean should be the first jar file in the list & it should be followed by jrcerom.jar
    specify the key in the CRConfig.xml file (which also has to be imported in the package)
    u can find these jar files in the common objects folder in your program files.
    hope it helps. best of luck

  • How to call crystal report from plsql

    How to call crystal report from plsql?

    http://asktom.oracle.com/pls/ask/f?p=4950:8:14685899341865976974::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241,

  • How to Call a jasper report from Oracle Forms 6i.

    Hi
    Can anybody tel me how to Call a jasper report from ORacle Forms 6i.
    Thanks & Regards
    Bango

    Forms 6i client/server? Use the HOST command to call the report. Since a Jasper report is just a call to a url, it will be something like:
    v_url := '<your url to the report>';
    host ('cmd /c start '||v_url);If it's web Forms 6i it even easier. Just use web.show_document(<url>).

  • 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

Maybe you are looking for

  • I keep getting reminders in Japanese, not sure how to eliminate?  さんは「M

    I keep getting iCloud related Japanese reminders, not sure how to eliminate?  さんは「M&M」への参加依頼を承諾しました. 日時 年2月7日火曜日.07:00 - 10:00 繰り返しイベント 場所 Whereever 参加者 [email protected]とご自身 iCloudはAppleの提供するサービスです. My Apple ID | Copyright © 2014  Apple Inc. All rig

  • Link between Purchase requisition & service master

    Dear Group members Is their any link between Purchase requisition T code ME51N & service master  T code (AC03) Can i create service order in Purchase requisition Regards Shamul heq

  • Reg Missing Field Validation Message

    Hello All, I am trying to use field validation for making a field required when a specific value from a pick list is chosen, i am using this with a custom object. i have written the Field Validation: IIf(([<plStatus_of_Search_ITAG>] = 'Completed' AND

  • Ideas on Percentage share of DB (data base) by different BW objects

    Dear experts, In our system, Different BW objects have the following share of DB (source ST14). What are your ideas on these numbers? Do these numbers seem Ok? Are they comparable to the numbers you have in your productive systems? Is there any thing

  • All Dates are deleted

    Hello Users, about 3 hours ago iCal delete all my dates. The dates are on my iPhone but i can't synchronize them from iPhone to iCal it always synchronize the empty iCal-calendars from mac to iPhone. These calendars are very import for me, how can i