CR4Ev2 problem exporting to PDF containing Turkish characters

I know there are other threads with similar topics but I also know some people get irritated when people jump onto their threads with their own problems.
I am using CR4Ev2 and on my machine which I have installed Eclipse on I have no problems
exporting my reports to PDF, I have Turkish characters which display perfectly (they did not with
CR4Ev1 so thanks so much for that)
I have now exported my project as a WAR file and am trying to run it on another machine with the same
Tomcat and Java versions.
If I view the report via the CrystalReport Viewer the Turkish characters display with no hassel.
But if I try export the report to PDF all the Turksh characters now display as ?, (as they did in CR4Ev1)
Am I missing something, is there something that I am not including in my project that I need
when exporting the PDF.
I have installed Adobe Reader 9 on this new machine incase the Turkish langauge fonts were not in
my version 8, but still get funny ? characters, I even installed the Turksih version of Adobe 9 and still nothing. Is there some other files that I could have installed on my Eclipse machine that I have not installed
on the second machine.
I have tried both the following commands to export to PDF
CRJavaHelper.exportPDF(clientDoc, response, true);
and
CRJavaHelper.exportPDF(clientDoc, response, false);
both dont work.
I have also tried the following (which I used before with CR4Ev1)
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)clientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
writeToFileSystem(byteArrayInputStream, EXPORT_OUTPUT); // EXPORT_OUTPUT = "c:\test.pdf"
private void writeToFileSystem(ByteArrayInputStream byteArrayInputStream, String exportFile) throws Exception {
          //Use the Java I/O libraries to write the exported content to the file system.
          byte byteArray[] = new byte[byteArrayInputStream.available()];
          //Create a new file that will contain the exported result.
          File file = new File(exportFile);
          FileOutputStream fileOutputStream = new FileOutputStream(file);
          ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
          int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
          byteArrayOutputStream.write(byteArray, 0, x);
          byteArrayOutputStream.writeTo(fileOutputStream);
          //Close streams.
          byteArrayInputStream.close();
          byteArrayOutputStream.close();
          fileOutputStream.close();
But that also does not work.
Please can someone tell me what they think I am missing.
Oh, another note with the CRJavaHelper.exportPDF(clientDoc, response, false); command
It does work but I do get the following error in my console (both the Eclipse machine and the new one).
org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
06-Feb-2009 15:06:52 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
     at org.apache.catalina.connector.Response.getWriter(Response.java:610)
     at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
     at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
     at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
     at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:188)
     at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
     at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
     at org.apache.jsp.Report_002dviewer_jsp._jspService(Report_002dviewer_jsp.java:263)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     at java.lang.Thread.run(Thread.java:619)
But as I said it seems to work fine apart from the Turkish character issue on the new machine)
Is this part of the problem or a seperate issue??
Thanks all for looking at this.
Darren

Ted,
I have double checked the Java version and infact reinstalled jdk6u7 (multilanguage version) just to be
100% sure, but that did not help.
ON my Eclipse machine the Fonts are as follows
Verdana(Embedded Subset)
     Type: TrueType
     Encoding: Built-In
but on the other machine it is different
Verdana
    Type: TrueType
    Encoding: Ansi
    Actual Font: Verdana
    Actual Font Type: TrueType
So that does appear to be the problem, but the question is what controls this?
As I said the project is exactly the same (same WAR file) so what I have done differently or what am I
missing in the new enviroment.
I set the "Text file encoding" for the whole project to UTF-8 before I exported the project (in Eclipse)
but that didnt help. I even set the properties of each report to UTF-8.
I am sure I am missing something simple.
The only other difference is Im running XP Pro on Eclipse machine but W2KSP4 on the other, but
surely that is not the issue.
Cheers
Darren

Similar Messages

  • Exporting InDesign files to PDF containing Chinese characters

    When I export a file from Adobe InDesign to PDF that contains Chinese characters, some of the Chineset text in the resultant PDF appears heavy and blotchy, like it has had a very heavy stroke applied to it, even though the text is perfectly OK in the source InDesign file and when printed out from the PDF.
    As a lot of Chinese reader will view and read this document online, I need to find a solution, can anyone help me?

    Below is a screenshot of one of the effected pages
    As you can see, some of the Chinese characters appear all heavy and blotch, whilst others are OK.
    There is no leading on any of the text and it is perfectly OK when viewed in the Adobe InDesign file.

  • Export to pdf for thai characters get blank result.

    Dear expert,
    I have a problem, when export Sales Order that contain thai characters to PDF in SAP B1 2007A SP01 PL08, the page converted to pdf successfully for english characters, but not for Thai character. Thai characters did not display anything, just blank.
    I did refer to note 339832 , and i guess this note is for R3 system, and I think for B1 also should use the same method when export to pdf.
    So, anyone have any idea to enable Thai characters to export to pdf in SAP Business One?
    Thanks in advance for any help.
    Reagrds
    Mat

    Dear Carin,
    Actually the purpose I want to export to pdf is because to attach wiith email that send direct from SAP.
    My scenario here is:
    - Open one Sales Order
    - then click on Email icon to send email with attachment (I want to attach the SO). But, when I check the pdf before send the SO as attachment, i find out that the Thai characters missing/blank (as JimM said it is limitation in SAP for pdf function currently).
    - the email sent successfully, but only the SO attachment is not correct because of Thai characters missing.
    As per your suggestion, yes I can print as pdf first, then manually attach to email, but this involve too many manual steps just to send one SO via email.
    Any way, thanks to all of you for reply.
    JimM, thanks for the info and I will try to proceed to SAP development team for future use.
    Regards
    Mat

  • Problem exporting / printing pdf

    I have an SSRS report that contains several sub reports - Mostly with the same background colour.  If I print the report it prints fine - all backgrounds are the same colour, If I export to PDF it appears to be fine but when I print the PDF the graph
    in the report has a blueish background.  I can print as PDF using CutePDF and then print with no problem - It's just when I export as PDF in Visual Studio.
    Any ideas???
    Regards
    Andy

    Hi Andy,
    I have test the scenario in my testing environment, however, everything goes well when exporting to PDF format. In order to trouble shoot this issue more efficiently, I need to clarify some information.
    What’s the expression of background color in your reports?
    Here you mentioned Visual Studio, do you mean Preview the RDL report in the BIDS environment or browse the RDLC report in the web application?
    Could you please post the screenshot about the graph with PDF format when exported from “Visual Studio”?
    Detail information is a big help for us supply the further assistance. Besides, please try to export the report from report manager and check the result again.
    For more information about export a report to a PDF file, please see:
    http://msdn.microsoft.com/en-us/library/dd255291.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Export to .pdf produces block characters for text

    I am using Crystal Reports 2008 version 12.2.0.290 with service pack 3 installed.  The format of my reports is exporting to .pdf format; but all text appears like hexadecimal block type characters.  The report is also very dim, low contrast.  This happens at all times, whether using the report is an app or exporting it from the Crystal Reports designer.

    That's weird...
    The blocks are due to the viewer not being able to find the font defined in the report when viewed.
    Try changing the font to MS Ariel Unicode and see if that works. Only other possible issue is you are using Licensed fonts, CR will not embed those into a PDF.
    Also need to know what language you are using and what font type? Make sure you don't use the fonts listed in CR Designer that begin with "@" sign, they are for text rotation and have been known to cause problems when exporting.
    Thanks again
    Don

  • Problem with URL:s containing scandinavian characters (Office 2013 / Firefox / SP 2010)

    We are encountering problems with document opening when URL contains scandinavian characters (ä,ö). This issue occurs only with Office 2013 when using Firefox. With IE it works just fine. And Office 2010 works nicely as well.
    Error message: "We can't connect to 'https://intra.../Test powerpoint.pptx' Please make sure you're using the correct web address".
    This issue only occurs when document or document set name contains scandinavian characters. If I rename it, document opens without any problems. 
    Any idea how I could fix this?

    Hi Law, try changing the settings in the library to "open in client application." You should also read the following links for solutions:
    http://sharepoint.stackexchange.com/questions/16938/why-is-word-document-created-from-template-saved-locally-instead-of-to-the-docu
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec048a1f-e6cc-481d-8f46-308823568b56/cannot-save-documents-to-sharepoint?forum=sharepointadminprevious
    cameron rautmann

  • I am having problems exporting to PDF using InDesign for Mac.

    Hi all!
    I just started using the Creative Suite on Mac and have run into a couple problems. One is that when I set up a document in InDesign using "Facing Pages" and then export to PDF, the document exports each set of "Facing Pages" as one singular spread (my 20 page InDesign document becomes a 10 page PDF). Once it is a PDF, there are no page break lines in the center of the spread to indicate that they are two separate pages, and when I try to set up viewing preferences in Acrobat (single or double page), it too recogrnizes each spread as a single page.
    When I used to do this in InDesign using Windows, whether I exported to PDF or printed to PDF from a document set up with "Facing Pages," each page would still be considered separate once converted to PDF (20 page InDesign docment becomes a 20 page PDF).
    This also leads me to my next question : I see that on Mac, there is no option for printing to PDF, but I notice a quality difference specifically when it comes to linework (vector information) that has been "placed" in the document from Illustrator. Is there any way to achieve the quality of printing to PDF on Mac?
    Thank you in advance!
    Gabby

    Hi Bob, I just tried your suggestion, but the interactive PDF is in spreads by default, no way to change the setting. When I choose to view by single page in Acrobat, it displays a single spread.
    When I choose to view by spreads, it displays 4 pages, two spreads. That's the topic of this whole discussion, I believe. I do own CS 6 at home, however my employer supplied me with CS 5.5. And I have very little, if any, influence on purchasing.
    So, I have no good way to make an interactive PDF (with differing recto/verso headers and footers), that is accessible and shows the correct header/footer. It's either single pages (with one header/footer), or recto/verso headers/footers but PDF only as a spread, as well as I can tell.
    Unless you know something else I can do...
    Best, Marilyn

  • Problem  exporting in PDF X-4 with conversion in RGB

    I need to export in PDF X-4 converting the images in RGB color space with SuperRGB output intent.
    The problem is that when I choose  "Convert in RGB" ,in the export PDF windows, I can see only the ROMM-RGB ICC profile as output intent.
    All the other RGB profile are missed.
    If I don't choose PDF X-4 I can see all the RGB ICC profile installed.
    Can anybody explain the why?

    The problem is that when I choose  "Convert in RGB" ,in the export PDF windows, I can see only the ROMM-RGB ICC profile as output intent.
    You can't use a display class profile (i.e. AdobeRGB, sRGB, ProPhoto RGB) as a destination or output intent when you are exporting to PDF/X-4. You can convert everything to an RGB display profile, but not with the PDF/X standard.

  • Problems exporting as pdf

    I am having problems exporting a multipage website as a working pdf.  I get a dialogue box stating that there are incorrect parameters.  I am using Mac OS 10.5.  Any help would be appreciated.  Thanks.  Carrie

    Hi Peter,
    First off, thanks for your help & follow up.
    I guess I'm having trouble actually installing the abracadabra Automator script. I downloaded it, unzipped it and attempted to open it in Automator and received the following errors.
    From there, I thought it may have been installed. But I'm still having some problems. According to the site the next should be " save it as a module via the menu File > Save as module > Finder module . It will then be available by right-clicking on any icon Finder via the sub-menu> Automator > PDF-Assembler ."
    Forgive me for my cluelessness, but I'm not sure where to go from here.

  • Problems exporting to PDF in CS4, InDesign stops working

    I'm getting an "InDesign has Stopped Working" message when exporting to PDF. It's a 370 page document and the error comes at the very end of the creation process. My only option at that point is to shut it down and try again. Funny thing is, when I export certain ranges of pages, say 1-20, it exports fine. And it's not a matter of a problem with an individual page or element, because I've exported page 28 and 29 individually with success but when trying a range of 28-29 I get the error. Any ideas/help would be much appreciated. Thanks.

    reopening an inx or idml should clean up a few rotten elements. If you want to see if the font is causing the problems you could swap them out, generate a PDF and rule it out or in.
    If I recall correctly, look for common elements on the pages where the PDF won't let you print. If it exports 1-25 but not 1-26, and 27-52 but not 26-52 you can located the problem pages. It does take time.
    But if you can export the pages, you could save time by combining the files. Be careful though, when I did that the PDF pages wouldn't print the same troublesome pages.
    I don't have a system for troubleshooting files like this. It only came up with one file and I've yet to see it again. Others may have more efficient of graceful suggestions.

  • Problems Exporting to PDF with ID 5.5 - specific symptoms

    I'm hoping the symptoms of my problem are specific enough that someone will have a good idea of what's wrong.
    I have multiple chapter files that I use to make up a single book file, which I create the pdf from. Here's what happens:
    1. When I click on the "print the book" icon at the bottom of the book window, ID will crash.
    2. So instead, I click on the pull-down menu at the upper right of the window and select "Export book to pdf".
    3. Now, it generates a pdf but in the pdf some pages are with a single page from the ID file and some have two pages spread across a single pdf page, very randomly it appears.
    4. To get around this (or so I thought) I went to document setup in ID and deselected the "Facing Pages" checkbox.
    5. As soon as I do this, the left side header and footer of all pages in that chapter get offset to the left. Ok, so I go to the master page and realign them.
    6. Now I export again in the manner described above and the page numbering comes out all messed up in the pdf. Even if the ID (source) file has pages 6-1, 6-2, etc. in the pdf every page will be marked as 6-1.
    Any help on this will be greatly appreciated! I am using Windows XP.

    WTF, Over? wrote:
    4. To get around this (or so I thought) I went to document setup in ID and deselected the "Facing Pages" checkbox.
    5. As soon as I do this, the left side header and footer of all pages in that chapter get offset to the left. Ok, so I go to the master page and realign them.
    6. Now I export again in the manner described above and the page numbering comes out all messed up in the pdf. Even if the ID (source) file has pages 6-1, 6-2, etc. in the pdf every page will be marked as 6-1.
    Any help on this will be greatly appreciated! I am using Windows XP.
    Firstly - the 4-6 steps are unnescearry - I recommend you go back to the original layout.
    WTF, Over? wrote:
    I have multiple chapter files that I use to make up a single book file, which I create the pdf from. Here's what happens:
    1. When I click on the "print the book" icon at the bottom of the book window, ID will crash.
    2. So instead, I click on the pull-down menu at the upper right of the window and select "Export book to pdf".
    3. Now, it generates a pdf but in the pdf some pages are with a single page from the ID file and some have two pages spread across a single pdf page, very randomly it appears.
    I recommend you delete that Book file and create a new one.
    if the problem persists, try selecting individual documents in the Book to export to PDF or to print. It could be a specific file causing the issue.
    If some pages are coming out as "spreads" then you must have facing pages in some documents and some single pages in another document or something? I recommend turning off Spreads in the PDF and print settings.
    It's a little unclear of your document structure - and your document sizes. What are the sizes of the document in all the individual Chapters. Can you post screen shots of the Book panel - and also of each Chapter file (just a single or spread of a page(s))

  • Problem Exporting as PDF from InDesign CS4 on XP SP3

    Hi guys
    Has anyone else encountered a problem when exporting a PDF file from any of the standard setting within InDesign and a PDF with 0kb file size is generated and obviously wont open in Acrobat
    Any suggestions greatly appreciated
    Regards
    Steve

    I've not seen anything like this. Try replacing the prefs.

  • Problem exporting crystal PDF using printoutputController.export method

    Has anyone used PrintOutputController().export() method in ReportClientdocument to export Crystal PDF report to a JavaIOStream. I am getting an error when I try to export it using this method. The error I get is unable to connect RAS.rptappsrver followed by classcast unable to export to IXMLSerializable. Here is the code I am using.
    Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
    IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("","RASReportFactory");
    ReportClientDocument reportClientDoc = reportAppFactory.openDocument(reportID, 0, Locale.ENGLISH);
    return reportClientDoc.getPrintOutputController().export(exportOptions);
    Here is the exact Exception:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: FICLDEV303VWIN.RAS.rptappserver. --- com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable---- Error code:-2147217387 Error code name:connectServer
    Caused by:
    java.lang.ClassCastException: com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable
         at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.saveContents(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.save(Unknown Source)
         at com.crystaldecisions.xml.serialization.XMLObjectSerializer.save(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.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.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.getReportByteStream(CrystalReportServlet.java)
         at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.processUsingReportExportControl(CrystalReportServlet.java)
         at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.doGet(CrystalReportServlet.java:128)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
    I
    Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
    Edited by: Dilshad Ahmed on Nov 5, 2008 5:55 PM
    Edited by: Dilshad Ahmed on Nov 5, 2008 6:09 PM

    Here is the answer. After getting ReportClientDoc from factory we need to set the DatabaseController userid and password (if report on Crystal server is accessing oracle database as datasource). In addition we need to set parameters on the ReportClientDoc for reports and subreports before doing the the export.
    Here is snippet of code: The code below is used to get ReportClientDocument and export it as PDF using bytestream.
    /* Code for getting report client document */
    private static synchronized ReportClientDocument getReportClientDocument() throws Exception
             int count = 3;
             ReportClientDocument rpt = null;
             while (count > 0 && rpt == null)
                  try
                       if (_enterpriseSession == null)
                            ISessionMgr _sessionMgr = CrystalEnterprise.getSessionMgr();
                            _enterpriseSession = _sessionMgr.logon(CRYSTAL_USERID, CRYSTAL_PASSWORD, CRYSTAL_SERVER, CRYSTAL_AUTH);
                             LOG.info("Successful Logging into Crystal Server: " + CRYSTAL_SERVER);
                             _reportAppFactory = (IReportAppFactory)_enterpriseSession.getService("", "RASReportFactory");
                             _infoStore = (IInfoStore)_enterpriseSession.getService("InfoStore");
                             IInfoObjects result = _infoStore.query("Select SI_ID, SI_NAME From CI_INFOOBJECTS Where SI_NAME = '" + CRYSTAL_REPORT_NAME + "' And SI_INSTANCE = 0");
                             IInfoObject infoObject = (IInfoObject)result.get(0);
                             _reportId = infoObject.getID();
                             LOG.info("Located Report Id on Crystal Server: "+_reportId);
                        LOG.info("Created or found CR session");
                        rpt = _reportAppFactory.openDocument(_reportId, 0, Locale.ENGLISH);
                        break;
                  catch (Exception e)
                       rpt = null;
                       _enterpriseSession = null;
                       if (--count == 0)
                            throw e;
              return rpt;
    /* report for setting parameter */
    private synchronized void setReportParameters(ParameterFieldController fieldController, String reportName,
                  String[] reportParameterValues,     DataDefController subDataController) throws SalesforceException
             try
                  Fields params = subDataController.getDataDefinition().getParameterFields();
                   for (Iterator it = params.iterator(); it.hasNext();)
                        ParameterField paramField = (ParameterField)it.next();
                        int paramIndex = getElementIndex(_reportParameters, paramField.getName());
                        if (paramIndex < 0)
                             throw new SalesforceException("Parameter not defined in the configuration");
                        ParameterFieldDiscreteValue dVal = new ParameterFieldDiscreteValue();
                        dVal.setValue(reportParameterValues[paramIndex]);
                        fieldController.setCurrentValue(reportName, paramField.getName(), dVal);
                   LOG.info("Completed setting parameters for report " + reportName);
             catch (ReportSDKException e)
                   LOG.error("Set Report Parameters error: ", e);
                   throw new SalesforceException("Set Report Parameters error", e);
         catch (Exception e)
                   LOG.error("Error from getElementIndex: ", e);
                   throw new SalesforceException("Set Report Parameters error", e);
    /* main method used to getReport based on passing information */
        private synchronized byte[] getReport(String contactId) throws SalesforceException
             try
                  String[] reportParameterValues =
                       new String[] {_sessionId, _viewId, _requestId, contactId, _language};
                   DataDefController reportDefController = reportClientDoc.getDataDefController();
                   reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:Main" : "Main");
                   setReportParameters(reportDefController.getParameterFieldController(), null,
                             reportParameterValues, reportDefController);//.getDataDefinition().getParameterFields());
                   IStrings subRepNames = reportClientDoc.getSubreportController().getSubreportNames();
                   for (Iterator iname = subRepNames.iterator(); iname.hasNext();)
                        String subName = (String)iname.next();
                        reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:" : "") + subName;
                        setReportParameters(reportDefController.getParameterFieldController(), subName, reportParameterValues,
                                  reportClientDoc.getSubreportController().getSubreport(subName).getDataDefController());//.getDataDefinition().getParameterFields());
                   InputStream is = reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
                 byte[] reportBinaries = new byte[is.available()];
                 is.read(reportBinaries);
                 is.close();
                 LOG.info("Completed exporting Crystal Report as InputStream using export() method: "+contactId);
                 return reportBinaries;
             catch (ReportSDKException e)
                   LOG.error("Report generating error: ", e);
                   throw new SalesforceException("Report generating error", e);
             catch (IOException e)
                   LOG.error("Report exporting error: ", e);
                   throw new SalesforceException("Report exporting error", e);

  • Problems exporting to PDF with AI placed files

    I have a 24 page document with placed illustrator files. When I go to export to PDF it takes hours to export. When I change all the placed images to JPG it exports fine. Anyone know why this is happening. I thought the whole point of the newer versions of InDesign was you were able to use native Adobe files.
    What are the best file types to place in InDesign?

    If would help to know versions and OS. ALWAYS tell us the version(s) of program(s) you are using, what OS, and the version of that OS. Some people overdo it with model and  speed of CPU, RAM, video card, monitor size, hard drive space, make and model of car, and shoe size. Don’t need any of that crap.

  • Problem exporting to PDF from ID CS6. Objects are missing in PDF.

    Hello!
    I created a large format poster (24x36 inches) in ID CS6 to be printed. My printer requires PDF files to print from. My problem is that when I export my ID file to PDF, objects are missing. For example, in this file, the company logo in the upper left corner of the poster is incomplete (missing the orange color fill with white text in orange circle.) This object was originally created in AI CS6 then imported to the ID document.
    I am pulling my hair out trying to fix this and have not been able to find like issues online. Any help would be GREATLY appreciated. Thank you!!!!

    The missing object is visible with Overprint Preview turned on.

Maybe you are looking for

  • Too much data for JTextArea

    Howdy people, I've been stuck on this problem for a while now. I writing a povvy hex-editor, and it works (yay!), but when I open largish files (>= 20kB) it really chokes on it. Not on the conversion from bytes to hex string, but (you guessed it) dis

  • Wrong IP Address

    I have a WRT610N v2 router (IP address is 192.168.1.1), three desktops, one laptop and one Windows Home Server. Two desktops are running Win XP and one is Win 7, the laptop is running Win 7. I am using Cisco Network Magic Pro on all of my computers a

  • I have a new Ipad 2 but I have failed to have it work. It is still showing the USB port and iTunes logo on the screen. What do I have to do?

    Dear users, I have bought an Ipad 2, but the person who brought it didnt bring the manual books so I am having to rely on the online manual. I am falining to have it work. When I turn on the Ipad, I get a screen with an image of the USB Port cable an

  • Older version's selection texts?

    Hi ,   i have transported the old version of my program but  the seletion texts  remains the ones which i changed to new ones and not the ones maintined in the old verion. How to retreive the seletion texts of old version? Is it like using language m

  • SUM VS  HUM

    What is Storage unit Management (SuM)? what are the advantages and disadvantages of SUM then HUM. can anybody explain me. Will be rewarded