Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all 893 articles
Browse latest View live

Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!

$
0
0

Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available for Download!

 

Download site for the Crystal Reports Java Runtime, Eclipse Installation package, and Eclipse All-In-One package are available here:

 

[http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp]

 

You no longer need to register to download CR4E updates.

 

To use the Eclipse Update Manager, start the Eclipse IDE,  go to Help -> Software Updatesu2026 and ensure you've added the following site:

 

[http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/update_site]

 

Fixed issues with Release Update 8 are listed here:

 

http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/cr4ev2_readme.pdf

 

Sincerely,

 

Ted Ueda


Can't print PDF files exported from Crystal Reports for Eclipse 2.012

$
0
0

If i print crreport.pdf /attached/ file from Google Chrome 19.0.1084.52 and earlier, Browser gives me an error:

"INFORMATION  2556      2616      10:41:46-402     ..\plugins\npapi\plugin_list.cc     45          Ignoring plugin with unexpected MIME type application/pdf (expected application/x-google-chrome-print-preview-pdf)"

From any other place on the same pdf, file is printed (Adobe Acrobat, IE, Firefox, Safari - for example)

 

 

It prints fine, without Chrome pdf plug-in. But this is not the standard configuration, which occurs in the majority of users.

 

Please, help!

 

//rename please crreport.text to crreport.pdf

 

 

Best regards,

Ivan Michailov

ivanmichailov@gmail.com

Migrating from reports 10 RAS tp BO XI 4.0 reports view in JSP

$
0
0

I was wondering if you can help me with this problem -

1.  We have developed reports using RAS Reports 10

2.  Currently have migrated J2EE application to Windows 2008 server and so need to upgrade to Crystal Reports 13 (Business Objects XI 4.0)

3.  This is a trial version.

4.  The reports engine works fine as standalone

5.  When I try to launch reports_viewer.jsp in Java application - I am importing the following JARS

com.crystaldecisions.reports.sdk.*,

com.crystaldecisions.sdk.occa.report.reportsource.*,

com.crystaldecisions.sdk.occa.report.lib.*

 

com.crystaldecisions.sdk.occa.report.application.*,

com.crystaldecisions.sdk.occa.report.exportoptions.*,

com.crystaldecisions.sdk.occa.report.data.*,

com.crystaldecisions.sdk.occa.report.data.ITable;

com.crystaldecisions.report.web.*,

com.crystaldecisions.report.web.viewer.*,

com.crystaldecisions.report.web.viewer.CrystalReportViewer,

com.crystaldecisions.sdk.occa.report.lib.*

 

6.  I get errors  on a few needed jars - does not exist

7.  I have copied jars from XI 4.0/java/lib, /external to WEB-INF/lib folder.

 

What am I missing?

 

Thanks,

 

Amar

Change database

$
0
0

Hello,

 

I'm using the Crystal Reports Java SDK from Crystal Reports for Eclipse 2.0 (normal Java code, no JSP) and trying to change the database during runtime. Here's my code snippet:

final PropertyBag newConnectionProperties = new PropertyBag();
final IConnectionInfo newConnectionInfo = new ConnectionInfo();
newConnectionProperties.put("Use JDBC", true);
newConnectionProperties.put("Connection URL", "jdbc:jtds:sybase://IP:PORT/DATABASE_NAME");
newConnectionProperties.put("Database Class Name", "net.sourceforge.jtds.jdbc.Driver");
newConnectionProperties.put("Database DLL", "crdb_jdbc.dll");
newConnectionInfo.setAttributes(newConnectionProperties);

try {
    newConnectionInfo.setUserName("USER_NAME");    newConnectionInfo.setPassword("PASSWORD");    final IConnectionInfo oldConnectionInfo = reportClientDocument.getDatabaseController().getConnectionInfos(null).getConnectionInfo(0);    reportClientDocument.getDatabaseController().replaceConnection(oldConnectionInfo, newConnectionInfo, null, 0);
}
catch (ReportSDKException exception) {
}

 

The problem is that Crystal Reports always connects to the database specified during design time in the report. Lets assume there are two databases on the same server: DATABASE_DEVELOPMENT and DATABASE_TEST. During design time, the report has been configured to connect to the development database. But during runtime, I'd like to connect to the test database (or maybe a production database). This does not work with the above code (assuming that the DATABASE_NAME in the connection URL is replaced with DATABASE_DEVELOPMENT or DATABASE_TEST). What am I doing wrong?

 

Thanks in Advance!

 

Robin Lebert

Crystal Report Chart not showing up in Web Portal

$
0
0

I have a created a chart using Crystal Reports(runs fine in Crystal) and published it on our Report Server. When I went to look at the report on our Web portal, the text objects were visible however the chart was not. Portal is in JSF technology (IceFaces) on JBoss server.

Anyone know why this happening?

 

I founded post

[Re: Crystal Viewer in Servlet does not show graphics|Re: Crystal Viewer in Servlet does not show graphics]

I have this in web.xml

 

<context-param>

         <param-name>crystal_image_uri</param-name>

         <param-value>/my_app_name/crystalreportviewers115</param-value>

</context-param>

 

But in URL like this one

/my_app_name/crystalreportviewers115/crystalimagehandler.jsp?dynamicimage=crystal7652571164231307864.png

I haven't file "crystalimagehandler.jsp" I also didn't found "crystal7652571164231307864.png" file. how to resolve this problem?

Crystal Reports e-Learning

$
0
0

Dear All,

 

I used SAP Crystal Reports Plugin with Eclipse have gone through few features of it.

 

Now i have got Sap Crystal Reports 2008 XI on my machine. I was looking forward to know

is there any e-Learning course for it so that i can see how we can utilize the maximum of

Crystal Reports.

 

Looking forward to hear.

 

BR,

Prithvi

 

Edited by: prithvisehgal on May 19, 2011 2:45 PM

Crystal Reports Update to latest SP18

$
0
0

Hello,

 

I installed the latest update SP18 and now all the dotted lines in the charts in my reports don't show up correct. They are no more dotted but long separate lines. See the screenshot. The yellow marked line should be dotted (the others too).

 

dotted.jpg

 

This happens in all graphs and charts that uses dotted lines. I could reproduce this behaviour on Windows and Linux Environment.

 

Before this update I worked with version 2.0.14.r1877 and I had no such problems.

 

I had to uninstall the update, because I have a lot of charts and all of them show this wrong behaviour.


Is there any bugfix available?


Best regards

Martin

Printing Font 39251 (Barcode font) causes java null pointer issue

$
0
0

Hi,

 

Its been a month or so since I have posted, so I must be getting better... :)...

 

I have a problem with printing a report or exporting a PDF when the report contains a font 39251 (barcode font). It is fine when exporting to word or other formats.

 

Version 12.2.200 of the Eclispse reporting tool.

 

As a point to note, if running the report directly in Eclipse it does succesfully export to PDF so I am hoping it is a missing JAR file or equivalent.

 

The exception is given below:

 

13:42:23,770 ERROR JRCCommunicationAdapter:720 -  detected an exception: java.lang.NullPointerException

     at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)

     at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.tables.ControlValueTable.if(SourceFile:58)

     at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.tables.ControlValueTable.<init>(SourceFile:53)

     at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.OpenTypeSubsetter.<init>(SourceFile:56)

     at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.a(SourceFile:352)

     at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.a(SourceFile:313)

     at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.r.a(SourceFile:1538)

     at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.PdfDocumentManager.if(SourceFile:350)

     at com.crystaldecisions.reports.exporters.format.page.pdf.dom.PdfAdvancedDocumentModeller.do(SourceFile:348)

     at com.crystaldecisions.reports.exporters.page.pdf.AdobePDFExporter.finalizeExportJob(SourceFile:235)

     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:652)

     at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)

     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:636)

     at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:672)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1944)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)

     at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)

     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)

     at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)

     at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)

     at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)

     at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)

     at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)

     at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)

     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)

     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)

     at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(SourceFile:286)

     at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(SourceFile:209)

     at com.businessobjects.report.web.event.bh.a(SourceFile:158)

     at com.businessobjects.report.web.event.o.a(SourceFile:146)

     at com.businessobjects.report.web.event.bw.broadcast(SourceFile:93)

     at com.businessobjects.report.web.event.am.a(SourceFile:53)

     at com.businessobjects.report.web.a.t.if(SourceFile:2104)

     at com.businessobjects.report.web.e.a(SourceFile:300)

     at com.businessobjects.report.web.e.a(SourceFile:202)

     at com.businessobjects.report.web.e.a(SourceFile:135)

     at com.crystaldecisions.report.web.ServerControl.a(SourceFile:607)

     at com.crystaldecisions.report.web.ServerControl.processHttpRequest(SourceFile:342)

     at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.a(SourceFile:109)

     at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(SourceFile:69)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

     at java.lang.Thread.run(Thread.java:595)

      

 

Kindest Regards

 

Matt


Crystal Report-Ad-hoc reporting with Java Web Application

$
0
0

Hi,

   We are reviewing crystal reports for our Java web Application.We are looking at the option for enabling ad-hoc reporting using crystal report.Can any one help us out with clear steps and process to get this done.

 

   Thanks 

 

Nagarajan

crystal report viewer jsp how desalocate memory

$
0
0

Hello

 

I have an code jsp  it is ok

On toolbar I have a lot "pageserver.exe" , the memory is high !!

( We have Tomcat )   

 

look my code i clean the memory by dispose it's ok ??  Thanks you

very much michel

 

 

<%

%><%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,                   com.crystaldecisions.sdk.plugin.desktop.common.*,                   com.crystaldecisions.sdk.framework.*,                   com.crystaldecisions.sdk.occa.security.*,                   com.crystaldecisions.sdk.exception.SDKException,             com.crystaldecisions.sdk.occa.report.exportoptions.*,                   com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory,                   java.util.Locale,             java.util.*,             java.lang.String,             java.io.IOException,             java.io.InputStream,             java.io.OutputStream,             java.util.*,             java.util.ArrayList,             java.util.Iterator,             java.util.List,             java.io.*,                   com.crystaldecisions.sdk.occa.report.data.*,                   com.crystaldecisions.report.web.viewer.*"

%><%
String pi_scms             = request.getParameter("cms");       String pi_suser             = request.getParameter("user"); r      String pi_spass             = request.getParameter("pass");       String pi_sdocName       = request.getParameter("sdoc");      String pi_suserDb     = request.getParameter("userdb");exemple rcteaxeriah     String pi_spassDb     = request.getParameter("passdb");                  // ****  Récupération des paramétres envoyés par l'URL la premiere Fois      // les fois suivantes il faut utiliser le principe de session      String[] tab_schamp  = request.getParameterValues("schamp");     String[] tab_stype   = request.getParameterValues("stype");     String[] tab_svaleur = request.getParameterValues("svaleur");     String[ ] tab_schamp1 = new String[100];  // Tableau des Champs     String[ ] tab_stype1  = new String[100];  // Tableau des Types      String[ ] tab_svaleur1 = new String[1000]; // Tableau des Valeurs           // on Mémorise dans une session pour l'activiewer     // pour contourner le probleme lors d'access a la prochaine page sur l'active viewer       // les données etaient a vide       HttpSession session1 = request.getSession(true);                         //            1ere CONNECTION (URL) on mémorise dans la session     if( session1.isNew() )      {        session1.setAttribute ("CMS",pi_scms);  // nom cms        session1.setAttribute ("USER",pi_suser); // nom user connection cms         session1.setAttribute ("PASS",pi_spass); // password cms        session1.setAttribute ("SDOC",pi_sdocName); // nom du report Rpt         session1.setAttribute ("USERDB",pi_suserDb); // utilisateur base de donne        session1.setAttribute ("PASSDB",pi_spassDb); // mot de passe base de donnée                                         // on parcours le tableau des champs type et valeur         // pour le stocker dans la session PARAM0,TYPE0,VALEUR0,PARAM1,TYPE1,VALEUR1,        String  l_s_mot_cle_param  ;        String  l_s_mot_cle_type   ;        String  l_s_mot_cle_valeur ;                  for (int l_i_Nbr_Champ = 0; l_i_Nbr_Champ < tab_schamp.length; l_i_Nbr_Champ++)        {                      l_s_mot_cle_param  = " " ; l_s_mot_cle_type   = " "  ; l_s_mot_cle_valeur = " ";                              l_s_mot_cle_param  = "PARAM" ;           l_s_mot_cle_type   = "TYPE"  ;          l_s_mot_cle_valeur = "VALEUR";           l_s_mot_cle_param  = l_s_mot_cle_param  + String.valueOf(l_i_Nbr_Champ);           l_s_mot_cle_type   = l_s_mot_cle_type   + String.valueOf(l_i_Nbr_Champ);           l_s_mot_cle_valeur = l_s_mot_cle_valeur + String.valueOf(l_i_Nbr_Champ);                         // Mémorisation en session                            session1.setAttribute (l_s_mot_cle_param  , tab_schamp [l_i_Nbr_Champ]);          session1.setAttribute (l_s_mot_cle_type   , tab_stype  [l_i_Nbr_Champ]);          session1.setAttribute (l_s_mot_cle_valeur , tab_svaleur[l_i_Nbr_Champ]);              }               // Stocke le nombre de champs passés dans l'URL en session            session1.setAttribute ("NBRELEM" , String.valueOf(tab_schamp.length-1));        } // fin  si nouvelle connection on mémorise dans la session                           //            1ERE CONNECTION OU CONNECTION SUIVANTES       //            on récupére les valeurs de la session                            // Récupération des valeurs de la session           String l_s_cms      = (String)session1.getAttribute("CMS");       String l_s_user     = (String)session1.getAttribute("USER");       String l_s_pass     = (String)session1.getAttribute("PASS");       String l_s_sdocname     = (String)session1.getAttribute("SDOC");       String l_s_userDb     = (String)session1.getAttribute("USERDB");       String l_s_passDb     = (String)session1.getAttribute("PASSDB");                   // recupération du nombre d'élément       String l_s_nbrelem     = (String)session1.getAttribute("NBRELEM");       int l_i_nbr = Integer.parseInt(l_s_nbrelem);        // Récupération des champs et insertion dans un tableau        // de tous les champs mémorisés dans la session                                    String  l_s_mot_cle_param1   ;       String  l_s_mot_cle_type1    ;       String  l_s_mot_cle_valeur1 ;                 for (int l_s_cmpt = 0; l_s_cmpt <= l_i_nbr ; l_s_cmpt++)                             {                              l_s_mot_cle_param1  = " " ;l_s_mot_cle_type1   = " "  ;l_s_mot_cle_valeur1 = " ";                          l_s_mot_cle_param1  = "PARAM" ;                l_s_mot_cle_type1   = "TYPE"  ;                l_s_mot_cle_valeur1 = "VALEUR";                                l_s_mot_cle_param1  = l_s_mot_cle_param1  + String.valueOf(l_s_cmpt);                l_s_mot_cle_type1   = l_s_mot_cle_type1   + String.valueOf(l_s_cmpt);                l_s_mot_cle_valeur1 = l_s_mot_cle_valeur1 + String.valueOf(l_s_cmpt);                               tab_schamp1 [l_s_cmpt]  = (String)session1.getAttribute(l_s_mot_cle_param1);                tab_stype1  [l_s_cmpt]  = (String)session1.getAttribute(l_s_mot_cle_type1);                tab_svaleur1 [l_s_cmpt] = (String)session1.getAttribute(l_s_mot_cle_valeur1);                      }      //            FIN RECUPERATION DES CHAMPS MEMORISES EN SESSION                    try {                   //            CONNECTION AU CMS                   IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(l_s_user,l_s_pass,l_s_cms,"secEnterprise");                   //Grab the InfoStore from the httpsession (Entreprise session)         IInfoStore infoStore = (IInfoStore)enterpriseSession.getService("", "InfoStore");                  //Query for the report object in the CMS.  See the Developer Reference guide for more information the query language.           // CI_INFOOBJECTS = TABLES des objets du referentiel BO         IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query("SELECT TOP 1 * " + "FROM CI_INFOOBJECTS " +          "WHERE SI_PROGID = 'CrystalEnterprise.Report' AND SI_INSTANCE=0 AND SI_NAME='" +  l_s_sdocname + "'" );              if (oInfoObjects.size() > 0) {                            //Recupere la derniere instance du report               IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(0);                   //Use the PS report factory to obtain a report source that will be processed on the Page Server.                  IReportSourceFactory factoryPS = (IReportSourceFactory)enterpriseSession.getService("PSReportFactory");              Object reportSource = factoryPS.openReportSource((oInfoObject), Locale.ENGLISH);                             session.setAttribute("reportSource", reportSource);               //            FIN CONNECTION AU CMS                     //             CONNECTION A LA BASE DE DONNEE ORACLE                          ConnectionInfo dbLogonInfo = new ConnectionInfo();          dbLogonInfo.setUserName(l_s_userDb);          dbLogonInfo.setPassword(l_s_passDb);          ConnectionInfos dbLogonInfos = new ConnectionInfos();          dbLogonInfos.add(dbLogonInfo);                         //Put this object in session so that it can be retrieved and used by the viewer.          session.setAttribute("dbLogonInfos", dbLogonInfos);                          //       INSTANCE DE l'ACTIVE VIEWER DE CRYSTAL REPORT            CrystalReportViewer viewer = new CrystalReportViewer();                  viewer.setName("CrystalReportViewer");              // Active l'exportation et l'impression sur le visualisateur                    viewer.setOwnPage(true);              //Impression possible sur le mode ActiveX                viewer.setPrintMode(CrPrintMode.ACTIVEX);                  //le rapport sera affiché sur le Viewer                   //Object reportSource = session.getAttribute("reportSource");              viewer.setReportSource(reportSource);                  //ConnectionInfos dbLogonInfos = (ConnectionInfos)session.getAttribute("dbLogonInfos");          // affecte la connection au viewer               viewer.setDatabaseLogonInfos(dbLogonInfos);           // creation champ field pour le report           Fields fields = new Fields();            // force le parametre dans le browser                  viewer.setParameterFields(fields);                   // prompt du parametre de saisie caché                // car on veut que le rapport s'affiche automatiquement                       viewer.setEnableParameterPrompt(false);            // Rafraichissement que la premiere fois           if( session1.isNew() )           {                   viewer.refresh();// desactiver car probleme sur activewiever           }                    //          //        FORCAGE DES PARAMETRES ENTREES AU REPORT SI TYPE DATE           //                     for (int l_i_Nbr_Champ = 0; l_i_Nbr_Champ <= l_i_nbr ; l_i_Nbr_Champ++)          {                                        if (tab_stype1[l_i_Nbr_Champ].equals("DATE"))                {                              // extraction du format JJ/MM/AAAA et déclaration des variables                // Année                int iannee = Integer.parseInt(tab_svaleur1[l_i_Nbr_Champ].substring(6,10));                               // le mois de janvier commence a 0                int imois  = Integer.parseInt(tab_svaleur1[l_i_Nbr_Champ].substring(3,5)) -1 ;               // Jour                int ijour  = Integer.parseInt(tab_svaleur1[l_i_Nbr_Champ].substring(0,2));                              RC_P_setParameterValueDate(fields,tab_schamp1[l_i_Nbr_Champ],"",iannee,imois,ijour,out);               }          //       FIN  FORCAGE DES PARAMETRES ENTREES SI TYPE DATE                //   FORCAGE DES PARAMETRES ENTREES AU REPORT SI TYPE STR                                     if (tab_stype1[l_i_Nbr_Champ].equals("STR"))                {                                   RC_P_setParameterValueStr(fields,tab_schamp1[l_i_Nbr_Champ],"",tab_svaleur1[l_i_Nbr_Champ],out);               }                              //       FIN  FORCAGE DES PARAMETRES ENTREES SI TYPE STR                                         //   FORCAGE DES PARAMETRES ENTREES AU REPORT SI TYPE INT                                   if (tab_stype1[l_i_Nbr_Champ].equals("INT"))                {                                   RC_P_setParameterValueInt(fields,tab_schamp1[l_i_Nbr_Champ],"",tab_svaleur1[l_i_Nbr_Champ],out);               }                              //       FIN  FORCAGE DES PARAMETRES ENTREES SI TYPE INT                     }                                     //lance le visualiseur dans la fenêtre active du navigateur.                    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);               // Nettoyage                    viewer.dispose();                                }         else {              out.println("Report " + pi_sdocName + " not found.");              }    }    catch(SDKException sdkEx) {          out.println(sdkEx);       }

//       FIN PROGRAMME PRINCIPAL          
%><%!
//  Auteur : MM 
//  date   : 26/09/2008     
//  Nom Procedure RC_P_setParameterValueDate
//  Version 1.0
//  Explication :  Prépare les paramétres entrées dans le report pour les champs de type Date 
//  se sert de l'objet calendar de java  

static void RC_P_setParameterValueDate(Fields oFields, String paramName, String reportName,int annee,int mois,int jour,JspWriter out) throws javax.servlet.jsp.JspException 

{ 

  // FORMAT DATE    Calendar calendar = Calendar.getInstance();   calendar.set(Calendar.DAY_OF_MONTH, jour);   calendar.set(Calendar.MONTH, mois);   calendar.set(Calendar.YEAR, annee);   Object value = calendar.getTime();        ParameterField oParameterField = new ParameterField();   oParameterField.setReportName(reportName);   Values oValues = new Values();   ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();   oParameterField.setName(paramName);   oParameterFieldDiscreteValue.setValue(value);   oValues.add(oParameterFieldDiscreteValue);   oParameterField.setCurrentValues(oValues);   oFields.add(oParameterField);       
}
%><%!
//   Auteur : MM 
//   date   : 26/09/2008     
//   Nom Procedure RC_P_setParameterValueStr
//   Version 1.0
//   Explication Prépare les paramétres entrées dans le report pour les champsde type STR

private void RC_P_setParameterValueStr(Fields oFields, String paramName, String reportName, Object value,JspWriter out) throws javax.servlet.jsp.JspException 
{
 
    ParameterField oParameterField = new ParameterField();    oParameterField.setReportName(reportName);    Values oValues = new Values();    ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();    oParameterField.setName(paramName);    oParameterFieldDiscreteValue.setValue(value);    oValues.add(oParameterFieldDiscreteValue);    oParameterField.setCurrentValues(oValues);    oFields.add(oParameterField);      
}
%><%!
//   Auteur : MM 
//   date   : 26/09/2008     
//   Nom Procedure RC_P_setParameterValueInt
//   Version 1.0
//   Explication Prépare les paramétres entrées dans le report pour les champsde type INT
private void RC_P_setParameterValueInt(Fields oFields, String paramName, String reportName, Object value,JspWriter out) throws javax.servlet.jsp.JspException 
{    ParameterField oParameterField = new ParameterField();    oParameterField.setReportName(reportName);    Values oValues = new Values();    ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();    oParameterField.setName(paramName);    oParameterFieldDiscreteValue.setValue(value);    oValues.add(oParameterFieldDiscreteValue);    oParameterField.setCurrentValues(oValues);    oFields.add(oParameterField);      
}
%><%!

//   Auteur : MM 
//   date   : 26/09/2008     
//   Nom Procedure RC_P_Affiche
//   Version 1.0
//   Pour Debug affiche les informations
//   note l'appel  se fait par affiche(out,"test") et mettre en commentaire la ligne d'access au viewer viewer.processHttpRequest

static void RC_P_Affiche(JspWriter out, String s) throws javax.servlet.jsp.JspException
{
  try  {    out.println(s);  }  catch(java.io.IOException e)  { throw new javax.servlet.jsp.JspException(e); }  return;
}
%>

 

 

POJO JavaDoc??

$
0
0

<p>Hi,</p><p>Are there any JavaDocs for the POJO classes which reside in the com.crystaldecisions.sdk.occa.report.application.internal Package?  I&#39;s like to use them but at this time their usage is a question.</p><p>Or do I use the Pojo sample code in the same fashion just substituting the classes above in the imports??</p><p>Thanks,</p><p>Peter Adelmann</p>

Using Java UFL with Crystal Reports Designer 2008

$
0
0

I am trying to use a Java UFL in Crystal Reports Designer 2008 and used the following guide:

 

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09feb84-8b1e-2b10-7b8c-8bf2f5e703d9

 

However, I never see the "MyLibrary" UFL in "Additional Functions".

 

I took the following steps:

 

1. Created the UFL using eclipse and entered in the .classpath file the location of CrystalFormulas.jar and CrystalReportingCommon.jar; NOTE I placed all the files under root thus there are no packages.

 

2. Exported all my files as a jar file named "MyLibrary"

 

3. Took the "MyLibrary.jar" and placed it in "C:Program FilesBusiness ObjectsCommon4.0javalib"

 

4. Went to my "Environment Variables" and added the following files in the CLASSPATH under the "System variables"

 

pathCrystalFormulas.jar

pathCrystalReportingCommon.jar

pathu211java.jar

pathlog4j.jar

pathicu4j.jar

 

5. Ensured that the "JAVA_HOME" in the "System Variable" was pointing to "C:Program FilesJavajdk1.6.0_07"

 

6. Opened the "regedit" and went to HKEY_LOCAL_MACHINESOFTWAREBusiness ObjectsSuite 12Crystal Reports then created a sub key New>String Value and name it JREPath. Then I entered the value pathjvm.dll

 

7.Opened my CRConfig.xml file and entered in the "ExternalFunctionLibraryClassnNames"; "MyLibrary"

 

8. I included all the paths of the above jar files in the Classpath of the "CRConfig.xml" file

 

9. I checked that the u211java.dll was in "C:Program FilesBusiness ObjectsBusinessObjects Enterprise 12.0win32_x86" path.

 

10 I restarted my computer.

 

I have also checked other forums for the solution and I have unable to make my UFL work.

 

Any suggestions?

 

Thanks for your help.

 

Valentine

Error during print - Error code:-2147467259 Error code name:failed

$
0
0

Hi,

 

I am sorry if this question was already answer in this forum but I didn't find the answer

 

I am trying to use CR XI R2 (11.5.0.313)  with Jboss 5.0.1 GA and get this error:

 

BaseAction.execute(...) elapsed in:408 miliseconds doing the render cockpit operation.

2009-03-24 10:29:34,464 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) Periodic recovery - first pass <Tue, 24 Mar 2009 10:29:34>

2009-03-24 10:29:34,464 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12) StatusModule: first pass

2009-03-24 10:29:34,464 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12) [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass

2009-03-24 10:29:34,464 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12) [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass

2009-03-24 10:29:41,286 ERROR [pt.gedi] (pool-14-thread-3) pt.gedi.base.control.actions.us.os.RelatoriosExtendedAction:parametrosRelatorioInNewThread

Vou gravar o relatorio em /opt/jboss/jbas5/server/default/deploy/siag.war/../../../siag.warTemp/Relatorio1237890581285.rpt

2009-03-24 10:29:41,303 ERROR [pt.gedi] (pool-14-thread-3) pt.gedi.base.services.us.os.Relatorios_ServiceImpl:getRptSource

Vou abrir o relatorio em /opt/jboss/jbas5/server/default/deploy/siag.war/../../../siag.warTemp/Relatorio1237890581285.rpt

2009-03-24 10:29:41,575 ERROR [com.crystaldecisions.reports.reportdefinition] (pool-14-thread-3) Report printer was not valid, switching to default printer.

2009-03-24 10:29:41,585 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-3) JRCAgent2 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException

2009-03-24 10:29:41,597 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-3) JRCAgent2 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException

2009-03-24 10:29:41,602 ERROR [pt.gedi] (pool-14-thread-3) pt.gedi.base.control.actions.us.os.RelatoriosExtendedAction:parametrosRelatorioInNewThread

parametrosRelatorio(...) elapsed in:326 miliseconds

2009-03-24 10:29:43,520 ERROR [pt.gedi] (pool-14-thread-5) pt.gedi.base.control.actions.us.os.RelatoriosExtendedAction:generateRelatorioInNewThread

Vou gravar o relatorio em /opt/jboss/jbas5/server/default/deploy/siag.war/../../../siag.warTemp/Relatorio1237890582281.rpt

2009-03-24 10:29:43,528 ERROR [pt.gedi] (pool-14-thread-5) pt.gedi.base.services.us.os.Relatorios_ServiceImpl:getRptSource

Vou abrir o relatorio em /opt/jboss/jbas5/server/default/deploy/siag.war/../../../siag.warTemp/Relatorio1237890582281.rpt

2009-03-24 10:29:43,731 ERROR [com.crystaldecisions.reports.reportdefinition] (pool-14-thread-5) Report printer was not valid, switching to default printer.

2009-03-24 10:29:43,770 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException

2009-03-24 10:29:43,776 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException

2009-03-24 10:29:43,854 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException

2009-03-24 10:29:43,863 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (pool-14-thread-5) JRCAgent3 detected an exception: com/crystaldecisions/reports/exportinterface/exceptions/ExportException

2009-03-24 10:29:43,864 ERROR [STDERR] (pool-14-thread-5) com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com/crystaldecisions/reports/exportinterface/exceptions/ExportException---- Error code:-2147467259 Error code name:failed

2009-03-24 10:29:43,864 ERROR [STDERR] (pool-14-thread-5)      at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)

2009-03-24 10:29:43,864 ERROR [STDERR] (pool-14-thread-5)      at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)

2009-03-24 10:29:43,864 ERROR [STDERR] (pool-14-thread-5)      at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)

2009-03-24 10:29:43,864 ERROR [STDERR] (pool-14-thread-5)      at pt.gedi.base.services.us.os.ServicoRelatorioServlet.doSomething(ServicoRelatorioServlet.java:109)

2009-03-24 10:29:43,864 ERROR [STDERR] (pool-14-thread-5)      at pt.gedi.base.services.us.os.ServicoRelatorioServlet.doGet(ServicoRelatorioServlet.java:41)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at pt.gedi.base.services.us.os.Relatorios_ServiceImpl.exportToPDF(Relatorios_ServiceImpl.java:1049)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at pt.gedi.base.control.actions.us.os.RelatoriosExtendedAction.generateRelatorioInNewThread(RelatoriosExtendedAction.java:359)

2009-03-24 10:29:43,865 ERROR [STDERR] (pool-14-thread-5)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at java.lang.reflect.Method.invoke(Method.java:597)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at pt.gedi.base.workerthreads.GenericWorkerThread.doWork(GenericWorkerThread.java:77)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at pt.gedi.base.workerthreads.GenericWorkerThread.run(GenericWorkerThread.java:59)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

2009-03-24 10:29:43,866 ERROR [STDERR] (pool-14-thread-5)      at java.lang.Thread.run(Thread.java:619)

2009-03-24 10:29:43,910 ERROR [pt.gedi] (pool-14-thread-5) pt.gedi.base.control.actions.us.os.RelatoriosExtendedAction:generateRelatorioInNewThread

 

I can print this same CR XI R2 with Jboss 4.2.3 GA and with Jboss 4.0.5 GA using the same jdbc connection settings:

 

<env-entry>

          <env-entry-name>jdbc/Siag</env-entry-name>

          <env-entry-type>java.lang.String</env-entry-type>

          <env-entry-value>

               !oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:@linuxpreprod.gedi.pt:1521:siagdb!user=fct_104prod!password=xxx

          </env-entry-value>

     </env-entry>

 

 

Thanks in advance,

 

Miguel Lamy

Set export file name in ExportFormatDialog?

$
0
0

Hi,

 

I wonder if it's possible to set an export file name which will be used as default when exporting a report from GUI (ReportViewerBean).

 

I'm using "SAP Crystal Reports for Java runtime components - Java Reporting Component" from SAP Crystal Reports, version for Eclipse - Downloads .

 

Thanks !

 

crystal_file_name.png

Open crystal report in JSP using crystal reports 13 (BO XI 4.0)

$
0
0

Hello,

I am trying read old reports 10 reports in J2EE web application without any luck.  Can someone direct me to appropriate documentation or example helping me get this working.

 

I have copied the lib folders (plus external ) all jar files to WEB-INF/lib folder.  I still get the errors in not finding -

com.crystaldecisions.report.web.viewer.*;

com.crystaldecisions.report.web.viewer.CrystalReportViewer

 

 

What am I doing wrong?

 

Thanks,

 

Amarendra


Error when i use xxx.getSchedulingInfo().getStatus();

$
0
0

Post Author: Matrix71

 

CA Forum: JAVA

 

I try to find the status of the scheduling of report with xxx.getSchedulingInfo().getStatus(); but i recive an error because there isn't SI_SCHEDULE_INFO.... why ???can u help me to resolve this problem ???ThanksDenis

Use XML as data input for Crystal Report for Eclipse

$
0
0

Hi,

 

I am completely new to crystal report and please kindly forgive me if I ask some stupid questions.

Actually, I have searched the forum for the topic and found some related threads, but I still want to

have some responses from crystal report experts on this issue.

 

Our developer tool is IBM RAD 7.0 and it has crystal reports tools installed in it. I want to use

crystal report to solve one of our business solutions. I have the following questions about the

feasbility of this solution:

 

(1). I need to specify data at runtime during report generation. I think using fixed data source

     (for example, SQL query or Stored Procedure) may not fit our needs. I think if crystal report

     can accept XML as input to generate reports at runtime, then it will be perfect. Can CR

     use XML as data source as input?

 

(2). Actually, one of our business requirements is to generate a letter. Can CR do a report

      layout such that a letter format can be achieved? If yes, would you let me know the

      report layout name?

 

(3). We need to export the report into PDF format, I know CR can do PDF output. But can

      CR be controlled to export this into bytes stream? Or the PDF must be saved into a

      physical file?

 

(4) If I need to learn more about CR, which book will you recommend?

 

Thanks in advance for your advice,

Raymond

Crystal Report integation with Java Front end applicatin

$
0
0

Folks,

 

 

We have front end application in JAVA and  we are planning to migrate Crystal Reports 2011 from actuate.

 

Users want us to Integrate Crystal Report Viewer Plugin with front end and use Customize Report Viewer(Opendoc) .

 

Not sure if this is the recommended approach.

 

Pls do share your inputs

 

Regards,

Jyoti

ToText(Number) not using Locale ?

$
0
0

When using the Report Designer, I define a Formula field which formats a Number value using ToText(myvalue,10).

- I place this formula field on the report along with print date / time special fields

- the Print Preview displays the value with thousands and decimal separators relative to my default locale (French), date and time are formatted using this locale too.

- I switch the "Preferred Viewing Locale" to English (US), the Print Preview displays everything (date, time, number) with the new Locale.

- Exporting report to a text format file uses the correct locale

 

When exporting this same report with JRC, there is a strange behavior :

- When using locale en_US, everything is fine

- When using locale fr_FR (before opening the ReportClientDocument), only date and time are formatted using the fr_FR locale. The number is still formatted with en_US separators.

 

Did I do something wrong ?

 

Edited by: K G on Jun 19, 2008 5:35 PM

Best approach for modifying html from CrystalReportInteractiveViewer

$
0
0

I'm looking for the best (and recommended) way to modify html returned by a call to CrystalInteractiveViewer.processHttpRequest().

 

Some specifics:

1. I have a servlet that makes that gets the html from processHttpRequest's StringWriter argument to be rendered in a jsp

2. This jsp is a filters page where the user inputs filter values, clicks OK, then finally views the report

3. The desired end-result is to still present the filter page but bypass the post action to Crystal when the OK button is clicked, allowing us to perform intermediate tasks in between

 

A couple of ideas I had in mind:

1. Render the filter page using getHtmlContent() instead and then get back from the response object whatever I need (and perform the intermediate processing I need)

2. Parse (yikes) and update the html content from the processHttpRequest() call

 

If you have other ideas or an infinitely better approach    I'm all ears.

Thanks in advance!

Viewing all 893 articles
Browse latest View live