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
Similar Messages
-
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 oracle reports from ADF application.
Hi
I am migrating oracle 11g application to ADF. I would like to call oracle reports from ADF application.There is nothing similar to forms-reports integration, but you can invoke rwservlet url.
Here is sample and utility class: Sameh Nassar: Call Oracle Reports From Your ADF Application
Dario -
Call Crystal Report from Swings
hi...
anyone...
please help..
currently... i m working in Swings.. together with MS Access...
now.. wat i need is... to generate report using crystal report...
i already install CR8 designer...
wat should i do next???
anyone.. please... send some exmaple of java(in swings) coding of how to call the crystal report.
if any type of jar files are required then where to get it???
please advice...
thanks..
[email protected]Hi ammad
I tried this procedure
but the following lines give an error
:Item('Control.CrystalReport1').OCX.Crystal.CrystalReport.WindowParentHandle
:= numWinHandle;
It says bad bound variable.
What is :item in this line? -
How to call BI report from web dynpro
Hi ,
How to call BI report from webdynpro application and what are the prerequisites for that .
Please provide an example to work with BI application frame UI element
ThanksHi Rajpal,
Please go through this..
calling BI report
Cheers,
Kris. -
<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'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 to call a report from a web application
Hi,
I have a web server in wich is installed Reports 6i. My question is how can I call reports 6i to generate a pdf using a .rep file from my web application (built with java)?Hi,
The below link will be very useful for one who need idea on calling Oracle Report from Java Application,
http://www.oracle.com/technology/products/reports/htdocs/getstart/examples/reportswebservice/index.html
Thanks & Rgds,
M T -
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 -
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.
Thankshi
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 -
Integrating crystal report with swing application
Hi,
Any body knows how to integrate crystal reports with swings?
I'm posting this after a painful search in the net/forum.Any idea
will be greatly apprecited.
thanx.
regards,
jmosThe best place to pick up sample code is straight from the horses mouth. [url http://www.businessobjects.com/products/dev_zone/java/default.asp?ref=devzone_main] Crystal java zone
-
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 -
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
TumugantiDid 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 Call Crystal Reports XI from Oracle Forms 6i
hi can any one ,Please provide me the steps to call Crystal Reports XI from Oracle Forms 6i
very urgent please
if any Doument,attachment please send to [email protected]
Thanks in advance
Regards
S.Thirumalai selvanHi All,
Can anyone send me the steps to call Crystal Reports XI from Oracle Forms 6i (client/server)?
Thanks in advance, Lidija
My email is: [email protected] -
Regarding tutorial of how to call Oracle Reports from APEX
Hi,
I'm trying to call Oracle Reports from APEX using this tutorial.
http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
But in the step of 'Create the Oracle HTML DB Application', 'OE' doesn't appear in the LOV of Existing Schema, even though the sample schema exists in the schema and they are unlocked. And when I type 'OE' directly without using LOV, and press Next, the message 'Schema is reserved or restricted' appears.
How can I create the workspace based on OE schema?Hello Shohei,
I know your following the tutorial, but if you want to call oracle reports from apex it is quite easy though if your working with oracle reports 9i or higher. Just create an html region and put in the source the html code for referencing an url like to_report
Or reference the same url from a button placed on the HTML region
(you can create a package that would create the whole URL and returns it as a string, easier for scalability)
Hope this can help you to (tutorial is good but try and learn from scratch is also good ;-) )
Erwin -
Calling 10g reports from ADF_BC Application
Dear All;
Good day to you;
I have an ADF_BC application, and at the same time i have 10g reports compiled and placed on forms and reports server,
i want to call reports from my application as needed, i can put a hyperlink with the link to the report, and it is working fine,
but i want to know how to change the link to be dynamic, since the application is deployed on 1 application server, and the rerports on the other
in addition i need, to know how to send parameters
i am unable to change the properties of a hyperlink in the code, and i do not want to change it in scriplet
any idea, or tutorials will be most helpful
thank you
regards
halimHello John;
Thank you for your reply;
Yes i am using JSF, i am working on JDEV 10.1.3.30, i deployed my application to srvanweb2 a server we have, where the application server port is 7777,
and i have deployed my reports to srvanweb2 with port being 7778,
Report: http://srvanweb2:7778/reports/rwservlet?cmdkey=user_string&report=hrempr007.rdf&destype=cache&desformat=pdf
Application: http://srvanweb2:7777
my problem is, if i want to embed the link to the report as a common HTML hyperlink it would work, but if i want to set the value for this hyerplink dynamically to be able to add parameters on run time i would have to do it on the scriptlet level, and i can not do it in a bean, since i can not call the hyperlink set value, or even the get value, so my question what should i use to create a link which will change in a bean as you said and be able to call a differnet instance which is srvanweb2:7778, and send parameter
regards
Halim
Maybe you are looking for
-
ok so first off I have no problem with panther. I have been happy with my powerbook b4 titanium for the past 6 years now. but now that I went and bought a new iphone 3G , my powerbook doesn't support it. fortunately I converted my parents over to mac
-
Dear Gurus, I want to calculate lead time between purchase order and goods receipt.how to do that??? Am having some doubts. Does the lead time links with Planned Delivery Time Goods Receipt Processing Time Purchasing Processi
-
I have a new software updates deployment. I see there are updates that are required on a few clients. The clients work fine with a software package/application, as they download fine with no problems, so it's not a boundary issue. But I can't get the
-
Ordering Multiple Seperate Orders of Books in iPhoto
I have to order multiple books from iphoto with each having a different shipping, billiing address and CC#s. I was wondering if after I make the first purchase, will the pictures be remembered because they're already uploaded to the server? I need to
-
Help adding audio to a web page...
Hi, im about to start designing a web page that will have 4 audio files on it that can be played once clicked on. I was hoping for something very simple looking (like the amazon audio preview players - track title, play & stop button). I have never d