Empty sqaures[] in exported pdf stream - crystal api

Hello,
Web application using - CR4E version 2.0.16
Reports design using Crystal Reports 2013
I am exporting crystal report into pdf file format using crystal java api that gets shipped with Crystal reports for eclipse. The exported pdf stream returned by the api is saved in db as blob so that it can be viewed/sent to printer later. If I view the pdf blob saved in db using acrobat reader I can see the pdf is correct.
But when I stream blob data directly to printer using java print service for print jobs and PDFRenderer.jar for PDF print pages, the output is empty sqaure blocks []. All the formatting is intact. I can also see number of rows.
This seems to be the problem for exported pdf's from crystal api's or even if you manually export the pdf from crystal report and save the pdf file from file system in the db.
Other PDF files work fine but not the ones exported from Crystal report.
The font properties of the rpt exported pdf shows the encoding as 'Built-in' while the other pdf files has ANSI or other such encodings. That is the only difference I find between pdfs exported from Crystal and other pdf files.
Can you please tell me how to resolve this?
Best Regards,
Bharat

Hi Manas,
I am also working on Exporting Crystal report to PDF  in java but facing some problem in accessing the database.
The .rpt files are published in Crystal Report Server with DB info like server, database, user, password.
When i am calling from java (Similar to your code), its giving error like JNDI name not found. But i am not using any JNDI binding.
Do i need to configure database details in any configuration files such as CRConfig.xml etc. If yes, can you pass me some sample code.
Your help highly appreciated.
Thanks
VK

Similar Messages

  • Problem exporting PDF from Crystal after installing BO BI Client Tools

    Hi there, I am running Crystal Reports 2011 and after installing SAP BusinessObjects BI platform 4 Client Tools Crystal reports crashes when I try to export a report as a PDF. I have reinstalled Crystal from scratch twice, the second time even cleaning the registry before installing with no success.  Any ideas?

    You would have to uninstall the current version and then install one of the 4.0 versions.  The issue is that your client tools version should really be exactly the same as your version of BO.  If you run into any issues and have to open a support case, the first thing SAP will have you do is upgrade the Client Tools.
    Another option that you have would be to upgrade to the latest SP of Crystal 2011 and see if that makes a difference.
    Also, anything that was written in CR 2011 will run fine in CR 2013 - there weren't really any features added in 2013, just the name was changed, so the two are basically interchangeable.
    -Dell

  • Executing a Job and Exporting PDF Output via API

    I can't seem to execute a job and export the PDF output via the API.<BR><BR>I use the following code snippet and nothing is exported:<BR><BR> jobAction.setAction(jobAction.ACTION_EXPORT_SECTION);<BR>     jobAction.setFormat(jobAction.FORMAT_PDF);<BR><BR>If use the snippet below, HMTL is exported:<BR> <BR> jobAction.setAction(jobAction.ACTION_EXPORT_AS_JOB_OUTPUT);<BR>     jobAction.setFormat(jobAction.FORMAT_PDF);<BR><BR>The javadoc for JobActionEnum says to use the former method. However, this doesn't seem to work. Is this an API bug or something obvious that I am not doing?<BR><BR><BR> -Eric D. Hill

    Joe
    Here is the where you can change the server group/job server.
    - After you add the Batch/real Time job as a webservice.
    - Go to the Webservice Batch Job Attribute and from the drop down choose the "Enable job Attributes" and hit apply.
    - After this if you use the WSDL URL http://<Data Services Web Server>:<Web server Port>/DataServices/servlet/webservices?ver=2.0&wsdlxml
    - You will see the job attributes that you can change based on the allowed parameters mentioned in the documentation.
    The batch job or real time job is published without the job parameters by default. Once you enable the job attributes, remove and re publish the batch job as a web service. The application making the call to this webservice should be able to read the WSDL generated by Data services and pickup all the input and output parameters of the method.
    Refer to the Data Services Integrator guide (Chapter 3 : pages 25 - 33 ) to get the exact parameter values permitted via Data Services jobs called via web services.
    Hope this helps!
    Thanks & Regards
    Tiji

  • 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

  • Exporting to PDF in Crystal XI

    <p><span style="font-size: 10pt; font-family: Arial">After exporting a report to PDF in Crystal XI multiple text objects in the PDF are grouped together and appear as one block (one text object) and therefore cannot be moved, removed(deleted) or edited SEPARATLY using the Touch-Up Tool.</span><span style="font-size: 10pt; font-family: Arial">   </span></p><p><span style="font-size: 10pt; font-family: Arial">Exporting same reports in Crystal 8.5 using 8.5 export dll (crxf_pdf.dll) works perfectly fine.<span>  </span>All objects get exported separately and therefore can be manipulated in PDF.</span></p>

    Post Author: bigwheat
    CA Forum: Exporting
    For everyone else that is having this problem...
    Still have no response from Business Objects regarding this problem. I demoed software called Visual Cut to use for bursting pdf documents. I went back this morning and looked at it again and it solves the issue. The Visual Cut software allows for exporting rpt files to pdf and the output is exactly the same as the rpt. We have not yet purchased the software, but are planning now on buying it soon. So I can't offer much advice in terms of using the software on a day to day basis, but in the tests that I've done, it solves the export issue and works great in sending pages from a pdf to different printer trays. I also needed support during my testing and the response in three separate instances was less than ten minutes each time.
    I still wish Business Objects would step up and fix the problem. If it was a problem in 8.5 and 10.0 - they released a hotfix for 10.0. Then why was it still a problem in 11 (and then no hot fix was provided that I could find) and it is STILL a problem in CR 2008!

  • Export To PDF in CRYSTAL REPORT XI Release 2

    I am using Crystal report XI release 2.
    Font Size is decreasing when I am exporting Crystal Report to PDF.
    It was working fine previously but i don't know what messed it up. Please help.

    Hi,
       Looks like you already read the steps needed to resolve this from other places. Here it is again incase you miss any part, make sure you follow it exactly.
    Set the resolution of the default printer of the local computer experiencing the issue to 1200 DPI. Most printers have a default setting of 600 DPI.
    Create two registry keys to prevent the crxf_pdf.dll from decreasing in font size.
    Click Start > Run. Type "regedit". The Registry Editor appears.
    Create the following keys for Crystal Reports XI Release 2 with the defined values:
    HKEY_CURRENT_USER\Software\Business Objects\Suite 11.5\Crystal Reports\Export\PDF\ForceLargerFonts
    Type: DWORD
    Recognized Values: 0,1
    Default Value: 1
    Creation Method: manual
    HKEY_LOCAL_MACHINE\Software\Business Objects\Suite 11.5\Crystal Reports\Export\PDF\ForceLargerFonts
    Type: DWORD
    Recognized Values: 0,1
    Default Value: 1
    Creation Method: manual
    Set both registry key values to 1 to turn them on.
    Restart the Crystal Reports Page, Job and Cache Servers
        Also help if you upgrade your Adobe Reder to version 8 or higher. Let me know if it helps.
    Regards,
    Ken

  • PDF Export Output in Crystal Reports Developer 10 vs. Crystal Reports Developer XI

    <p>Hi -- First post here, so forgive newbish behavior (at least for today)</p><p>Quick question:</p><p>Why does my output differ (margins and image size) for the same report exported to PDF via Crystal Reports Developer 10 vs. Crystal Reports Developer XI?  It&#39;s the same report with the same data and same design.  When XI is compared to 10, the output in XI seems to remove an extra 1/4-inch on the left, right, top, and bottom margins and makes my images shrink by about a factor of 25%.</p><p>While not the end of the world, it would be nice to get an explanation as to why this happens.</p><p>Thanks in advance,</p><p>Amasis</p>

     I personally haven't noticed that myself but I'm sure it will have been reported to Customer Care if it's a more persistent issue. Have you tried looking this up in the Knowledge Base?
        - Kathryn Webster (Report Design Consultant)Â
               Kat&#39;s News: http://diamond.businessobjects.com/blog/279

  • [Bug Report] CR4E V2: Exported PDF displays Japanese characters incorrectly

    We now plan to transport a legacy application from VB to Java with Crystal Reports for Eclipse. It is required to export report as PDF file, but result PDFs display Japanese characters incorrectly for field with some mostly used Japanese fonts (MS Gothic & Mincho).
    Here is our sample Crystal Reports project:   [download related resources here|http://sites.google.com/site/cr4eexportpdf/example-of-cr4e-export-pdf]
    1. PDFExportSample.rpt located under ..\src contains fields with different Japanese fonts.
    2. Run SampleViewerFrameClient#main(..) to open a Java Report Viewer:
        a) At zoom rate 100%, everything is ok.
        b) Change zoom rate to 200% or 50%, some fields in Japanese font collapse.
        c) Export to PDF file,
             * Fonts "MS Gothic & Mincho": both ASCII & Japanese characters failed.
             * Fonts "Meiryo & HGKyokashotai": everything works well.
             * Open PDF properties, you will see all fonts are embedded with built-in encoding.
             * Interest to note that copy collapsed Japanese characters from Acrobat Reader, then
               paste them into a Notepad window, Notepad will show the correct Japanese characters anyway.
               It seems PDF export in CR4E mistaking to choose right typeface for Japanese characters
               from some TTF file.
    3. Open PDFExportSample.rpt in Crystal Report 2008 Designer (trial version), and export it as PDF.
        The result PDF displays both ASCII & Japanese characters without any problem.
    Test environment as below:
    * Windows XP Professional SP3 (Japanese) with MS Office which including extra fonts (i.e. HGKyokashotai)
    * Font version: MS Gothic, Mincho, Meiryo, all in Version 5.0
        You can download MS Meiryo from Microsoft's Site:
        http://www.microsoft.com/downloads/details.aspx?familyid=F7D758D2-46FF-4C55-92F2-69AE834AC928&displaylang=en)
    * Eclipse 3.5.2
    * Crystal Reports for Eclipse, V2, 12.2.207.r916
    Can this problem be fixed? If yes how long will it take to release a patch?
    We really looking forward to a solution before abandoning CR4E.
    Thanks for any reply.

    I have created a [simple PDF file|http://sites.google.com/site/cr4eexportpdf/inside-the-pdf/simple.pdf?attredirects=0&d=1] exported from CR4E. It is expected to display "漢字" (or in unicode as "\u6F22\u5B57"), but instead being rendered in different ones of "殱塸" (in unicode as "\u6BB1\u5878").
    Look inside into this simple PDF file (you can just open it with your favorite text editor), here is its page content:
    8 0 obj
    <</Filter [ /FlateDecode ] /Length 120>>
    stream ... endstream
    endobj
    Decode this stream, we get:
    /DeviceRGB cs
    /DeviceRGB CS
    q
    1 0 0 1 0 841.7 cm
    13 -13 569.2 -815.7  re W n
    BT
    1 0 0 1 25.75 -105.6 Tm     <-- text position
    0 Tr
    /ttf0 10 Tf                 <-- apply font
    0 0 0 sc
    ( !)Tj                      <-- show glyphs [20, 21], which index is to embedded TrueType font subset
    ET
    Q
    The only embeded font subset is defined as:
    9 0 obj /ttf0 endobj
    10 0 obj /AAAAAA+MSGothic endobj
    11 0 obj
    << /BaseFont /AAAAAA+MSGothic
    /FirstChar 32
    /FontDescriptor 13 0 R
    /LastChar 33
    /Subtype /TrueType
    /ToUnicode 18 0 R                            <-- point to a CMap object
    /Type /Font
    /Widths 17 0 R >>
    endobj
    12 0 obj [ 0 -140 1000 859 ] endobj
    13 0 obj
    << /Ascent 860
    /CapHeight 1001
    /Descent -141
    /Flags 4
    /FontBBox 12 0 R
    /FontFile2 14 0 R                            <-- point to an embedded TrueType font subset
    /FontName /AAAAAA+MSGothic
    /ItalicAngle 0
    /MissingWidth 1000
    /StemV 0
    /Type /FontDescriptor >>
    endobj
    The CMap object after decoded is:
    18 0 obj
    /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo <<
    /Registry (AAAAAB+MSGothic) /Ordering (UCS) /Supplement 0 >> def
    /CMapName /AAAAAB+MSGothic def
    1 begincodespacerange <20> <21> endcodespacerange
    2 beginbfrange
    <20> <20> <6f22>                         <-- "u6F22"
    <21> <21> <5b57>                         <-- "u5B57"
    endbfrange
    endcmap CMapName currentdict /CMap defineresource pop end end
    endobj
    I can write out the embedded TrueType font subset (= "14 0 obj") to a file named "[embedded.ttc|http://sites.google.com/site/cr4eexportpdf/inside-the-pdf/embedded.ttf?attredirects=0&d=1]", which is really a tiny TrueType font file containing only the wrong typefaces for "漢" & "字". It seems everything OK except CR4E failed to choose right typefaces from the TrueType file (msgothic.ttc).
    Is it any help? I am looking forward to any solution.

  • Enable tool tip in Exported PDF document from a CRE Report

    Hi All,
    We are on BObj 4.0 and using CRE for our reports. We have enabled Tool tip text on mouse over for certain labels which works great in browser. When we export to PDF, we dont see the Tool tip text. Is there a way we can configure this in CRE so that the exported PDF also shows the Tool tip text?
    Regards,
    Sundar

    I checked online and found this Note - 1567798 - Crystal Reports does not export Tool Tips when exported to Pdf Format. Does this apply to CRE also or just CR 2008?
    Regards,
    Sundar

  • Font Size is not correct in the exported PDF-File

    In the Report is the Font Arial Size 8, but in the exported PDF-Fildethe size is only 7,15. The Fontsize in the PDF-File is always smaller then in the Report.
    I use Crystal Report XI. With Version 9 is everythink ok.

    In Crystal Reports 10 and 11, exported fonts are shrunk by 5% to avoid field truncation.
    For version 11, create the following registry entry and then set the value to 1 to maintain the font size:
    HKEY_CURRENT_USER\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\Export\PDF\ForceLargerFonts
    Please back-up your registry before editing.
    Cheers,
    Fritz

  • Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls

    We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue.  I can give you the responses to your questions you have requested in that thread:
    Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
    Version of the .NET Framework - MS .NET Framework 3.5 SP1
    How did you deploy? - Installed CR 2008 SP1 runtime with msi package
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
    How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
    Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
    CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
    CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
    We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
    Please let me know if you need anything additional.
    Phil
    "Invalid export DLL or export format" with Crystal Reports 2008
    Posted: Sep 27, 2008 12:36 AM       E-mail this message      Reply 
    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    Exporting a Crystal Report to Excel or RTF format
    .NET application using the Crystal Reports 2008 runtime (version 12.0)
    error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    Server Operating System
    Version of the .NET Framework
    How did you deploy?
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    How many libpng10.dll files are on your system? List all instances.
    Any additional comments
    What We Know
    The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
    This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.

    Hi,
    I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
    Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
    So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Crpe32.dll        3/1/2008 version 12.0.0.683
    Crxf_xls.dll       3/1/2008 version 12.0.0.683
    Crxf_rtf.dll         3/1/2008 version 12.0.0.683
    crdb_oracle.dll  3/1/2008 version 12.0.0.683
    libpng10.dll       3/1/2008 version 1.0.30.0             122880 bytes
    There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
    Oracle 11.1.0.6 is the DB for the reports.
    Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
    Any idea to fix this issue?
    Thanks
    Kin H Chan

  • Name of exported PDF file

    <p>Hello,</p><p>I hope I&#39;m in the correct section and that someone will be able to help me.</p><p>I run a web application (within Weblogic 8.1 sp5) which allows the direct generation of reports in PDF.<br />Each report has a unique name and I want the PDF to open in my Web browser.<br />The problem I get is that the name of this PDF is not the one that I want.</p><p>As the export is always in PDF, I&#39;m using the ReportExportControl class.<br />When I use <font face="courier new,courier">setExportAsAttachment(false)</font> along with <font face="courier new,courier">setName(idReport)</font>, the name of the PDF when I click &#39;Save&#39; is the name of my jsp, not <font face="courier new,courier">idReport</font>.<br />When I use setExportAsAttachment(true), the name is not exactly idReport.</p><p>I also tried forcing the response header to specify the attachment name, without any success either.<br />Do someone have any idea ?</p><p>Here below a sample of my code :</p><font size="2"><p><font size="1"><font face="courier new,courier">ReportExportControl exportControl = <strong><font color="#7f0055">new</font></strong></font></font><font face="courier new,courier" size="1"> ReportExportControl();<br /></font><font face="courier new,courier" size="1">exportControl.setReportSource(reportSource);<br /></font><font size="1"><font face="courier new,courier">ExportOptions exportOptions = <strong><font color="#7f0055">new</font></strong></font></font><font face="courier new,courier" size="1"> ExportOptions();<br /></font><font color="#3f7f5f"><font face="courier new,courier" size="1">//exportControl.setExportAsAttachment(false); // this will open the file in the current window<br /></font></font><font size="1"><font face="courier new,courier">exportControl.setExportAsAttachment(<strong><font color="#7f0055">true</font></strong></font></font><font size="1"><font face="courier new,courier">); <font color="#3f7f5f">// this will open a &#39;save as&#39; popup<br /></font></font></font><font color="#3f7f5f"><font face="courier new,courier" size="1">//exportControl.setOwnForm(true);<br /></font></font><font size="1"><font face="courier new,courier">exportControl.setOwnPage(<strong><font color="#7f0055">true</font></strong></font></font><font face="courier new,courier" size="1">);<br /></font><font face="courier new,courier" size="1">exportControl.setName(idPackage);<br /></font><font face="courier new,courier" size="1">exportOptions.setExportFormatType(ReportExportFormat.PDF);<br /></font><font face="courier new,courier" size="1">exportControl.setExportOptions(exportOptions);<br /></font><font color="#3f7f5f"><font face="courier new,courier" size="1">// Assign Fields collection to the viewer<br /></font></font><font face="courier new,courier" size="1">exportControl.setParameterFields(parameterFields);<br /></font><font color="#3f7f5f"><font face="courier new,courier" size="1">// Disable database logon information request<br /></font></font><font size="1"><font face="courier new,courier">exportControl.setEnableLogonPrompt(<strong><font color="#7f0055">false</font></strong></font></font><font face="courier new,courier" size="1">);<br /></font><font color="#3f7f5f"><font face="courier new,courier" size="1">// Assign the connectionInfos to the viewer<br /></font></font><font color="#3f7f5f"><font face="courier new,courier" size="1">//exportControl.setDatabaseLogonInfos(connectionInfos);<br /></font></font><font face="courier new,courier" size="1">response.reset();<br /></font><font face="courier new,courier" size="1">response.setContentType(<font color="#2a00ff">"application/pdf"</font>);<br /></font><font face="courier new,courier" size="1">response.setHeader(<font color="#2a00ff">"Content-Disposition"</font>,<font color="#2a00ff">"inline;filename="</font> + idPackage + <font color="#2a00ff">".pdf"</font>);<br /></font><font size="1"><font face="courier new,courier">exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), <strong><font color="#7f0055">null</font></strong></font></font><font size="2"><font face="courier new,courier" size="1">);<br /></font><font face="courier new,courier" size="1">exportControl.dispose();<br /></font></font></p></font><p>Thanks alot for helping ;)</p><p>Bernard</p>

    <p> </p><p>The ReportExportControl specifies the header info, so it will not keep the values you set in code. Two options:</p><p>1. If you&#39;re using JRC XI Release 2 or newer, get the export using ReportClientDocument.getPrintOutputController().export(...) method.  You can then redirect the export output to the HTTP Response stream after specifying the header info as you&#39;re doing now.</p><p>2. If you need to use ReportExportControl, get the export format stream by passing processHttpRequest a &#39;fake&#39; HTTPResponse object that you create yourself.  Make the &#39;fake&#39; response return a &#39;fake&#39; ServletOutputStream that you create yourself, where you override the write(...) method to pass it to the &#39;real&#39; HTTP Response stream.  This way, you can throw out all the header info that ReportExportControl uses, and specify your own.</p><p>One thing - you have to be careful to ensure that your report pdf name represents a valid filename on every client OS that your page is being viewed.</p><p>TUeda </p>

  • CS3:  Export PDF crash...located the source, now what?

    InDesign CS3 keeps crashing on page 86 or 87 of a file I'm trying to Export to PDF.  I know this from watching the progress bar move across the screen, everything is fine until the status box shows page 86/87, then poof, InDesign disappears and requests to send an error report.  I was under the impression this was being caused by the Export PDF settings.  With printer's marks enabled, the Export PDF crash occurs on page 86.  Turn printer's marks off and the crash happens on page 87.  So I tried all kinds of things with Export PDF settings but came up empty.
    Then I messed around with pages 86 and 87.  Removed text frames from page 86 and tried various combinations with Export PDF.  Did the same thing on page 87, and then combinations of 86 and 87 at the same time.  No good...keeps crashing.  I removed ALL content from pages 86 and 87 and the Export PDF still crashes, even with blank pages.
    I finally got a clue when moving text frames to other pages.  Both pages have 4 text frames each.  When I moved the top text frame on page 87 to a different page -- in this case I moved it to page 98 -- the Export PDF crashed on page 96.  Not page 98 where it was located, but page 96. Weird, but it gave me a clue.
    Long story short:
    Export PDF causes InDesign to crash on page 86 or 87 unless the uppermost text frame on page 87 is moved to a non-printing layer. The text frame can remain on page 87 or be on the pasteboard; either way, it must be non-printing to prevent a crash in Export PDF mode.
    Any suggestions?  I've already searched the text frame and nothing out of the ordinary catches my eye.  The text frame is necessary for a book project.  I can't consolidate it with another frame.
    Thanks in advance!

    My memory is not so great after all...
    The bug was in CS4 and it was fixed in 6.0.4. I remembered the rest correctly...
    Here's the tech note:
    Type on a Path fails to draw in output (PDF, Print, JPEG) on the 35th and subsequent spreads. [2297179]
    Harbs

  • Exporting PDF to Print - Zero Bytes

    Hi All,
    I am trying to export my brochure design 104 pages. A4 size. It is a furniture brochure so you can imagine there are hundreds of linked files.
    Once I have selected Export PDF for Print as I usually do with my flyers and posters, I select the option I believe I need, including the output for bleed markings .etc. but the file does not seem to be exporting.
    When I locate my exported PDF in Finder (Mac) Explorer (Windows) it shows the file there but with Zero bytes as the size, I try to open the file and it says the file is empty.
    Has anyone seen this before or am I doing anything wrong?
    Does InDesign show the progess of the Export? I cannot see anything in InDesign but I'm thinking it could take some time to Export as the file must be very large.
    Any help and advise is appreciated as always
    Kind Regards
    James

    Hi Peter, thanks for your prompt response
    I am using CS6 now, is there anyway to view background taks?
    I have attached a screenshot of the error I am now receiving....

  • PDF Export:  PDF output reported as being non-conforming to Adobe's specs.

    One of our customers is reporting errors with the PDF files generated using the ReportDocument.Export() method.  They are using GhostScript to parse the PDF file (here is the error that they are reporting):
    cscsoveraprod(amssw)/usr/amssw/prod/ctl/bin> 19391790_CARTER_ICUA_Nursing_Flowsheet_201004241845228256298.                                                         <
    cscsoveraprod(amssw)/usr/amssw/prod/ctl/bin> 19391790_CARTER_ICUA_Nursing_Flowsheet_201004241845228256298.pdf                                                      <
    Warning: File has a corrupted %%EOF marker, or garbage after %%EOF.
    Warning: Encoding not present.
    Warning: Embedded symbolic TT fonts must contain a cmap for Platform=1 Encoding=0.
    Warning: Encoding not present.
    Warning: Embedded symbolic TT fonts must contain a cmap for Platform=1 Encoding=0.
    This file had errors that were repaired or ignored.
    The file was produced by:
    >>>> Powered By Crystal <<<<
    Please notify the author of the software that produced this
    file that it does not conform to Adobe's published PDF
    specification.
    cscsoveraprod(amssw)/usr/amssw/prod/ctl/bin> Error: /undefinedfilename in (/usr/amssw/prod/interlink/data/1369021_619391790_CARTER_ICUA_Nursing_Flowsheet_201004241845
    228256298)
    Operand stack:
    Execution stack:
       %interp_exit   .runexec2   nostringval   nostringval   nostringval   2   %stopped_push   nostringval   nostringval   nostringval   false  
    1   %stopped_push
    Dictionary stack:
       dict:1080/1123(ro)(G)   dict:0/20(G)   dict:69/200(L)
    Current allocation mode is local
    Last OS error: 2
    GPL Ghostscript 8.56: Unrecoverable error, exit code 1
    :wq!
    :wq!
    According to this error message, it looks like the PDF files generated by Crystal are not compliant with Adobe's PDF specification.  I've searched the knowledge base / forums for PDF information but didn't see anything along these lines.  The PDF files are viewable through the Acrobat reader. 
    Thank you for any assistance you can provide.

    First place to start with is the designer. Export from there and see if you get the same issue. If you do, create a forum post in the Report Design forum:
    SAP Crystal Reports
    Also, make sure you have SP 6 for CR 10:
    https://smpdl.sap-ag.de/~sapidp/012002523100005985482008E/cr10win_en_sp6.zip
    You will need SP 6 runtime also. Search here for the runtime;
    http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    Kbase [1218365 - Exported PDFs cannot be edited using the Adobe TouchUp Text Tool|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] may be related to the issue you are experiencing.
    If none of the above helps, you will have to try this with CR 2008 (12.x) as CR 10 has been out of support for a number of years and no fixes will be released. If you want, you can share a report with saved data with me and I can do the export using CR 2008. You will then have to try to duplicate the issue in Adobe. Alternatively, you can download CR 2008 eval copy from here;
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    and try the export your self.
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

Maybe you are looking for

  • How do I restore an Apple Mail account to a previous date?

    I have three accounts in Apple Mail: my Exchange server account, and two IMAP accounts. I need to restore ONLY the Exchange server mailbox to where it was on April 1st and can't do so the normal way of having the Exchange mail stores restored. Is the

  • Remove credit card for allowance account

    I'm trying to change my daughter's account from using my credit card to a monthly allowance only, but the account won't work without a credit card associated with it. Is there any way to change the account to one fed only by an allowance?

  • All video encoding in widescreen format

    I've been using iDVD since it first came available, and for some reason all the video the program encodes does so in the widescreen (16:9) aspect ratio. I've gone though all the setting making sure that NTSC 4:3 is selected, especially when creating

  • Blackberry Link Peer Manager Has Stopped Working

    Hello,  Sorry if this message has already been posted before, but I have downloaded the latest version of Blackberry Link (previous version worked fine) but just as the download is completed I receive a message telling me that Blackberry Link Peer Ma

  • Example from the SDK. How to check in FrameLabelUI whether plugin FrameLabel.pln exists?

    Hi all, I have problem. I want check in FrameLabelUI, whether dependency plugin file FrameLabel.pln is exists. If FrameLabel.pln exists, plugin FrameLabelUI display messagebox "plugin framelabel exists" else if FrameLabel.pln not exists, plugin Frame