View .rpt in pdf format (not generating a file on disk)

Hello
I have a servlet who should view a .rpt file in a pdf view (.i don't want to generate a .pdf file on the disk)
I've tried with this code (not sure if it is the right way):
response.setContentType("application/pdf");
               try {
               OutputStream out = response.getOutputStream();
               ReportClientDocument reportClientDoc = new ReportClientDocument();
               reportClientDoc.open("ExportReport2.rpt", 0);
               ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) reportClientDoc
                         .getPrintOutputController().export(ReportExportFormat.PDF);
               reportClientDoc.close();
               byte byteArray[] = new byte[byteArrayInputStream.available()];
               ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(
                         byteArrayInputStream.available());
               int x = byteArrayInputStream.read(byteArray, 0,
                         byteArrayInputStream.available());
               byteArrayOutputStream.write(byteArray, 0, x);
               out.write(byteArray);
               byteArrayOutputStream.close();
               byteArrayInputStream.close();
               out.flush();
               out.close();
          } catch (ReportSDKException e1) {               
               e1.printStackTrace();
Browser: Mozilla Firefox; webServ: Tomcat
It doesn't give any error but the browser window is "blocking" in a way ...it doesn't show anything.
Thank you.

Gerry Brown wrote:
"from that page" does not make sense.
The file exists in a folder on your machine, correct?
If not, you need to download the file from your bank. Or use "Save as" in the browser.
No the file is on the Webpage he is visiting.
@ OP Right click on it and select Save File As. then save it to your HDD. Then open it.

Similar Messages

  • Opening bank data files in a PDF format not working, the file defaults to Quicktime and only displays one page.

    Opening bank data files, while logged into the bank or brokerage sites, by clicking on the PDF or file name icon, is supposed to open in PDF format but instead opens only a single page in Quicktime. This also happened several years ago in Leopard and required the removal of Quicktimeplugin.plugin. I have tried doing that in Lion with no success. Any thoughts?

    Gerry Brown wrote:
    "from that page" does not make sense.
    The file exists in a folder on your machine, correct?
    If not, you need to download the file from your bank. Or use "Save as" in the browser.
    No the file is on the Webpage he is visiting.
    @ OP Right click on it and select Save File As. then save it to your HDD. Then open it.

  • While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra positi

    While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra position and also pdf generated from this word file also contains the same.

  • Customized Seeded report to XMLP report but its not generating output file?

    I want to customize "Dunning Letter Print from Dunning Letter Generate" Report, which is called from "Dunning Letter Generate" Report
    Steps i followed to Customize reports are.
    1. Changed output format to xml for "Dunning Letter Print from Dunning Letter Generate" Report.
    2. Ran report to generate xml data and using xml data created RTF file
    3. Registered data definition and template with code and short name same which is ARDLP_NON_SRS
    Now while i am running report its completing normal, but its not generating output file giving Error like –
    "Unable to find Published Output for this request"
    “No Output File Exist for Request No - xxxxx”
    No Idea why its not picking template, Can anyone help me in this?
    Using:
    Oracle Applications : 10.0.5.2,
    MS Word 2007
    Thanks,

    I am not giving the solution, providing you a hint..
    This is the query you need to satisfy,
    SELECT NVL(R.DESCRIPTION ,CP.USER_CONCURRENT_PROGRAM_NAME)
    FROM FND_CONCURRENT_REQUESTS R, FND_CONCURRENT_PROGRAMS_VL CP,XDO_DS_DEFINITIONS_B XDS
    WHERE ( ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'U'
    AND R.REQUESTED_BY = :$PROFILES$.USER_ID ) or
    ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'R'
    AND R.RESPONSIBILITY_ID = :$PROFILES$.RESP_ID ) )
    AND R.PROGRAM_APPLICATION_ID = CP.APPLICATION_ID
    AND R.CONCURRENT_PROGRAM_ID = CP.CONCURRENT_PROGRAM_ID
    AND XDS.APPLICATION_SHORT_NAME=
    ( SELECT APPLICATION_SHORT_NAME
    FROM FND_APPLICATION
    WHERE APPLICATION_ID=CP.APPLICATION_ID)
    AND XDS.DATA_SOURCE_CODE = CP.CONCURRENT_PROGRAM_NAME
    AND R.OUTPUT_FILE_TYPE='XML'
    AND R.STATUS_CODE not in ('E', 'D', 'T', 'X')
    ORDER BY R.REQUEST_ID DESC
    Go to system profiles and query for 'Concurrent:Report Access Level', responsibility you need and modify the profile name accordingly....

  • Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?

    Save as Reduced Size PDF and Save as Optimized PDF do not reduce the file size.  What gives?  I used Acrobat 9 to do this for a long time.  I recently received new laptop loaded with with Acrobat 10 and it does not work the same.  I typically scan 8-10 pages of receipts, combine the files in Acrobat, and then optimize to reduce the size so I can upload with my expense report.  Typically, my files were reduced to 200-400 KB.  I have a 2 MB file that will not reduce at all.

    Bernd, thank you for your attempt to help but the option dialog windows do not contain the same options.  There are numerous other posts on this forum about this issue and there is no answer.  Clearly, there is an issue.  I have submitted this issue to our internal help desk.

  • Reloaded Photoshop CS5 (New Machine) and now it won't open, geta message "Could not open scratch file because disk is not available", so pS won't go any farther.

    reloaded Photoshop CS5 (New Machine) and now it won't open, get a message "Could not open scratch file because disk is not available", so pS won't go any farther.

    If prefs are the same as Settings on a MAC, OK, it would have been more 
    clear to me if you had said Settings since I didn't see anything related to 
    prefs. On a PC, I know what you mean, On a MAC, wasn't sure.
    In a message dated 4/9/2015 9:13:48 A.M. Eastern Daylight Time, 
    [email protected] writes:
    reloaded  Photoshop CS5 (New Machine) and now it won't open, geta message
    "Could  not open scratch file because disk is not available", so pS won't go
    any  farther.
    created by c.pfaffenbichler
    (https://forums.adobe.com/people/c.pfaffenbichler)   in Photoshop for Beginners - View the full  discussion
    (https://forums.adobe.com/message/7421714#7421714)

  • Photoshop cse 5 error "Could not open scratch file because disk is not available" using Maverick

    I am getting the following error:
    "Could not open scratch file because disk is not available"
    I am using Adobe Photoshop CS5 on the Mac Operating System "Maverick". The application is currently loaded on an external bootable drive. I created an external bootable drive using "Disk Utilities". I've changed the directory /private/ to 777 using the following command "chmod -R 777 /private/". I have created the external bootable drive in the event that my current internal drive crashes. I would just then have to swap the drives out. I created the external bootable drive using DYNEX SATA Hard drive enclosure.
    Photoshop General Discussion

    I searched around and found the answer. My question was to specific. Jim Olvera had the same problem and this was the solution with the help of Adobe Support.
    OS X Mavericks. I was able to resolve it after a chat discussion with Adobe support. It is indeed a permissions issue apparently, but not one that can be resolved with Disk Utility. I was able to change to another scratch disk by holding down "Command + Option" as I launched Photoshop, and that did it. Still can't use the previous disk as a scratch, though, even though permissions have been repaired.
    JO
    Thank you for your suggestion, but I could not even get to the point where "Photoshop" would even open up.
    Thank you everyone!

  • PDFs are not generated from Burst

    Hi all
    I am getting this error when i schedule my report to run:
    Document generation failed
    [INSTANCE_ID=V110APLFFC006.1305547398367] [OUTPUT_ID=1035][ReportProcessor]Error rendering documentoracle.xdo.servlet.scheduler.ProcessingException: [ReportProcessor]Error rendering document
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.renderReport(BurstingReportProcessor.java:455)
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.onMessage(BurstingReportProcessor.java:127)
    at oracle.xdo.enterpriseScheduler.util.Checkpoi
    This is my bursting delivery query below (which took me a loooong time to figure out!). I am bursting to the file system on the OBIEE server. Funnily enough when i change the output format to RTF, then the bursting works perfectly, but if i change it to PDF, i get this error. I have looked and looked for a reason as to why this happens but i have no idea. I can see in the job history that the data is split correctly and i can see that it generates the documents (they are shown when i click on Republish). Please if anyone has any idea, please reply - i desperately want to get this working, and i have no idea why it doesnt work.
    I have checked the logs and it seems that everything generates correctly, and when i open the .out files produced in AdobeReader everything opens successfully and the document has the correct information. It is also not related to permissions on the folder specified in the bursting query -> if i use the runReport webservice for the same report and specify C:\Temp as the output path ( and pdf as the attributeFormat), the file is written out correctly. It seems that the problem is with writing out more than one pdf file, but why???????? Not sure if it has anything to do with the scheduler at all ( i run the report by using the RunNow option in the scheduler)?
    Thanks very much for any and all help!
    SELECT nvl("NAME",0) KEY,
    'OIC' TEMPLATE,
    'en-us' LOCALE,
    'PDF' OUTPUT_FORMAT,
    'FILE' DEL_CHANNEL,
    'C:\Temp\' PARAMETER1,
    "NAME" PARAMETER2
    from
    (select "EXT"."NAME" as "NAME",
    "RES"."AT12" as "AT12"
    from "JM"."EXT" "EXT",
    "CN"."RES" "RES"
    where "RES"."AT12" = "EXT"."ID" )

    HI,
    Kidnly check whether Cost Center is maintained in the Work Center which is attached in the Maint. Plan
    Regards,
    Chandru.

  • View report in pdf format

    Hi. (OBIEE 11g)
    I've integrated a BI Publisher report (xdo) in a OBIEE Dashboard. I want to see the pdf with the largest width by default. Can I do it ?
    Now, I see the pdf report with the single-page mode.
    Thank you Bye
    R.

    Not sure if I understand you correctly but you can setup concurrent requests output to different viewer types by referring to:
    Note: 184375.1 - How to Setup The Report Output to Different Viewer Types in Oracle Applications 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=184375.1
    For printing in PDF format, please refer to:
    Note: 333504.1 - How To Print Concurrent Requests in PDF Format
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=333504.1

  • Could not display output in PDF format from a RDF file

    Hi all,
    I'm calling a report file (.RDF) from the browser using RWCGI.EXE, and specified the output in PDF format, but it always asking me to download the active-X for the PDF file generated by the report. I have Adobe Acrobat Reader installed on my machine, what could be the problem?
    thanks in advance.

    I had the same problem.
    As a quick fix, what I enventually did, if you are using WebDB and CGI, is to create an alias in the cgicmd.dat file.
    It worked after.
    Example of line:
    ===============
    web41pdf: report=web_41.rdf server=Rep60_Z11734 userid=DEMO6I/DEMO6I@PERSOEM destype=cache desformat=PDF tolerance=1440
    Then you call the URL http://<web site>/rw60cgi?web41pdf
    Yet I would be glad to understand why I also get this message.
    Philippe Dalmas.

  • View xml in pdf format? - Please help-

    I have a webpage that has a link that directs customers to a pdf form I created with Adobe Designer 7.0 and when the customer is done filling out their information in the form and click's the submit email button. It comes to my inbox in an .xml! is there a way I can have it to where the file comes as a .pdf or can I jus convert the .xml into a word .doc or .pdf?
    -Thank You SOoo Much!-

    >In your opinion, why is it better to work with the .xml data instead of emailing the forms back and forth as a .pdf?
    1. XML is a standard format and many programs can read the data from
    XML. So if you work with XML it allows you more flexibility,
    especially to reprocess all the saved e-mails.
    2. The free Adobe Reader can't submit in PDF format unless the PDF
    file is specially prepared, on which there are contract limitations.
    3. PDF files will be much bigger than the XML, resulting in bigger
    e-mails.
    That said, e-mail it self is very limited, and not recommended for any
    serious use. Submitting forms to a web server is recommended, but does
    need a web programmer.
    Aandi Inston

  • How to display webdynpro view data in PDF format.

    Dear All,
    Greetings!!!
    scenario :
    i am having five tabstrips  in a table , first four for the different kinds of data
    and fifth one is for to display all tabstrips data in a PDF format.
    Kindly let me know how to acheive this .
    is it possible with out ADLC..?  any demo or article is available for similar requirement?
    Thanks in Advance.
    Best Regards,
    Kranthikumar Palle.

    It's better to use the Adobe form to display your WD data. But you can choose Smartform as a PDF doc to display the WD data.
    Check out the thread [Display a Smartform as PDF document in WD ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785] for more details.

  • File Content Conversion Problem of not generating empty file

    Hi All,
    i have 3 input text files for my BPM to process.
    if any of the text file is empty, i need to generate an alert message that the file is empty........but the problem is file adapter does not generate a XML message for the empty text file..........
    <b>Can anybody suggest how to generate the alert if any of the 3 text files is empty.</b>
    Thanks,
    Rajeev Gupta

    Rajeev~
    I dont find ur mail Id in ur Business card.Post the same..I will send you across a PDF with steps to write a adapter module.You would need to extend the same to check the payload for empty data and accordingly create a XML payload with checkpointer.
    For validating this value in a BPM use the FORK step and check the payload in the condition editor.
    Refer to this url for the same.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/bb/e1283f2bbad036e10000000a114084/content.htm</a>

  • How do you set the default view of a PDF portfolio to be the Files mode?

    I can set my personal view of portfolios to that, but if another user opens it, it shows the preview mode. It needs to be accessible, and I read Files mode is the only way. We want to load a PDF portfolio onto our internet for anyone to view, but it needs to open in the Files mode. Thanks

    I have done this.
    Have a hidden input field on form  <input name="ZoneExpiry" id="ExpiryDate" />
    Then have a function as follows:
    var dat=new Date();
                                                      dat.setDate(dat.getDate() + 365);
                                                      var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
                                                      var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();   
                                                      jQuery("#ExpiryDate").val(pretty);
    Hope this helps.

  • RoboHelp HTML does not generate .chm file

    We have a large help system for F1 help with about 2,000 help
    topics in about 50 different Word .doc files. We had used RoboHelp
    for Word previously, but with the goal of generating a single .chm
    help file, we tried using RoboHelp HTML to change the Word .doc
    files to .htm files. RoboHelp HTML does this conversion and creates
    2,000 .htm files.
    When we try to generate the .chm file for the help system,
    RoboHelp for HTML does not respond and does not create the .chm
    file. Is RoboHelp HTML not capable of handling such a big help
    system? Are there any workarounds to generate the .chm file
    successfully?

    Peter, thanks for your input. Here's where we are. We opened
    RoboHelp HTML and converted the Word docs into .html files. Then we
    were able to generate the .chm file (it worked this time) using
    RoboHelp HTML. We have about 50 .gif images, and no external links.
    The actual number of HTML files with help topics is close to
    4,000 for this F1 field help in our application. Ideally, we would
    love to have a master project with sub-projects, but it doesn't
    appear as a practical alternative. The .hh file (for F1 field help)
    is generated from the application by the developer and given to us.
    In order to have a master project and slave projects, we
    would have to manually split that automatically-generated.hh file
    into individual .hh files, true? That means we would have to
    correlate which .html help topic file corresponds with which map id
    number, then chalk out how we want to divide the .html help topics
    into individual projects that correspond to their .hh files?
    This help system I inherited is 10 years old, and the
    resource time we would spend (if we chose to modularize this help
    system) would be gigantic in scope. If there is a simpler and
    efficient way to modularize our F1 help system, I would love to
    hear about it!

Maybe you are looking for

  • Macbook very slow when estimate time for indexing

    Hello, Spotlight is often trying to index my macbook. I always see the message "estimate indexing time". I never see Spotlight actual indexing. When Spotlight is doing this, my macbook runs extremely slow. Spotlight is doing this once a day for at le

  • How to maintain the Fixed Vendor

    Hi, As I know Fixed Vendor always maintained in source list, but is there any other place we can maintain the fixed vendor. My PR is having 2 line items, non of them is maintained in source list but, one of them is automatically have fixed vendor num

  • Problem with Function module PTRA_WEB_ADVANCES_SAVE

    Hi Friends, We are posting advaces to this function module: PTRA_WEB_ADVANCES_SAVE thru ASP.Net developed application. while calling this function module thru RFC saying error is ' RFC called failed. RFC error status19 '. what might me the reason for

  • How to skip first records while reading a csv file

    Hi, How to skip the first 5 records while reading csv file. I have a file which contains first 5 records as dummy records, I want to skip those records and load the rest into RDBMS. How to achieve this? Thanks, Naveen Suram

  • HT1430 I cannot get email on the ipad, although I still get mail on my iPhone.

    Have been getting email with no problem for eight months. Still get mail ok on the iPhone, but not on the pad. Apple claims my service period has expired, even though the pad is less than a year old (4 months less)