Java calling Crystal Report API [Error_NotEnoughRight ]
Hi All,
I am trying to call Crystal report's Java API in my JSP and Servlet.....The viewer as such is working fine.....But when I add a grouop to a Report it gives the Following Error... This is an example code copied from this forum....u can find that from
http://support.businessobjects.com/library/kbase/articles/c2011829.asp
Code Used
============
//Add a group, on [Country] to the report
Group grp = new Group();
IField countryFld = custFields.getField(12);
grp.setConditionField(countryFld);
/**********Failing in the Following Line Start ***********/
rptDoc.getDataDefController().getGroupController().add(0, grp);
/**********Failing in the Following Line End ***********/
Error Message
=============
Customer Name java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key Error_NotEnoughRight
Print Stack Trace
===============
java.util.MissingResourceException: Can't find resource for bundle java.util.Pro
pertyResourceBundle, key Error_NotEnoughRight
at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
at java.util.ResourceBundle.getObject(ResourceBundle.java:311)
at java.util.ResourceBundle.getString(ResourceBundle.java:274)
at com.crystaldecisions.client.helper.ResourceManager.getString(UnknownSource)
at com.crystaldecisions.client.helper.SDKResourceManager.getString(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.af.try(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.GroupController.add(Unknown Source)
at org.apache.jsp.FlexibleReport_005fTry3_jsp._jspService(FlexibleReport_005fTry3_jsp.java:138)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:536)
Thanks in Advance
Kababu
CROSS POST
http://forum.java.sun.com/thread.jsp?forum=53&thread=549788&start=0
Similar Messages
-
<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 connect Java to crystal report
How to connect java with crystal report ?
Which are the API's for thatIn all this time you never considered searching?
Cross post
http://forum.java.sun.com/thread.jspa?threadID=791154 -
Call Crystal Report 8 from JSP?
Can anyone help me on how to call Crystal Report 8 (*.rpt) from JSP page? The JSP is deploy into J2EE application.
Thanks
KennyThere is not any direct support, but you can use INet Crystal Clear API. It comes with an Applet client, and you can use that applet client from jsp to display crystal reports.
-
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.
Chandrahi
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 -
Hello,
Is there a Crystal Reports API? Where can I find some documentation on this?
Regards,
SurajHello Suraj,
we have a Crystal Reports API for COM, for .NET and for Java.
We have an own developer site for all API related questions with lots of samples [here|https://boc.sdn.sap.com/]. Even more samples you would find [here|https://www.sdn.sap.com/irj/sdn/businessobjects-downloads](choose softwaretype -> sample). We also have a dedicated forum for API posts [here|https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forums].
Please post all your questions and remarks into that forum where developer will try to answer to their best.
Best regards
Falk -
Calling Crystal Reports XI from Forms 10g
Any one succeed in calling Crystal Reports XI from Forms 10g,
or using Import Java Class in Forms 10g
to call Crystal Reports XI
or any other method to invoke crystal Reports XI from FORMS
share your Knowledge to OTN
please provide me the steps,documents to [email protected]
Message was edited by:
user501763Hi,
Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
-Arun -
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 -
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 -
hi all
how to connect java to crystal reports
i want to sample code
please help me
thanks"Date(2010, 1, 1)" string.
One recommendation is to schedule using InfoView then use Query Builder to find the value specified.
Sincerely,
Ted Ueda -
Dear All
Can you please assists me with code to call Crystal reports in Abap program.
Thank you in advance
Williamhi,
please see :
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/156e3fefa13042e10000000a114084/frameset.htm
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/004aacbb-4983-2b10-8da7-cdff5dcbb948
it will help you
regards
rahul -
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 -
Hi Expert,
I developed a scenario for Call Crystal Report.
But when I call the crystal report it's give me below error.
"com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: InternalFormatterException---- Error code:-2147467259 Error code name:failed"
Thanks,
TusharHi Tushar
As far as I remember I had a similar problem and in my case it was due to specific font used in report definition. I did like this: first I checked if the problem persists if I use very simple report and it revealed that the problem was gone; then I started to remove parts of my report and checked if the problem shows up again. After some time I found out that one of the font was responsible - I don't know why.
Kind regards,
Radek -
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,
-
Calling crystal reports 11 from oracle forms 10g
Could you provide me step by step a solution on how I can call crystal reports 11 from oracle forms 10g application.
Hi,
Use web.show_document for calling the reports. Check out forms online help for syntax and example of web.show_document.
-Arun
Maybe you are looking for
-
Importing from imovie 6.0
In file menu, there is a command import imovie hd project. The clip appears, but it is empty or unreadable. I thought I read that 8.0 would import the clip minus the transitions, etc in 6.0. I don't mind reediting, but I do mind not being able to imp
-
My 3G ipod lost it's internet ability
My 3G ipod was connected to a desk top and had an issue that made me reboot my computer. After rebooting the computer, I turned the ipod on, it said to log in and it froze claiming unauthorized user. I brought the ipod to the original computer where
-
I can't install itunes it says my windows installer won't work
I am trying to download the newest version of itunes and it says it can't finish download cuz windows installer won't work. Help
-
Whenever I open a document in Microsoft Word 2004 for Mac, this message pops up: "There is not enough memory or disk space to run the converter 'EPS Import." I have checked the hard drive and 180+ GB are free. At times, the Spelling and Grammar check
-
How do we create automatic billing every day
hi how do we do billing doucment periodically eg everyday 10 Pm and automatically by the system. as i know we can it in background how we can do in background. Thanks & Regards Points will be rewarded.