Integrating crystal reports9 for java with weblogic8.1

hi,
i working with crystal reports 9 for java,i have a application done in weblogic
which need to generate reports using crystal reports on the user's requirement,so
reports data will be dynamic.kindly help me to proceed further,iam new to weblogic.

hi
i have worked on integrating crystal reports with weblogic
first create the crystal RPT file under the portlet folder create a folder as reports then import the rpt file into ur reports folder u need some .jar files for integrating reports with weblogic or sent ur mail id i
will sent it to u those jar files import those jar files into ur web inf folde of weblogic.
regards
sudhakar

Similar Messages

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • Error in Visual Editor for java with eclipse

    hello eb
    till i ysterday i used visual editor for java with eclipse normally without any problem but to day when i opened eclipse it display me this error :
    Error trying to set new File into editor
    Motif : java.lang.NullPointerException
    and i think that the problem comes from the visual editor plugin because when i add a new frame or even for the old frame it dosent display for me the graphical component like every time
    if si has the solution or can advise me thank you alot and i really dont know what to do .
    it is for my stydy project and i have to finish xorking as fast as possible so if so can help me

    well this forum here is the official java-forum by Sun.
    you are asking for help on Eclipse, a software made by IBM since the cooperation between the two werent that bright all the time.(hence the name eclipse)
    i just looked a few hours myself, and the latest version of the VE was suited for 3.0.2, the version fitting to the latest 3.1 build of eclipse, was still just a release candidate.
    wait a few days/weeks for a final build and retry.

  • Integrating Crystal Report 2008 Developer with Visual Studio 2008 Standard

    I have Crystal Reports 2008 Developer version 12.0.0.683 on my computer. I also have Visual Studio 2008 Standard. I know the standard edition of VS 2008 does not have the bundled crystal reports, but since I bought the full version of CR 2008 separately, I figure I should be able to use CR within VS 2008. The problem I am facing is integrating Crystal Reports with Visual Studio, so I can create reports from within visual studio.
    Crystal Reports was installed first and then Visual Studio. As per suggestions on this and other forums, I repaired my installation of Crystal Reports, but that did not help. I then ran Visual Studio integration manager, but when I run it, it only detects Visual Studio as the currently installed IDE, but does not detect CR 2008. I downloaded service pack 2 for CR, but have not installed it yet. I do not want to install it if it is not going to help. I would also like to avoid uninstalling my copy of CR if at all possible.
    I am a newbie at development in visual studio. Any help will be highly appreciated.
    Thanks,
    Rajib

    Don't want to go against what Jason said as it may be correct - if we go strictly by the documentation provided (sorry Jason, Dan says...). However, here is something to try;
    Uninstall CR. Look for any left overs; c:\program files\business objects\... and delete all of that.
    Look in the registry for HKLM\software\business objects and remove the business objects entry.
    Download CR 2008 from here:
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    That is a trial version and I believe it is already at SP 1. Use your keycode to install. Once this is done, you should have the ability to use CR in .NET. I'd recommend you do apply sp 2 now also.
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • Using Crystal Report for VS2010 with target Framework 4 Client Profile

    I´m need know if is possible use the Crystal Reports for VS 2010 with the framework 4 client Profile. Exists some posibility?
    I need use the WPF Crystal Report Viewer, and the export/print mechanism.
    Regards

    Hi Null,
    No it is not, CR requires the full client in all framework versions.
    Thank you
    Don

  • Configuring PI during Integration of Cloud for Customer with ERP

    While trying to Integrate SAP Cloud for Customer with SAP ERP using PI, while configuring PI, we need to create a Technical and Business System in SLD for Cloud for Customer. During the Technical System configuration wizard, it asks for "Technical System Identification" and "System Host Name". How do I find this? Is it on Cloud for Customer?
    Thanks and regards,
    Nikhil Da Gama Pais,
    [email protected]

    Hi Nikhil,
    I think its an alias given to the system as the system is being created as a standalone. You can give your own name for understanding purpose as I also gave my own acronym for cloud system in PI.
    Thanks,
    Ravi

  • Crystal Report for Java

    Hi everyone,
    I have a JSP,
    <FORM name="ReportForm" method="POST" action="http://webcrdev:8085/ReportViewer/viewer.jsp"> <input name="reportName" type="HIDDEN" value="ClaimD"/> <INPUT name="<fieldname1>" type="HIDDEN" value="<value1>"/> <INPUT name="<fieldname2>" type="HIDDEN" value="value2"/></FORM>
    and then is viewer.jsp:
    <%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession, com.crystaldecisions.sdk.occa.infostore.IInfoStore, com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory, org.apache.log4j.Logger, java.util.Properties, java.util.Enumeration, com.crystaldecisions.sdk.framework.CrystalEnterprise, com.crystaldecisions.sdk.occa.infostore.IInfoObjects, com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue, com.crystaldecisions.sdk.occa.infostore.IInfoObject, com.crystaldecisions.report.web.viewer.CrystalReportViewer, com.crystaldecisions.sdk.occa.report.reportsource.IReportSource, java.util.Locale, com.crystaldecisions.sdk.occa.report.data.Fields, com.crystaldecisions.sdk.occa.report.data.Values, com.crystaldecisions.sdk.occa.report.data.ParameterField, com.crystaldecisions.report.web.viewer.CrPrintMode, com.crystaldecisions.report.web.viewer.ReportServerControl"%><%! IEnterpriseSession enterpriseSession ; IInfoStore iStore ; IReportSourceFactory reportSourceFactory ;%><% //Login information String userName = "<user-name>"; String password = "<password>"; String aps = "<servername>"; String auth = "secEnterprise";//authentication type //Login and get reports base on report's name enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userName,password,aps,auth); iStore = (IInfoStore) enterpriseSession.getService("InfoStore"); reportSourceFactory = (IReportSourceFactory) enterpriseSession.getService("PSReportFactory"); //Query report object using report's name String reportName = request.getParameter("reportName"); String query = "Select SI_ID, SI_NAME from CI_INFOOBJECTS where SI_NAME = '" + reportName + "'"; IInfoObjects result = iStore.query(query); IInfoObject report = (IInfoObject) result.get(0); //Create Crystal Report Viewer CrystalReportViewer viewer = new CrystalReportViewer(); IReportSource reportSource = reportSourceFactory.openReportSource(report,Locale.ENGLISH); viewer.setReportSource(reportSource); //Pass in parameters //All parameters are passed in from client with names are exactly the same with params' names in report Fields tmpFields = viewer.getParameterFields(); for(int i = 0; i < tmpFields.size(); i++) {        paramValue = request.getParameter(((ParameterField)tmpFields.getField(i)).getName());        Values val = new Values();        ParameterFieldDiscreteValue pfieldDV = new ParameterFieldDiscreteValue();        pfieldDV.setValue(paramValue);        val.add(pfieldDV);        ((ParameterField)tmpFields.getField(i)).setCurrentValues(val);        ((ParameterField)tmpFields.getField(i)).setDefaultValues(val);    } viewer.setPrintMode(CrPrintMode.ACTIVEX); viewer.setReuseParameterValuesOnRefresh(true); viewer.setHasLogo(false); viewer.setHasSearchButton(false); viewer.setHasRefreshButton(true); viewer.setOwnForm(true); viewer.setOwnPage(true); viewer.setEnableDrillDown(true); viewer.setDisplayGroupTree(false); viewer.setDisplayToolbar(true); viewer.setEnableParameterPrompt(false); viewer.refresh(); viewer.setBestFitPage(true); viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out); viewer.dispose();%>
    After report is shown, user click on the report toolbar (export, print, nextpage, prevpage, etc.), it's show error: not enough parameters.
    If with the same code but without parameter, It's run OK.
    Anyone help me?
    Thanks in advanced!
    Nguyen Hung Linh.

    Am I right that you are having a problem with Crystal Reports? This is the Oracle Reports forum, so you'd better look on Internet for a Crystal Reports forum.

  • Crystal Reports in Java with BEA Weblogic (test drive)

    Hello,<br/>
    <br/>
    The question is: What is wrong with Crystal Reports or BEA Weblogic, when they are working together? And how can it be repaired?<br/>
    <br/>
    I have a project working with reports. Tried to implement it for crystal reports and found an interesting problem. Crystal Reports didn't work with BEA Weblogic as well as with other servers. 1-2 years ago we just took Tomcat and worked with it. Right now we are interested in working with BEA.<br/>
    <br/>
    Everything works, but much slower than other servers. The best explanation is just a my tries in the end of the post. I hope some clever man helps me to option Weblogic or at least explains what is wrong.<br/>
    <br/>
    Test results are:<br/>
    <br/>
    - Apache Software Foundation - Tomcat 6.0:<br/>
    ~3 sec for clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br/>
    ~1 sec for crystalReportPageViewer.processHttpRequest(request, response, application, null); <br/>
    <br/>
    - OC4J - Oracle Containers for J2EE 10g (10.1.3.3.0):<br/>
    ~4 sec for clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br/>
    ~1 sec for crystalReportPageViewer.processHttpRequest(request, response, application, null); <br/>
    <br/>
    - Jetty 7.0.0.pre5:<br/>
    ~2 sec for clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br/>
    ~0 sec for crystalReportPageViewer.processHttpRequest(request, response, application, null); <br/>
    <br/>
    - BEA Weblogic 9.2:<br/>
    <b>~30 sec</b> for clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br/>
    <b>~8 sec</b> for crystalReportPageViewer.processHttpRequest(request, response, application, null); <br/>
    <br/>
    simple_cr_webapp.war (30 MB) can be downloaded [here|http://rapidshare.com/files/221096566/simple_cr_webapp.war.html] or [here|http://math.ut.ee/~a30858/simple_cr_webapp.war]:<br/>
    crystalreportviewers //all viewers for 2.0
    WEB-INF
      classes
        CRConfig.xml //see WAR - without key, only sets timeout and report location
      lib //all libraries for Eclipse plugin's web-app + j2ee.jar
      web.xml //see WAR - generated by Eclipse plugin
    sample.jsp //see WAR - generated by Eclipse plugin
    sample.rpt //"Consolidated Balance Sheet.rpt" from Eclipse plugin's web-app samples
    <br/>
    P.S. It is also suites if someone gives a simple project with CR, that works well. I really need to get solution for this problem, so any advises are expected.<br/>

    I also tried for different java vendors on BEA Weblogic 9.2.
    Results for Jrockit are above: 30 sec and 8 sec
    Results for Sun are worse than JRockit: 50 sec and 10 sec
    JRockit:
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    BEA JRockit(R) (build R26.0.0-189_CR269406-59389-1.5.0_04-20060322-1120-win-ia32, )
    JAVA Memory arguments: -Xms500m -Xmx1000m
    Sun:
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=256m -XX:MaxPermSize=256m

  • Regarding accesing integration builder tool for java proxy generation

    Hi Abapers,
        How can I access integration builder tool to generate java proxy via SAP XI server in my ECC 5.0?
        Please give me the clear idea of that.
    regards
    Subash

    Hi Marinel,
    The support for XSD import is limited on 10.1.2. If you can, you should consider moving to the 10.1.3 preview as the support for document style web services has improved. The other option will be to inline the schema in your WSDL.
    Eric.

  • Replacing WebDynpro for Java with Flex 3 Apps

    Hi there, I am new in developing Flex 3 app.
    I know how to use web Services with Flex and so on. But the my question how can I replace WebDynpro Apps in SAP NetWeaver portal. What do I have to do?
    How can I integrate Flex App in Portal without using the Visual Composer?
    Best regards Jay

    Hi Jan,
    Below check the below weblog. It may help you.
    Using Flex in SAP Web applications (without Adobe Flash Islands)
    Raghu

  • OCI Punchout Catalog integration in Webdynpro for Java

    Hi,
    I am planning to call a external vendor catalog (OCI) from my webdynpro application and consume the values, Can some one help me on how to achieve this ? I am not using SRM. I need to pass the value to ERP system
    Thank,
    Vinit Pugaliya

    Hi Vinit
    We're in the exact same situation today. Did you ever solve it? We're able to call the external catalog via OCI and would like to import the http post response containing the catalog items back into our own webdynpro java app. Would be great if you could share your solution.
    BTW: we're not using and do not plan to use SRM
    Thanks and best regards
    Renaud

  • How to use Crystal Report Server with Crystal Reports for Eclipse

    Hi,
    is it possible to use Crystal Reports for Eclipse with the Crystal Report Server
    like i can do it in Crystal Reports.
    For Example open a Report file directly from the server edit and save there.
    Thanks
    Thomas

    Yes, you can use the CR Server product in your Eclipse project.  However, you will need to use the RAS SDK in your project instead of the CR4E SDK. 
    For more information about the RAS SDK, visit the DevLibrary.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    -MJ

  • Crystal Reports for Eclipse - Builds wrong query for Ingres

    An Ingres user tries to use Crystal Reports for Eclipse with Ingres database. I am attaching here-with the related Ingres forum posting (  http://community.ingres.com/forum/database-drivers-apis/2567-jdbc-crystal-reports-eclipse.html ). Based on further research it appears that the crystal reports engine generates a wrong SQL query for Ingres when the table fields are dragged and dropped from the Field Explorer view to a newly created crystal report. Examining the contents of the table from the Data Explorer view seems to work just fine. Any thoughts/pointers on this issue is greatly appreciated.
    Regards,
    Usha

    Please re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Side by side installation Crystal Reports for Visual Studio 2010 - CRXIR2 ?

    we are integrating Crystal Reports for Visual Studio 2010 into our C++ application.
    We used to work with CRXIR2.
    A customer of ours has upgraded to the VS2010 runtime version for 64-bit,
    and seems to be having random crashes.
    We haven't been able to pinpoint the problem...
    They are running several of our applications simultaniously on terminal servers.
    What we noticed is that they did not uninstall CRXIR2 from there system.
    Is this side-by-side installation supported?
    So XIR2 next to Crystal Reports for Visual Studio 2010  ?
    And even: can you have a Crystal Reports for Visual Studio 2010  64bit next to a 32bit? Probably yes?
    Next to that: is there any limit of concurrent users (applications) that use the .NET component?
    I would think not...
    Bart

    Hi Bart,
    Side by side installation shouldn't be a problem, unless you had Beta version of CRVS2010 installed on the same machine.
    For better results try upgrading to use SP1 of CRVS2010. For CRVS2010 resources, you can go through this
    Crystal Reports for Visual Studio 2010 - Deployment
    I haven't seen any problem with 64bit next to a 32bit til date.
    You can go through this for CR support on x64
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10d5fa88-2013-2c10-c9a5-f11963607d4e
    To answer your last question, go through following:
    Crystal Reports Maximum Report Processing Jobs Limit
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023
    Thanks,
    Saurabh

  • Is it possible to disable compression in SapGui client for Java?

    Subj. I know it is possible to do it in native Windows-client by setting "TDW_NOCOMPRESS" environment variable to 1.

    Hello,
    apologizes for the misunderstanding.
    Regarding security, you might want to have a look at the forum and http://www.sdn.sap.com/irj/sdn/security.
    Back to the original matter, I can tell that modifying or extending the SAP GUI functionality on communication protocol level is quite challenging. The protocol is not published and a binary protocol.
    Depending what your intention is, you might want to have a look at [GuiXT|http://www.guixt.com/].
    Another approach is to write your own controls for SAP GUI, see [How To Extend SAP GUI for Java with Your Own Java Bean |http://www.sdn.sap.com/irj/sdn/sap-gui?rid=/library/uuid/20e0536f-eaf4-2a10-319d-eb68f8e6cee3] on the [SAP GUI family page|http://www.sdn.sap.com/irj/sdn/sap-gui#section16].
    Best regards
    Rolf-Martin

Maybe you are looking for