Error when Report is saved as PDF, Is there a way to open that PDF document???

Post Author: teven
CA Forum: JAVA
                                                  Currently
I have a servlet that assumes it is finding a .report and then I use
the exporter to export it as excel.  We have some reports that when
they are scheduled to run, they are saved as Excel.  How can I
programatically open that excel file from my servlet.Here is the error:
Error
An error occurred at the server : The object you
are trying to access (ID = 16109) has type CrystalEnterprise.Pdf. The Page
Server only supports objects of type CrystalEnterprise.Report. Please select a
different object. Here is the code that does the export assuming a .report is returned - thanks CrystalImageCleaner.start(getServletContext(), 60000, 12000);        HttpSession session = request.getSession();        // Get the ID of the current working report.        int reportID = Integer.parseInt(request.getParameter("ReportID"));        // Initialize the viewer.        CrystalReportViewer viewer = new CrystalReportViewer();        viewer.setEnterpriseLogon(this.enterpriseSession);        IReportSourceFactory psReportSourceFactory;        Object reportSource = null;        try {            psReportSourceFactory = (IReportSourceFactory)enterpriseSession.getService("PSReportFactory");            reportSource = psReportSourceFactory.openReportSource(reportID, java.util.Locale.ENGLISH);            viewer.setReportSource(reportSource);        } catch (SDKException e) {            e.printStackTrace();        } catch (ReportSDKExceptionBase e) {            e.printStackTrace();        }        viewer.setOwnForm(true);        viewer.setHasLogo(false);        viewer.setBestFitPage(true);        viewer.setDisplayPage(true);        viewer.setDisplayGroupTree(true);        viewer.setDisplayToolbar(true);        viewer.setOwnPage(true);        viewer.setURI("ReportViewer?ReportID="+reportID);                try {        // Make the viewer render the page.            viewer.processHttpRequest(request, response, getServletContext(), null);        } catch (ReportSDKExceptionBase e1) {            e1.printStackTrace();        }

Post Author: Ted Ueda
CA Forum: JAVA
The PSReportFactory service, CR Page Server, is only for viewing Crystal Report formats, and not instances in other formats.
For the other formats, ensure you list the SI_FILES property in the InfoStore query, then cast the resulting InfoObject to IContent.  The IContent interface support methods to stream the file content from the File Repository Server.
Sincerely,
Ted Ueda

Similar Messages

  • Barcode in BusinessObjects report becomes text when report is saved as PDF

    We have a BusinessObjects report that produces information as both text and barcodes. The barcode portion uses the "Code 3 of 9" (Code 39) font to represent the information.  When the report is saved as a PDF from BusinessObjects, the barcode portion appears as text.  Has anyone experienced this with BusinessObjects, and is there a solution?
    Thanks.
    Richard E. Adams
    Applications Developer
    Las Vegas Valley Water District
    Las Vegas, NV
    (702) 856-3627

    Post Author: Ted Ueda
    CA Forum: JAVA
    The PSReportFactory service, CR Page Server, is only for viewing Crystal Report formats, and not instances in other formats.
    For the other formats, ensure you list the SI_FILES property in the InfoStore query, then cast the resulting InfoObject to IContent.  The IContent interface support methods to stream the file content from the File Repository Server.
    Sincerely,
    Ted Ueda

  • I would like to open attachments without saving them. Is there a way to do that in Firefox like in IE ?

    It is nice to open an attachment without saving it to a specific location. I am used to doing this with Internet Explorer. However,
    it does not seem that I can do that with Firefox. Is that true or am I missing something ?

    Goto Options > Applications > Click on 'Action' of the file that you want to change the properties of to: Save File/Always Ask or choose a program to open it with.
    Click OK to save.

  • Error message in Adobe Pdf in printer device panel when trying to create a pdf document.  I have CS3

    Error message in Adobe Pdf in printer device panel when trying to create a pdf document.  I have CS3 Web Premium with Acrobat Professional 8.  I use it fine on my old computer with Windows XP.  I recently got a new laptop with Windows 7.  I installed all my Adobe programs, and I think they are working.  When I look at Adobe PDF in the device section of the Control Panel it looks okay.  But when I try to print a Word, Photoshop, or HTML page in PDF, nothing happens.  I have tried printing both as File>print and using the PDF tab on the top menu bar.  I look at the device in the control panel and it has the yellow error warning symbol and suggests trying to troubleshoot.  I look at the document list and it says status "error".  When I try troubleshooting Windows suggests doing some Home Sharing and also suggests canceling the document I'm trying to print.  I tried re-installing just Acrobat 8 from CS3 (and have to use Photoshop CS4 disk for shared documents I guess).  I ran into a can't locate adobepdf_dll file, so did a web search on this issue and found a suggestion that I find and use the adobepdf_dll_64 file and may have to (I did have to) remove the "_64" for it to work.  I think I successfully reinstalled using that dll file- no errors came up anyway.  But still when I try printing/converting a photoshop, webpage, or word document into pdf, the pdf device in control panel still gives the error status on the document and gives the same troubleshooting advice.  Help?

    I just compared the properties between the two computers.  On the old computer it has the port as "My Documents/*.pdf".  On my new computer it lists the port as "LPT1".  I tried changing the port to "Print as File", but when I try printing a photoshop picture as pdf, I get a "Access Denied".  I then tried to create a new port on the device control panel.  I tried to create a local port "My Documents/*.pdf" port but was denied.  I ten tried to create a new port type and control panel asked for an INF file.  I wonder if this is where my problem lies.  Thoughts?

  • I have Acrobat 9.5 and when I try to create pdf from scanner, it displays an error "Adobe acrobat has stopped working". Is there any way I can use this functionality?

    I have Acrobat 9.5 and when I try to create>pdf from scanner, it displays an error "Adobe acrobat has stopped working". Is there any way I can use this functionality?

    Provide you have Acrobat 9 installed in an OS for which Acrobat 9 is compatible then you can use the functionality.
    As well, you need a scanner connected, powered up, and the software installed. Acrobat 9 "prefers" TWAIN drivers.
    Always visit the scanner vendor's site and download - install the latest greatest software.
    n.b., The Acrobat 9.x product family passed into "End of Support" mid-year 2013.
    As well the Acrobat 9.x product family is not compatible with contemporary OSs.
    Be well...

  • Date not showed when report is viewed in PDF .

    Hi,
    We have a text field that shows the date on which the report is running.Date is not showed when report is viewed in PDF.But in HTML we can view them . Can any one help me out?
    Totally there are four pages for the report.

    I have observed the PDF driver iin EPM 11.1.2.x is not up-to-date and technically the Date (Text) is there just like in HTML. However, when you increase the View (Zoom in), it eventually does show up.
    I have chatted with Oracle Support, and they will not address it with a patch for now.

  • Please help.  Keep getting a conversion error when trying to convert a PDF to a .docx. Advice?

    Please help.  Keep getting a conversion error when trying to convert a PDF to a .docx. Advice?

    Sara,
    Please see my answers in bold below.
    What browser are you using? Try clearing the cache, or using a different browser. N/A
    Are you converting from within Reader, or directly via the ExportPDF website. Within Reader.I disabled the OCR and this did not work either. Try converting from within Reader, and disable OCR as detailed in this document: How to disable Optical Character Recognition (OCR) when converting PDF to Word or Excel.
    Are you on a networked computer? Make sure that there aren't any firewall/proxy settings that are preventing you from uploading files to the Internet. Not having problems uploading the file--that works fine.
    Make sure the file is within the file-size limit of 100 MB. It is <40.
    I get the error message, "File failed to be converted using Adobe ExportPDF online."
    Thanks for your help in advance.

  • Signature drop down menu greyed out. I believe it is because I saved the pdf document after placing a signature.  I'm using Adobe Acrobat Pro 9

    signature drop down menu greyed out. I believe it is because I saved the pdf document after placing a signature.  I'm using Adobe Acrobat Pro 9

    Do you mean the drop-down list that shows up when you right-click on the signature (in the Signature Panel or signature field)?
    I do not think that just saving a PDF with no changes would result in that unless you somehow flattened the PDF.
    Can you see the signature in the Signature Panel? Can you expand ([+] at left) the signature? Does the Signature Panel provide info for this signature? Is the signature validated? If "yes" then is the signature status Valid?
    It could be that when you saved the file you somehow flattened the signature, so that now you have only signature appearance in the PDF but not a real signature field which contains all signature properties. If the Signature Panel does not contain your signature (enpty if your signature was the only one) then this is the most likely cause.

  • I saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    i saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    THis is safe for Mac's? Sorry, I have just never heard of this site before.
    And there are literally tens of thousands of sites of which I've not heard, too. Not this one.
    It's legit. There are lots of links in Apple Support Communities to the LibreOffice web site, as well as others that are legitimate open-source developers of options to buying MS Office, such as NeoOffice and OpenOffice. I have Open Office installed on one of my older Macs that can't run Office 2011 and it is rock-solid.
    I've been here too long to start posting bogus urls now.

  • I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."

    I'm unable to open up Lightroom 5, I get this message in a pop up box: "Lightroom encountered an error when reading from it's preview cache and needs to quit" Underneath  that is "Lightroom will attempt to fix this problem the next time when it launches."  It hasn't, what should I do? Thanks Shawn (Irish Se7en) .

    Can you try to rename (not delete!) the folder named "YOUR_CATALOG_NAME Previews.lrdata" and restart Lightroom?

  • I set up a passcode to ensure the security of my iPhone 5 but, when I enter it on the home screen, I repeatedly receive an error message and my phone locks. Is there a way to reset the passcode when I am unable to gain access to my phone?

    I set up a passcode to ensure the security of my iPhone 5 but, when I enter it on the home screen, I repeatedly receive an error message and my phone locks. Is there a way to reset the passcode when I am unable to gain access to my phone?

    I figured that was the case, but I've used the same passcode for years and I can't seem to figure out how I managed to screw it up when I set up my phone. Without being able to access my phone for a restore, how would I accomplish this? iTunes? Thank you very much for you help!

  • Hi, All. Iam using Adobe Document Cloud. After saving a pdf document to this cloud, I am able to see my PC folders . How to disable this? Does my PC folders are also available across other PC's to access them with my Adobe ID? Please help me. Thanks

    Hi, All. Iam using Adobe Document Cloud. After saving a pdf document to this cloud, I am able to see my PC folders as well with a browsing option  . How to disable this? Does my PC folders will  also available across other PC's to access them with my Adobe ID? Please help me. Thanks in advance.

    Hi indi68632954,
    I can understand your concern & you need to worry about this, as your PC folders won't be available on other PC's as this option is just to browse through the files of the specific system on which you are working as shown in the screenshot below.
    Only the files uploaded on the Document cloud will be available over Internet using Adobe Document Cloud service upon the authentication of your Adobe ID & password.
    I hope this will answer your query.
    In case if you have any further query please let us know, we will be happy to assist you.
    Regards,
    Aadesh

  • Once I've saved a PDF document in Adobe Reader is there a way to add additional documents later?

    Once I've saved a PDF document in Adobe Reader is there a way to add additional documents later?
    If not is there a way to combine lets say 100 documents into another PDF file at once (Batch export) in PDF Pack software or do I have to add each document one by one drop and drag style?
    Thanks

    What has this got to do with Photoshop?
    In Acrobat Pro one can combine pdfs (Combine Files into PDF) and Photoshop (not in CS5, but again in CS6) offers File > Auromate > PDF Presentation to combine Photoshop files in one pdf.

  • My Pages document will no longer show up on my iPad. It shows up on iCloud and i tried to download the document on to my computer. It only gives me an error and tells me to try again. Is there some way I could recover my document?

    The other day I tried to open a document on my Pages app on my iPad. I soon notice I could no longer see it anywhere is my documents. I opened my laptop and went to iCloud.com to search for it there. On iCloud.com I am able to see the document but I can not do anything with it. I tried downloading it to my computer as a pdf. file but it just says error and to try again. I was able to copy the document but it does not allow me to download the copied document either. Is there some way I can recover the document or a pervious version of the document?

    How are you seeing your document on iCloud from your laptop? Web browser, or OS X Pages open dialog?
    If you have MS Word or .pages formatted files parked on iCloud, the web interface will not permit their download as PDF, and in fact, PDF is an inactive option in that download menu for these word processing files. There is no copy facility available, but duplicate functionality exists from the iWork category within the iCloud web presence.
    If you have Pages v4.2 or later installed on your (assumption: Mac) laptop, launch Pages and in the open file dialog, select iCloud on the dialog toolbar. Now, press and hold the option key as you drag and drop a copy of our document from iCloud to your desktop. The reverse works also.
    See if you can open that document on your laptop now.

  • I have huge lag with Safari's Reading List using a rMBP. I have probably 80 articles saved, which is likely the cause of the lag. Is there any way to export that list of articles so as to be able to delete them from Reading List but still have a record?

    I have huge lag with Safari's Reading List using a rMBP. I have probably 80 articles saved, which is likely the cause of the lag. Is there any way to export that list of articles so as to be able to delete them from Reading List but still have a record of the articles I intend to read?

    I'm currently dealing with this issue myself, except that my rMBP has NO articles in the reading list.  It's a brand new rMBP too, purchased just this week, with the 2.6 Ghz Processor & 16GB of RAM.
    Let's see what we can find.  I may just take it back to the Apple Store.

Maybe you are looking for

  • Can i connect the NI 9401 to the 9162 carrier

    Hello, can I connect the NI 9401 to the USb-9162 carrier, instead of having to buy the cDAQ-9172 for just one Module ? ciao, grazie M. Petrolekas

  • Where can I buy the Nokia 5370??

    I bought my Nokia 5320 from ebay, very satisfied with it. But I think I wanna move up, and the 5370 looked very nice from the pictures and reviews. My 5320 has survived the most vicious of falls and spills, anyone know if the 5370 is just as robust??

  • Are there any translator available in ODI?

    Hi All, My source database is in English.But the language of my target table is in French.Is it possible to load data from English source tables to French target tables?Do the English column names and data get automatically converted to French names

  • How to retrieve Rows from OATableBean

    Hi, In my OA Project, I have an OATable, and I am trying to retrieve the data present in the table, through code.. I tried using the oaTableBean.getTableData() method, but am getting 'null' all the time. Couldn't find any other function that would do

  • Message to open old FM period

    Hi, We are on ECC6 EHP 4 and implmenting the BCS part of FM. FM activation is year is 2014. I have the folllowing issue. When I tried to post the MIGO (posting date Mar 2015)entry for old purhcase order (PO date is 2 Nov 2013), I am geting error mess