Error exporting CR XI R2 reports to PDF

I have been trying to export CR XI R2 with SP2 reports to PDF using Eclipse JRE 1.5 below is my code:
          /--export options--/
          //Create the PDFExportFormatOptions object
          PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
          //Create the ExportOptions object, set the PDF export options, and set the format type to PDF.
          ExportOptions exOpts = new ExportOptions();
          exOpts.setFormatOptions(PDFExpOpts);
          exOpts.setExportFormatType(ReportExportFormat.from_int(ReportExportFormat._PDF));
          /--exporting to pdf--/
        InputStream lis;
        PrintOutputController lpoc;
        lpoc = oReportClientDocument.getPrintOutputController();
        lis = lpoc.export(ReportExportFormat.from_int(ReportExportFormat._PDF));
        return lis;
When i run this code in Eclipse i get the below error:
16:56:29,187 INFO  <b> PdfExporter: serializing pdf document and cleaning up
16:56:29,187 INFO  [c] Disk Exporter: verifying export to destination
16:56:29,187 ERROR [c] Disk Exporter: no output file was created by an exporter
16:56:29,187 ERROR <b> PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting export
java.lang.IllegalArgumentException
     at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)
     at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
     at com.crystaldecisions.reports.a.e.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
     at com.businessobjects.reports.sdk.b.i.int(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
     at com.ec.copeccn.report.CrystalReportXIJob.exportToPDF(CrystalReportXIJob.java:192)
     at com.ec.copeccn.report.CrystalReportXIJob.generatePDF(CrystalReportXIJob.java:171)
     at com.ec.copeccn.report.CrystalReportXIJob.main(CrystalReportXIJob.java:230)
16:56:29,187 INFO  [c] Disk Exporter: finalizing export to destination
16:56:29,187 ERROR [JRCCommunicationAdapter] JRCAgent1 detected an exception: java.lang.NullPointerException
     at com.crystaldecisions.reports.queryengine.driverImpl.o.ew(Unknown Source)
     at com.crystaldecisions.reports.queryengine.driverImpl.o.do(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.if(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.else(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.d4(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.f(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.dP(Unknown Source)
     at com.crystaldecisions.reports.queryengine.av.if(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.if(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.do(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.try(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.for(Unknown Source)
     at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.a9.a(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
     at com.businessobjects.reports.sdk.b.i.int(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
     at com.ec.copeccn.report.CrystalReportXIJob.exportToPDF(CrystalReportXIJob.java:192)
     at com.ec.copeccn.report.CrystalReportXIJob.generatePDF(CrystalReportXIJob.java:171)
     at com.ec.copeccn.report.CrystalReportXIJob.main(CrystalReportXIJob.java:230)
16:56:29,187 INFO  [JRCCommunicationAdapter] JRCAgent1 releasing license
Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
     at com.ec.copeccn.report.CrystalReportXIJob.exportToPDF(CrystalReportXIJob.java:192)
     at com.ec.copeccn.report.CrystalReportXIJob.generatePDF(CrystalReportXIJob.java:171)
     at com.ec.copeccn.report.CrystalReportXIJob.main(CrystalReportXIJob.java:230)
I'm trying to export rpt file which has CARGO_NAME as the parameter. In Crystal report i'm able to see the field in the Field Explorer -> Parameter Fields
When i build the java file and try to run the ECJboss, i get the below stated error for the same code:
2009-03-20 04:50:37,359 ECPM_DEV_Worker-9 WARN  [com.crystaldecisions.reports.common.asserts.CrystalAssert   ] Assertion Failed:
2009-03-20 04:50:37,375 ECPM_DEV_Worker-9 INFO  [com.crystaldecisions.reports.common.asserts.CrystalAssert   ] java.lang.Throwable
     at com.crystaldecisions.reports.common.k.b.a(Unknown Source)
     at com.crystaldecisions.reports.common.k.b.a(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.char(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.else(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.else(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.d(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.ds(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.dC(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b9.int(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b9.for(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b9.if(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b9.c(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.d(Unknown Source)
     at com.crystaldecisions.reports.queryengine.b0.ds(Unknown Source)
     at com.crystaldecisions.reports.reportdefinition.datainterface.l.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.k.l(Unknown Source)
     at com.crystaldecisions.reports.dataengine.k.k(Unknown Source)
     at com.crystaldecisions.reports.dataengine.k.bk(Unknown Source)
Can anyone help me to resolve this issue?

when i run this code in Eclipse, i get the following code as error
17:47:55,796 INFO  [ReportDocument] Loading report definition.
17:47:57,218 WARN  [ReportDocument] Failed to open export options stream
17:47:57,218 INFO  [DocHistory] Document Save History:
17:47:57,218 INFO  [DocHistory]      History Group: 0
17:47:57,218 INFO  [DocHistory]           Saved Date = 2009.02.16 13:36:17 Malay Peninsula Standard Time
17:47:57,218 INFO  [DocHistory]           Build Version = 11.0.0.1282
17:47:57,218 INFO  [DocHistory]           Print Engine = CRW
17:47:57,218 INFO  [DocHistory]           OS = Windows XP
17:47:57,218 INFO  [DocHistory]           Architecture = x86
17:47:57,218 INFO  [DocHistory]      History Group: 1
17:47:57,218 INFO  [DocHistory]           Saved Date = 2009.03.30 17:39:40 Malay Peninsula Standard Time
17:47:57,218 INFO  [DocHistory]           Build Version = 11.5.8.826
17:47:57,218 INFO  [DocHistory]           Print Engine = CRW
17:47:57,218 INFO  [DocHistory]           OS = Windows XP
17:47:57,218 INFO  [DocHistory]           Architecture = x86
17:47:57,296 INFO  [Compiler] Formula {@Record Selection} compiled.
17:47:57,296 INFO  [Compiler] Formula {@Group Selection} compiled.
17:47:57,296 INFO  [Compiler] Formula {@} compiled.
17:48:26,093 INFO  [ReportDocument] Done loading report.
17:48:26,093 INFO  [JRCCommunicationAdapter] Time to load report TankerBillOfLading.rpt took 32672 ms
17:48:26,437 INFO  [JRCCommunicationAdapter] JRCAgent1 received request: compoundRequest
17:48:26,437 INFO  [JRCCommunicationAdapter] JRCAgent1 received request: modifyParameterFieldCurrentValuesRequest
17:48:26,468 INFO  [JRCCommunicationAdapter] JRCAgent1 received request: fetchReportExportRequest
17:48:26,468 INFO  [JRCCommunicationAdapter] JRCAgent1 attempting to acquire license
17:48:26,468 INFO  [JRCCommunicationAdapter] JRCAgent1 successfully acquired license
17:48:26,609 INFO  [c] Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.destination.disk.DiskExporter
17:48:26,812 INFO  [c] Export Supervisor: loading available exporters
17:48:26,828 INFO  [c] Export Supervisor: found 6exporters
17:48:26,828 INFO  [c] Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.page.pdf.PDFExporter
17:48:26,828 INFO  [c] Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.page.rtf.RTFExporter
17:48:26,828 INFO  [c] Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.report.crystalreports.CRExporter
17:48:26,843 INFO  [c] Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.format.record.sepv.SEPVExporter
17:48:26,859 INFO  [c] Export Supervisor: loading exporter com.crystaldecisions.reports.exporters.destination.disk.DiskExporter
17:48:26,859 INFO  [c] Export Supervisor: loading exporter daviss.jeff.cellexporter.CellExporter
17:48:26,859 ERROR [c] Export Supervisor: fail to load exporter (stack trace follows).  This warning is only a problem if the exporter that failed to load is supported in a given project.daviss.jeff.cellexporter.CellExporter
java.lang.ClassNotFoundException: daviss.jeff.cellexporter.CellExporter
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.char(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
     at com.businessobjects.reports.sdk.b.i.int(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
     at com.ec.copeccn.report.CrystalReportXIJob.exportToPDF(CrystalReportXIJob.java:153)
     at com.ec.copeccn.report.CrystalReportXIJob.generatePDF(CrystalReportXIJob.java:146)
     at com.ec.copeccn.report.CrystalReportXIJob.main(CrystalReportXIJob.java:187)
17:48:27,015 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,cargo_name
      ,daytime
      ,to_char(daytime,'DD')   day
      ,to_char(daytime,'Mon.')  month
      ,to_char(daytime,'YYYY') year
      ,consignor_name
      ,tanker_name
      ,nationality
      ,master_name
      ,product_name
      ,product_anal_value
      ,port_name
      ,consignee_name
  from zv_rep_bol
where cargo_name='{?CARGO_NAME}'
17:48:27,546 INFO  [driverImpl] Logon: Connecting to database using local JNDI server ...
17:48:27,812 INFO  [driverImpl] Connection Opened null
17:48:27,812 INFO  [datainterface] Connection opened (Connection:  databaseType=JDBC  serverName=COPECCN  state=open  databaseDriverName=crdb_odbc.dll).
17:48:27,812 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 1
17:48:28,109 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 2
17:48:28,203 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 3
17:48:28,281 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 4
17:48:28,359 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 5
17:48:28,390 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 6
17:48:28,468 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 7
17:48:28,531 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,item_name
      ,load_value
  from zv_rep_bol_analysis
where product_meas_no = 8
17:48:28,593 INFO  [c] Export Supervisor: exporting pages
17:48:28,687 INFO  [dataengine] Detected new parameter values - report parameters has changed
17:48:28,687 INFO  [dataprocessor] Report parameters is changed
17:48:28,687 INFO  [dataengine] Handling report parameters changes
17:48:28,687 INFO  [dataengine] Validating report parameters
17:48:28,687 INFO  [dataengine] Creating new data source
17:48:28,687 INFO  [dataengine] Create new report state
17:48:28,890 INFO  [datasource] Creating totaller
17:48:29,015 INFO  [dataengine] Checking for data source changes
17:48:29,031 INFO  [reportstate90] Checking for report state changes.
17:48:29,062 INFO  [reportstate90] Database fields changed
17:48:29,062 INFO  [reportstate90] Print Time Formula fields changed
17:48:29,062 INFO  [reportstate90] Linking changed
17:48:29,062 INFO  [reportstate90] Finished checking for report state changes.
17:48:29,062 INFO  [dataengine] Data Source Manager handling report changes
17:48:29,062 INFO  [datasource] Data Source handling report changes.
17:48:29,062 INFO  [datasource] Invalidate saved data, database fields are changed.
17:48:29,062 INFO  [datasource] Invalidate saved data, linking is changed.
17:48:29,062 INFO  [datasource] Invalidating controller
17:48:29,062 INFO  [datasource] Invalidating totaller
17:48:29,062 INFO  [datasource] At the moment the code should ALWAYS regenerate the controller rather than recycle parts of it in place.
17:48:29,062 INFO  [datasource] Updating special var fields
17:48:29,062 INFO  [datasource] No constant formulas
17:48:29,062 INFO  [datasource] Creating totaller
17:48:29,062 INFO  [dataengine] Should verify database
17:48:29,062 INFO  [dataengine] Verifying database
17:48:29,250 INFO  [queryengine] Executing query: select parcel_no
      ,cargo_no
      ,cargo_name
      ,daytime
      ,to_char(daytime,'DD')   day
      ,to_char(daytime,'Mon.')  month
      ,to_char(daytime,'YYYY') year
      ,consignor_name
      ,tanker_name
      ,nationality
      ,master_name
      ,product_name
      ,product_anal_value
      ,port_name
      ,consignee_name
  from zv_rep_bol
where cargo_name='PLC-219'
17:48:29,312 INFO  <b> PdfExporter: serializing pdf document and cleaning up
17:48:29,312 INFO  [c] Disk Exporter: verifying export to destination
17:48:29,312 ERROR [c] Disk Exporter: no output file was created by an exporter
17:48:29,312 ERROR <b> PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting export
java.lang.IllegalArgumentException
     at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)
     at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
     at com.crystaldecisions.reports.a.e.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
     at com.businessobjects.reports.sdk.b.i.int(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
     at com.ec.copeccn.report.CrystalReportXIJob.exportToPDF(CrystalReportXIJob.java:153)
     at com.ec.copeccn.report.CrystalReportXIJob.generatePDF(CrystalReportXIJob.java:146)
     at com.ec.copeccn.report.CrystalReportXIJob.main(CrystalReportXIJob.java:187)
17:48:29,312 INFO  [c] Disk Exporter: finalizing export to destination
17:48:29,312 ERROR [JRCCommunicationAdapter] JRCAgent1 detected an exception: java.lang.NullPointerException
     at com.crystaldecisions.reports.queryengine.driverImpl.o.ew(Unknown Source)
     at com.crystaldecisions.reports.queryengine.driverImpl.o.do(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.if(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.else(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.d4(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.f(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ao.dP(Unknown Source)
     at com.crystaldecisions.reports.queryengine.av.if(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.if(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.do(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.try(Unknown Source)
     at com.crystaldecisions.reports.queryengine.ba.for(Unknown Source)
     at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.a9.a(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
     at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
     at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
     at com.businessobjects.reports.sdk.b.i.int(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
     at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
     at com.ec.copeccn.report.CrystalReportXIJob.exportToPDF(CrystalReportXIJob.java:153)
     at com.ec.copeccn.report.CrystalReportXIJob.generatePDF(CrystalReportXIJob.java:146)
     at com.ec.copeccn.report.CrystalReportXIJob.main(CrystalReportXIJob.java:187)
17:48:29,312 INFO  [JRCCommunicationAdapter] JRCAgent1 releasing license
Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
     at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
     at com.ec.copeccn.report.CrystalReportXIJob.exportToPDF(CrystalReportXIJob.java:153)
     at com.ec.copeccn.report.CrystalReportXIJob.generatePDF(CrystalReportXIJob.java:146)
     at com.ec.copeccn.report.CrystalReportXIJob.main(CrystalReportXIJob.java:187)
Is this issue caused due to incorrect import statements or there are some issue with the jar that i am using?

Similar Messages

  • Error 500 Internal Server Error" When Generating Hyperion Financial Reports in PDF Format

    We are unable to open pdf reports in Workspace with the following error. It was all working fine and doesn't work now for unknown reasons.
    Error 500 Internal Server Error" When Generating Hyperion Financial Reports in PDF Format
    We are on 11.1.2.1 environment. Ghost Script 8.54 and Java heap settings xms256m and xmx512m.
    Please advice.

    hello,
    just to clarify
    a) the parameter is named DESFORMAT not :DESFORMAT, there is
    no : in front of the name, if you submit it via URL !
    b) there are some issues with acrobat5 and IE but those are not
    only caused by PDFs generated with oracle reports.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Exporting a mailing label report to PDF shifts the address off ...

    Hi.
    The report is created using the wizard "File->New->Mailing Label Report". Everything looks good at the preview. Following are the dimensions:
    - 4 X 1 inches
    - 2 labels across, 10 down
    - Paper would be 8-1/2 X 11 inches (Letter sized) (labeled) paper
    - 0.5 inches page margin on top and bottom
    - 0.156 inches left & right margins
    - Horizontally .188 inches between labels
    - Vertically NO space between labels
    For this, in the Crystal Reports Designer, I used Mailing Label Type = "Address (Avery 5261)".
    Issue
    However, when trying to export the report to PDF and when we print the report, addresses go off the labels (shifts up slightly starting from the begining). It looks like the font sizes, etc are not maintained. Therefore, visually, addresses shifts up gradually and does not fall into labels.
    Other specific details
    The first address was too low, I mean after .5 inches top margin, this first address started to appear .4 inches down the margin. If we measure from top of one address to the top of next one, it is about .9 inch and not 1 inch.
    Later I tried this [template|http://www.worldlabel.com/Pages/crystal-reports.htm] as well. I faced the same issue.
    Had anyone worked with mailing labels report faced similar issue?
    I appreciate your help

    Go through the following SAP Note
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303336333933353336%7D.do]
    Regards,
    Raghavendra.G

  • Has anyone tried exporting the mailing labels report to PDF or Editable RTF

    Mailing Labels Format - Universal 80104 Equivalent to Avery #5961, 4X1. We used "Mailing Labels" option while creating the report in the designed (11.5). In the designer, when we go File->New->Mailing Label...we used this.
    From the Crystal Designer:
    Printing directly or exporting it to Editable RTF Word and print works great.
    When tried to export to PDF and print, things get messed up. Initial few on the page fall into the labels, rest just does not align to labels. Fonts seems small, and the label display seems shifted up, etc.
    From our Web App, opening in the crystal report viewer and exporting to any format to print does not work at all. I mean addresses does not fall into the labels.
    Does anyone experience same kind of issue?
    Please help me.
    Thanks

    Go through the following SAP Note
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303336333933353336%7D.do]
    Regards,
    Raghavendra.G

  • Help me, I have a problem with font when export report to PDF?

    Hi everyone! Help me
    I have a problem with font when export report to PDF
    My report uses template .rtf with font Times New Roman (Unicode), language is VietNamese.
    when desige template no problem, error only happen when view report by PDF.
    Edited by: user10236405 on Oct 15, 2008 11:23 PM

    give it time to boot. the time depends on yr memory size n data. soon a process bar will appear indicating the boot process. if still this doesnt work. try formating the phone. but this ways u lose all data on the phone (unless u backed it). relax! the data on the memory card is safe.

  • IllegalArgumentException error while exporting report in PDF format

    Hi all,
    we are using Crystal Report 2008, Java 1.5.22 and JRC 11.8.4.1094 to export reports in pdf format within java.
    It is working fine for all reports except for a specific report where it gives IllegalArgumentException while exporting the PDF.
    Below the error occurred:
    12:39:16,875 ERROR [c] Disk Exporter: no output file was created by an exporter
    12:39:16,875 ERROR <b> PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting export
    java.lang.IllegalArgumentException
         at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.a.e.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)
         at com.crystaldecisions.report.web.event.br.a(Unknown Source)
         at com.crystaldecisions.report.web.event.w.a(Unknown Source)
         at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
         at com.crystaldecisions.report.web.event.av.a(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.getHtmlContent(Unknown Source)
    12:39:16,875 INFO  [c] Disk Exporter: finalizing export to destination
    12:39:16,875 ERROR [JRCCommunicationAdapter] Failed to export report
    com.crystaldecisions.reports.exporters.format.page.pdf.a.a: Unknown exception is thrown
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.a.e.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)
         at com.crystaldecisions.report.web.event.br.a(Unknown Source)
         at com.crystaldecisions.report.web.event.w.a(Unknown Source)
         at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
         at com.crystaldecisions.report.web.event.av.a(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.getHtmlContent(Unknown Source)
    Caused by: java.lang.IllegalArgumentException
         at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)
         ... 56 more
    Have an idea?
    Thanks

    Hello Andrea.
    I searched through the SAP Notes for the error that you are encountering.  There is an SAP Note that exists titled the following:
    1332907 - Report being exported to PDF format using the Crystal Reports for Eclipse 1.x runtime, errors with the exception: PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob
    Since you may not have access to the SAP Notes, I will extract the details that are mentioned in the note here:
    =============================================
    Symptom
    Attempting to export a report to Adobe PDF format using the Crystal Reports for Eclipse 1.x runtime results in an exception.
    The exception indicates "PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob"
    Environment
    Windows 2003
    Apache Tomcat 5.0
    Crystal Reports for Eclipse version 1.x
    Reproducing the Issue
    Using the Crystal Reports for Eclipse runtime version 1.x attempt to export a report to PDF format that has the "Repeat Group Header on Each Page" option enabled.
    Note: This does not occur if this option is enabled in a subreport.
    Cause
    When the "Repeat Group Header on Each Page" is enabled for a group in a main report the Crystal Reports for Eclipse 1.x runtime is unable to correclty format the PDF document which results in an exception.
    Resolution
    Updating the application to use Crystal Reports for Eclipse version 2.x runtime will resolve the issue.
    The most recent updates to the Crystal Reports for Eclipse runtime can be freely downloaded from the SAP SDN Website. 
    http://www.sdn.sap.com/irj/boc/crystalreports-java
    =============================================
    Since you are on JRC 11.8.4.1094 which is Crystal Reports for Eclipse 1.x, this may be the cause of your problem.
    I hope that this helps.
    Regards.
    - Robert

  • Error occurred during exporting ssrs report as pdf

    an error occurred during local report processing. Object reference not set to an instance of an object
    Thanks in advance

    Hi Esha2nk,
    According to your description, when you export the report to PDF in BIDS, the error “Export error: An error occurred during local report processing. Object reference not set to an instance of an object.” is thrown out.
    Based on the error message, it could cause by that there are hidden groups within the report, or the matrix has multiple columns and rows, and Hidden is set to true in the Visibility properties. So in your scenario, please check those two factors. If
    issue persists, please provide report design for our analysis. Besides, would you please tell us which SQL Server version you are using?
    Reference:
    "An error occurred during
    local reporting processing. Object reference not set to an instance of an object."
    Object reference not set to an instance of an object
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Error while trying to export a report into PDF using JRC (Linux env)

    Hi all,
    I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC
    PrintOutputController controller = reportClientDoc.getPrintOutputController();
              ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);
    I got this error message:
    19/02/2009     10:21:37     b     INFO     PdfExporter: PdfDocumentModeller.modelPage (page 1)
    19/02/2009     10:21:37     b     INFO     PdfExporter: Modelling page
    19/02/2009     10:21:37     b     INFO     PdfExporter: Creating document manager, text modeller and image modeller.
    19/02/2009     10:21:37     b     ERROR     PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export
    java.lang.IllegalArgumentException: Data type is not supported.
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
         at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)
         at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)
         at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)
         at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
    On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?
    Any solution (or workaround) would be highly appreciated!
    Thank you!
    PS Maybe this is relevant: I use a MySQL database!
    Edited by: Sandila Catalin on Feb 19, 2009 10:01 AM

    What kind of image do you have in the report?
    Do you have -Djava.awt.headless=true specified for the Java JVM option?
    Sincerely,
    Ted Ueda

  • Exporting report to PDF error

    This code has worked for years, but now I'm getting the following error when programmatically exporting a report to PDF:
    "File does not begin with %PDF-"
    My environment info:
    Crystal Reports Developer XI Release 2 sp1
    VS 2005 - .NET 2.0
    IIS 6
    Few lines of code used to export:
    Response.ClearContent()
    Response.ClearHeaders()
    Response.ContentType = "application/pdf"
    ' Export the document to PDF
    oRpt.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, "")
    Response.Flush()
    Response.Close()
    One of the common answers that I've seen is uncheck the "display in browser" option in Acrobat, but that doesn't work and isn't really a viable solution anyway. I'm looking for a real permanent solution if one exists. TIA.
    Michael

    Hi folks, you're never gonna guess in a million years what the issue was. Yes, I finally found the problem. In my code where the db connection properties are set for the Crystal report document, it gets the values from the app's db connection string in the web.config (the one that ISD creates). It parses that string to set the properties, but it doesn't handle a "trusted connection" setting in that string. Well, some time ago, I set that db connection string to a "trusted connection" setting (to test something), so the app continued to work fine, and I never set it back to a fixed user id and pw. So, the actual problem was that the Crystal report was encountering a db connection problem, but it was spitting out a bogus message of "File does not begin with %PDF-". The strange thing, that isn't resolved yet, is why is the "problem" not throwing an exception or causing an error prior to the export/stream process. The only logical conclusion is that Crystal doesn't attempt to connect to the database until the export/stream process begins, and then it's too late and spits out an error message in the stream that is not in a proper PDF file format.
    These issues are the kinda things that make you want to throw your monitor out the window. Once again, my love/hate relationship with Crystal Reports over the past 12 years has gone to the "hate" side. Thanks for your willingness to help.
    BTW, the way I figured it out was to use the CrystalReportViewer and run the report - sure enough, it displayed the db connection error message, which led me down the right path.
    Edited by: Michael Sumption on Aug 7, 2008 5:54 PM

  • Export PDF Error, Java , ...decisions.reports.a.a.(Ljava/util/Properties;)V

    Hi,
    I'm trying to export my reports to pdf using Java Servlets and Crystals is throwing the following error message:
    com.crystaldecisions.report.web.viewer.ReportExportControl
    com.crystaldecisions.reports.a.a.(Ljava/util/Properties;)V
    I really have no idea how to fix this, can't find info anywhere and the error does not help at all. Have you guys even seen this issue before?
    Thank you
    here is my code (used to work with version X):
    IReportSourceFactory2 rptSrcFactory = null;
    IReportSource reportSource = null;
    ReportExportControl exportControl = null;
    try
       rptSrcFactory = new JPEReportSourceFactory();
       reportSource = (IReportSource);
       rptSrcFactory.createReportSource("myreport.rpt",request.getLocale());
       exportControl = new ReportExportControl();
       ExportOptions exportOptions = new ExportOptions();
       exportOptions.setExportFormatType(ReportExportFormat.PDF);
       PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
       PDFExpOpts.setStartPageNumber(1);
       PDFExpOpts.setEndPageNumber(999999999);
       exportOptions.setFormatOptions(PDFExpOpts);
       exportControl.setReportSource(reportSource);
       exportControl.setEnableLogonPrompt(false);
       exportControl.setEnableParameterPrompt(true);
       exportControl.setExportOptions(exportOptions);
       exportControl.setExportAsAttachment(false);
       exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    + Netbeans 6
    + JDK 1.6
    + Tomcat 6

    Hi Paul,
    The question you have asked can be best answered in the Business Objects SDK Application Development Forum.
    The Crystal Reports Forum is dedicated to issues arising in Crystal Reports Full Client Software.
    Cheers!

  • RrRenderingError - Error while exporting report to PDF

    Hi,
    I am getting an error while exporting SSRS 2000 report to PDF. The error message is as shown below. This is report actually by sales rep and it is working fine with all the sales rep but when i try with one sales rep  i get this error.
    Error
    Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. (rrRenderingError) Get Online Help
    Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown.
    Object reference not set to an instance of an object.
    Please somebody help me out.
    Thanks
    Cheers
    Gigi
    cheri

    Cherian K,
    A message that indicates that the object reference is not set to an instance of the object is typically caused by one or more of the following reasons:
    There are soft page breaks within empty lists in the report.
    There are hidden groups within the report and you tried to export it to PDF.
    The report has a link to a subreport that is not published on the report server and you tried to export it to CSV.
    There are text boxes with a width and/or height of zero in the report.
    A text box is either hidden or the NoRows property is set to true.
    A text box spans table cells where some cells have a collection of null values.
    The report has static columns and/or rows and, in the Visibility properties, Hidden is set to true.
    The report has static columns and/or rows and there are grand totals in the report.
    The report has static column headings and, in the Visibility properties, Hidden is set to true.
    The matrix report has multiple columns and rows and, in the Visibility properties, Hidden is set to true and
    you tried to export to PDF or TIFF.
    Regards
    Shiv

  • Exporting a Report to PDF

    Post Author: helfrich
    CA Forum: Crystal Reports
    I am re-writing a VB6 app to VB.NET 2005.  I have a viewer control that I use to display the reports in when I want to preview the report on the screen.  The VB6 app can also automatically export reports to PDF format silently (no user input or screen output).  I would like to do the same in VB.NET.  In the VB6 app, I simply set the viewer control's ExportOptions.PDFExportAllPages = True (I also set the DiskFileName FormatType, and DestinationType parameters).  I then display the form containing the viewer with the .Hide parameter.  This exports the report without displaying the report on the screen.  I have not been able to find any information that allows me to do the same thing in .NET with Crystal Reports XI.
    I have tried creating a ReportDocument object, but when I execute .Export(), I get a "Missing parameter values" error - absolutely no other information.
    For example:
    Dim crExportOptions As New ExportOptions
    Dim crDiskFileDestinationOptions As New DiskFileDestinationOptions()
    Dim crFormatTypeOptions As New PdfRtfWordFormatOptions()
    Dim crReport As New ReportDocument
    crDiskFileDestinationOptions.DiskFileName = "C:\Test.PDF"
    crExportOptions.ExportFormatOptions = crFormatTypeOptions
    crExportOptions.ExportDestinationType = ExportDestiniationType.DiskFile
    crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
    crExportOptions.ExportDestinationOptions = crDiskFileDestinationOptions
    crReport.Load("C:\Test.rpt")
    crReport.Export(crExportOptions)
    This is where the error occurs.
    I also tried setting Viewer.Visible = False followed by Viewer.ExportReport().  The viewer does not display, but this prompts for the export filename.  The whole idea is for the export to be completely invisible to the user.
    I don't care which solution I use:
    1.  How can I get rid of the "Missing parameter values" error using the ReportDocument
    or
    2. Is there a way I can use .ExportReport(), but preset the export filename so there is not prompt?
    TIA for any help anyone can offer.

    Post Author: jennm
    CA Forum: Crystal Reports
    Here's a snippet of code from one of my recent projects that should offer some help.
            Dim crOrderPrintout As CrystalDecisions.CrystalReports.Engine.ReportDocument = New rptPublicOrder
      u2018clear the dataset, give it the appropriate parameters and fill the data adapter
            Me.dsReceiptDetails.Clear()
            Me.SqlSelectReceiptDetails.Parameters.Item("@ReceiptID").Value = sReceiptID
            Me.daReceiptDetails.Fill(Me.dsReceiptDetails)
            u2018set the data source and paper size for the report
            crOrderPrintout.SetDataSource(Me.dsReceiptDetails.Tables(0))
            crOrderPrintout.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperLetter
      u2018These are the printing options, Printer, File or Viewer
            Select Case My.Settings.PrintType
                Case "Printer"
                    crOrderPrintout.PrintToPrinter(1, False, 0, 0)
                Case "Viewer"
                    Dim frmReportViewer As New frmReportViewer
                    frmReportViewer.CrystalReportViewer1.ReportSource = crOrderPrintout
                    frmReportViewer.ShowDialog()
                Case "File"
                    crOrderPrintout.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\test.pdf")
                Case Else
                    crOrderPrintout.PrintToPrinter(1, False, 0, 0)
            End Select
      u2018close the report
            crOrderPrintout.Close()
    The file option will print directly to a file without prompting the user.  As for the missing parameter values if I had to guess either it's the dataset missing a parameter or the report requires a value.  Example:
    crOrderPrintout.SetParameterValue("ParamName", sParamValue)
    HTH,
    -Jen

  • Crystal Reports 10 Enterprise Server Issue - Exporting Large Reports to PDF

    Weu2019re implementing a Crystal Reports 10 Server for a customer but weu2019re having an issue with exporting large reports to PDF.  The report size that starts to show this issue is roughly 300 pages with 20 records per page.  We use the default Crystal ActiveX viewer. 
    Basically what happens is that the user will launch the report in the ActiveX viewer and the large report will take a while to load, as much as 3 to 4 minutes.  The user may then wish to export to PDF.  Once they attempt it with these large reports the viewer will basically hang and possibly be processing but will then time-out after roughly 5 minutes with this error:
    u201CProxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /thinqreports/THINQCrystalInterface.asp.
    Reason: Error reading from remote server
    IBM_HTTP_Server/6.1.0.9 Apache/2.0.47 (Unix) Server at lmsproxy.aurora.org Port 443u201D
    We believe this error is coming from a server on our network.  We have a proxy server between users and the Crystal Server that has a 5 minute time-out for connections.  What we want to know is:
    - Is there a way to speed up this export to PDF process?
    - Should the Crystal Viewer be keeping an http connection alive to the Crystal Report Server while its doing this export process?
    - If not, what port does Crystal Viewer use to communicate with the Crystal Report Server? 
    - Is there something we can set in Crystal to keep an http connection open? 
    - What is actually occurring during this export process? 
    Occasionally, we may get the above error when simply launching a report, not just attempting to export to PDF.  We presume that is because loading the report into the Crystal Viewer from the Crystal Report Server is taking longer than 5 min.
    Anyone have any thoughts?  Thanks.
    Scott

    Scott,
    As this is happening within Enteprise (and I am assuming the report does not time out in the Crystal Reports Designer) I would suggest posting this to the BusinessObjects Enterprise Administration
    forum.
    My limited Enterprise knowledge would be to suggest scheduling the report as PDF but I don't know if that is a viable option for you.

  • Issue while exporting report in PDF using crystal report XI

    Hello,
    I am facing issue while exporting a report to PDF through crystal report XI. Reports are generating properly in the crystal report browser but when I am exporting the reports in PDF or trying to get print by clicking on print button, reports not generating properly.
    Allignment in the exported PDF reports getting changed and reports margin is also changes. Due to this some part of report is chopped and printed on the next page.
    I have deployed my application on IBM WebSphere 6.1 server and I am getting following error which might help to identify this issue.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The response has already been commited.---- Error code:0 Error code name:succeeded
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
         at com.crystaldecisions.report.web.component.o.a(Unknown Source)
         at com.crystaldecisions.report.web.event.br.a(Unknown Source)
         at com.crystaldecisions.report.web.event.w.a(Unknown Source)
         at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
         at com.crystaldecisions.report.web.event.av.a(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
         at com.ibm._jsp._CrystalReportViewer._jspService(_CrystalReportViewer.java:107)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
         at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1812)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
         at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
    Caused by: com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write
         at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.write(WCCByteBufferOutputStream.java:80)
         at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(SRTOutputStream.java:96)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(BufferedServletOutputStream.java:438)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flushBytes(BufferedServletOutputStream.java:344)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flush(BufferedServletOutputStream.java:323)
         at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flushBuffer(BufferedServletOutputStream.java:478)
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:452)
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:436)
         at com.crystaldecisions.report.web.viewer.JSPViewerResponse.flushBuffer(Unknown Source)
         ... 33 more
    Caused by: java.io.IOException: Async IO operation failed, reason: RC: 64  The specified network name is no longer available.
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:203)
         ... 3 more
    Thanks in advance
    Alok P.

    The stack trace is caused by whitespace in your CrystalReportViewer.jsp file.  Look up SAP Note 1199025 for the resolution.
    It's not related to the PDF formatting issue.  There's been changes to the formatting with the most recent version - Crystal Reports for Eclipse 2.0 - so if you haven't already, I recommend you upgrade.
    Note that there's differences in font metric calculation when using Adobe PDF format such that there's no way to get exact agreement between output of the CR and PDF.  But the latest version helps greatly.
    Sincerely,
    Ted Ueda

  • Logon Failed when exporting crystal report to PDF

    Hi, I am Teguh
    i want to ask about error when export crystal report to pdf
    error message
    CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed
    [LogOnException: Logon failed.]
       .I(String , EngineExceptionErrorID ) +506
       .D(Int16 , Int32 ) +537
       .C(Int16 ) +10
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +577
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) +141
       Falcon.CRTransferSlip.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Falcon\CRTransferSlip.aspx.vb:77
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +750
    environment:
    OS : Windows server 2008 standard SP1
    IIS: Version 7.0
    SQL: Sql server 2000
    VS : Visual studio 2003
    i really confused with this error,
    please help me for this problem
    many thank's

    Hi Ludek
    Thank you for your response. I have installed SP3 and ProcMon and still the same result.
    I applied a filter on ProcMon to filter out items where the path contains 'export'.
    There are a few items where the result is 'NAME NOT FOUND' but I don't think it necessarly had anything to do with the barcode. These include items such as 'EXPORT\MailDestType','EXPORT\DisableExportLiveOfficeSupport'','EXPORT\ExportDirectory' to name a few.
    What drew my attention was the ACCESS DENIED result on specifically the EXPORT\PDF folders. The detail for these are  Desired Access : All access, however the very same entry appears a little futher on as a SUCCESS but this is detailed as Desired Access: Query Value.
    So in summary it looks something like this:
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : ACCESS DENIED
    Desired Access : All Access
    User : Server\XXX
    Operation : RegOpenKey
    Path : HKU\.DEFAULT\Software\Business Objects\Suite 12.0\Crystal Reports\Export\Pdf
    Result : SUCCESS
    Desired Access : Query Value
    There are a few other entries that follow this pattern that exists in other locations such as HKLM\Software...
    Could this 'ACCESS DENIED' be the problem? and If so how do I, and should I give user XXX this ALL Access its looking for.
    Regards
    Elroy

Maybe you are looking for