Generate & Export PDF/CSV on the fly without holding entire contents in mem

Hello Everyone,
We are using Crystal Reports JRC (in our server side application. In a typical use-case the generated report is exported into the pdf/csv format and streamed to the client/browser.
My question is with regards to the current interface/implementation of the JRC export api(s), which returns an InputStream which is basically a ByteArrayInputStream?, Why ByteArrayInputStream ? why not a custom InputStream imeplementation which really benefits from the streaming approach, and give you the option to stream the contents as they are generated on the fly, instead of it holding the entire report contents in a byte-array, as is the case with using ByteArrayInputStream. Since, this often seems to choke our system with regards to memory footprint, when the generated report contains huge dataset.
Please comment? Is that not possible ? Is there any reason why ByteArrayInputStream is the only way to retrieve the report contents ?
Thanks,
Farhan.
Edited by: mfarhans on Feb 26, 2010 12:40 AM

We have new place called Idea Place, look up on the right hand side. Great place to add enhancement requests.
Or the link: http://www.sdn.sap.com/irj/scn/idea-place

Similar Messages

  • Generate & Export PDF on the fly without holding entire pdf contents memory

    Hello Everyone,
    We are using Crystal Reports JRC (in our server side application. In a typical use-case the generated report is exported into the pdf format and streamed to the client/browser.
    My question is with regards to the current interface/implementation of the JRC export api(s), which returns an InputStream which is basically a ByteArrayInputStream?, Why ByteArrayInputStream ? why not a custom InputStream imeplementation which really benefits from the streaming approach, and give you the option to stream the contents as they are generated on the fly, instead of it holding the entire report contents in a byte-array, as is the case with using ByteArrayInputStream. Since, this often seems to choke our system with regards to memory footprint, when the generated report contains huge dataset.
    Please comment? Is that not possible ? Is there any reason why ByteArrayInputStream is the only way to retrieve the report contents ?
    Thanks,
    Farhan.

    We have new place called Idea Place, look up on the right hand side. Great place to add enhancement requests.
    Or the link: http://www.sdn.sap.com/irj/scn/idea-place

  • I generate file (PDF, HTML, etc) the report is empty but I run in paper

    Hi
    I use oracle Report10g
    When I generate file (PDF, HTML, etc) the report is empty but I run in paper design show data, the report in the paper design show many pages, when generate file show only the information of the margin in the main seccion and the body is empty,
    Thanks

    Thanks Daniel for pointing that out.  Though you answer is helpful but I am not sure if that is what I would want to do.
    The link you provide for csv says "For each report there's an _report.xdo file that contains the XML structure of the report... "   It suggests I modify the .xdo file for each report.  I currently have 16 reports.
    Does it mean I modify the .xdo file for all 16  and what happens if someone creates a 17th report ?
    Also, what if I run the same report using different input parameters will that change the xml structure for the report  and therefore will need me to modify the .xdo again ? (I think it should not change the xml structure so the answer should be "NO" to that, unless I change the structure of the report).
    Finally, the link you provide says after doing what it suggest  "Now log back into BI publisher and select the report. You should now be able to see that CSV is now an option."
    CSV should be an option where ? on what screen/page ?  Maybe PDF is already an option for me that I cant see because I do not know where that option is.
    I was hoping there would be something I could do on the xdo_metadata sheet (in the data constraints section or elsewhere) OR in BI Publisher itself as some property of the report.
    I will try out what you suggest any ways.
    M. Jamal

  • Changing from Active to Standby in a DHCP Failover scenario (on the fly) without deconfiguring operation...

    Hi all;
    Suppose I have set up a scope in SRV01 to be in Active mode. Is it possible to change its state to Standby mode (on the fly) without deconfigurig it and then configuring it again with my desired configuration?
    Thanks
    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

    Hi all;
    Suppose I have set up a scope in SRV01 to be in Active mode. Is it possible to change its state to Standby mode (on the fly) without deconfigurig it and then configuring it again with my desired configuration?
    Thanks
    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • I purchased Adobe Export PDF Annual. The cost was 23.00 for the year but I don't need this so I'd like to cancel this subscription. How can I do this?

    I purchased Adobe Export PDF Annual. The cost was 23.00 for the year but I don't need this so I'd like to cancel this subscription. How can I do this?

    See http://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-servi ces.html
    [topic moved to Acrobat.com Services forum]

  • I got my iPhone disabled mistakenly by six trials of entering pass code. However now I remembered  my passcode so how can fix the problem without losing my contents.

    I got my iPhone disabled mistakenly by six trials of entering pass code. However now I remembered  my passcode so how can fix the problem without losing my contents.

    If your phone is now disabled, you've already lost all data on the phone...that's the whole point of the passcode, to protect the data on the phone. Your only choice now is to force the phone into recovery mode & restore it, as described here:
    http://support.apple.com/kb/ht1212
    This will remove the passcode, but also erase all data on the phone unless you have a backup to restore from.

  • Generating a PDF file from the date entered on line and serving it to user

    All,
    I need to create a page where the data will be entered by the user outside the company.
    The requirement is to create a pdf file which dynamic images and a bar code and server ir once the user clicks a button.
    In short, they do not want the user to go to the report manager or process monitor to see the image.
    Any thought on how this can be accomplished ?

    Is there a special reason to create PDF file? I have generated dynamic images and HTML content including Barcode based on user data entry on the fly.If you need more information, please contact me at [email protected]

  • Is there a way to download/view PDF files on the iPad without using another computer?

    I just recently purchased the new iPad. I have also downloaded iBooks and a PDF reader. Is there any way to view and/or download PDF files from my iPad, without using an outside computer? Please help!

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    One way is to get the GoodReader app. It has a built in web browser that allows you to web surf and download pdfs into GoodReader. You can read them in the GoodReader app or open them in other apps that can read pdfs.

  • Generating a PDF of what the user sees, and sending it as a binary stream to the server

    Hi All,
    On the final page of our Flex app, we allow the user to print out a copy of everything they've entered for their own records.
    I'm wondering if there is a way for me, programmatically, to generate a PDF document that is the same as their printout (I pass a particular container to the "print" button I've got for the user), and send those bytes back to the server.  We can store this PDF along with all the rest of their data, and it would be useful as a "snapshot" of exactly what the user saw when they submitted their application.
    I'm looking into Flex PDF generation, but so far haven't gotten this figured out.  I thought some folks here might be able to point me in the right direction.
    Thanks!
      -Josh

    Here is how you can take a snapshot.
    import mx.graphics.ImageSnapshot;
    import mx.graphics.codec.IImageEncoder;
    import mx.graphics.codec.PNGEncoder;
    import mx.utils.Base64Encoder;
    private function uploadImage(rSource:IBitmapDrawable):void
                        var tBitmapData:BitmapData = ImageSnapshot.captureBitmapData(rSource);
                        var tEnc:IImageEncoder = new PNGEncoder();
                        var tBA:ByteArray = tEnc.encode(tBitmapData);
                        var tB64:Base64Encoder = new Base64Encoder();
                        tB64.encodeBytes(tBA);
                        // send tB64.toString() using POST to the server to save the image.
    // call
    uploadImage(this) // where parameter is an object to get the snapshot of. Can be anything including Application. ("this" in my case).

  • PDF conversion on-the-fly

    Hi all,
    I'm investigating a website project where the requirement is
    to provide the ability to upload PDF documents and display them in
    Flash. I know that this kind of thing has been done with these
    'page-flip' hosted systems, but this is somewhat different. I am
    guessing, although I'm not certain, that the way to do this is to
    use FlashPaper to convert the PDF on-the-fly to SWF's which can
    then be loaded into the Flash, Flex or whatever application. I
    don't really know the mechanics of setting up FlashPaper on a
    remote server to do this though, can anyone offer some advice?
    Thanks in advance!
    Kevin

    It sounds like you want to use Acrobat as a web service. Rather than pursue this route, you may want to note that such a use of Acrobat is not permitted under the license. Thus it may not worth pursuing. Why convert to HTML is a possible question anyway, at least on a regular basis? On occasions I can understand the need.
    For programmable features you should probably check in the SDK forum.

  • Filter songs by rating (on the fly, without smart playlists)

    Is there any way (3rd party app maybe) that would allow you to live filter the displayed/played songs by rating? ie. if I have an artist selected, and all 200 songs are shown by that artist -- I would like to select on the fly to only display/play songs that are rated 2 or higher.
    Aperture has a similar function that does not require making smart lists -- "Display only 2 or higher" of the current album, etc. -- AND you can sort with a sub-filter in addition (in iTunes, I would show/play only 2 and higher, and maybe sub-sort by album, or shuffle it.)
    The only current way to do this is to create a unique smart playlist for every artist, genre, etc. that you would want to filter by rating in that way. Alternately, you can sort by rating, so the best are at the top, but with large selection of those ratings I often want to be able to shuffle the order within that selected rating range.
    This software addition would be very useful!
    Thanks for any tips...

    Merci beaucoup for the response. However, what you described in both cases are the workarounds that I described & that I've been using.
    With sort by rating solution, the music can then only be sorted by rating -- and there will be songs of lower ratings played eventually.
    Let me try to describe what I'm looking for more precisely:
    Like in Aperture, there would be a small gui selection toward the top of iTunes, and you select what ratings should be shown/played -- for example, 2 & higher. Then, there will be no songs shown/played that are below 2 stars. You can then have it play on shuffle, or sorted by other data such as artist, album, etc. -- and you will never hear a song below 2 stars.
    The smart playlist is the other workaround I've used, but it's also not the solution. It requires making a separate smart playlist for every possible artist/genre, etc. that you would want only (for example) 2 stars & above to play. For example, if on a whim I wanted to listen to all of my U2 music on random/shuffle -- I'd like to be able to just select Artist-->U2, and with the 2+stars GUI selection, I know I will never hear anything below 2 stars -- *without* having to take the time to make a smart playtlist for this random & rare mood. If I suddenly want a even higher selection of U2, I just click the 3stars GUI selection, and the shown & playable songs instantly update. No need to always have to create & edit smart playlists for such random selections...
    This interface works extremely well in Aperture - I wish they'd migrate it over to iTunes!
    I hope I'm clearer now... Thanks again

  • Hyperion Reports v 2.6 generating/exporting PDF's

    I've got Reports installed with a printer and I have Adobe Reader 6--which says it's capable of generating PDF's however on the Reports instsall it's not an option for PDF generation. Does Reports come with a PDF writer or is that something extra that I've got to buy? If it does come with a PDF writer is there something else I have to do to get Reports to generate a PDF?This is the error message I get: Error while saving as PDFCould not find information about PDF generation for instance number: Thanks,Mary Ann

    We installed Adobe Acrobat Writer/Distiller on our Reports Server and then pointed Reports to Acrobat for the generation of PDF's.You might want to check on Reader having the ability to generate PDF's, I was not aware Acrobat reader could generate a PDF. It certainly goes against the naming convention (i.e. a reader should only be capable of reading)Good luck.

  • When trying to export pdf to .docx the text doesn't convert. how do I remedy this?

    How do I get exported pdf to copy exact document, text, graphics and all?

    Hi hamsa142,
    I'm sorry that you're having trouble converting your PDF files to Word. I see you posted a similar question earlier. Please try disabling OCR as outlined here: How to disable Optical Character Recognition (O... | Adobe Community
    Let us know how it goes.
    Best,
    Sara

  • Can CF8 create pdf's on the fly?

    For example I want to create pdf's that render different information based on the user.
    I have a 2 page set pdf that all users will see, but I want the info that populates the right column on first page to be dynamic based on the user.
    Only the right column on the first page is dynamic and is based on the user , everything else would be the same.
    Its kind of like using a cfinclude on a regular cf page.
    Does this same kind of logic apply to creating PDF's?

    Yes, CF 8 has several functions that allow for the dynamic creation of PDF documents.  The documentation had all the details.
    Manipulating PDF Forms in ColdFusion
    http://livedocs.adobe.com/coldfusion/8/htmldocs/formsPDF_01.html#130281
    Assembling PDF Documents
    http://livedocs.adobe.com/coldfusion/8/htmldocs/cfpdf_01.html#160527
    Also here is a nice Blog series that discuess some of the features:
    ColdFusion 8: Working with PDFs (Part 1) (July 9, 2007)
    ColdFusion 8: Working with PDFs (Part 2) (July 10, 2007)
    ColdFusion 8: Working with PDFs - A Problem (July 12, 2007)
    ColdFusion 8: Working with PDFs (Part 3) (July 13, 2007)
    ColdFusion 8: Working with PDFs (Part 4) (July 13, 2007)
    ColdFusion 8: Working with PDFs (Part 5) (July 17, 2007)
    ColdFusion 8: Working with PDFs (Part 6) (July 21, 2007)
    ColdFusion 8: Working with PDFs (Part 7) (July 24, 2007)
    ColdFusion 8: Working with PDFs (Part 8) (July 30, 2007)

  • Export PDF form to MS Excel. Losing field contents

    Hi there,
    I'm using Adobe Acrobat X Pro.
    I'm trying to export a PDF form into MS excel for further manipulation, but it seems that Acrobat is unable to export everything into Excel.
    Here what I have done:
    "File"> "Save as">"spreadsheet">"MS excel workbook". then I will save onto desktop.
    when I open it up in MS excel, i only see the form fields but not the content.
    Can anyone help? Is this a acrobat issue or excel issue?
    Thanks

    Try flattening the form before exporting to Excel. You can do this via PDF Optimizer, Preflight, the following JavaScript that you execute in the interactive JavaScript console (Ctrl+J):
    flattenPages();
    by placing the cursor on that line and pressing Ctrl+Enter, or Enter on the numberic keypad, or by using this free JavaScript-based tool: http://www.uvsar.com/projects/acrobat/flattener/

Maybe you are looking for

  • Ap_liability_balance replacement in R12

    Hi All, We want to get AP trial balance in discoverer report. in 11i we were using a table ap_liability_balance, but in R12 its absolute. Can anyone please help us find the replacement table in R12 or a workaround to get the AP Trial Balance? Thanks

  • Need OS disk for macbook pro mid 2010

    The hardest part of holding on is letting go. This is how I feel about my MacBook pro mid 2010 edition. I have been having issues with it so I neglected it for some time. I put in a new hard drive and then installed Yosemite. It runs a little slow bu

  • How to get "old" driv

    I have installed the latest drivers for my Audigy2pex, and experiencing problems with music studio independence. For testing purpose I?d like to install one version earlyer; where can I find them. (I dumb erased them after the new one was on my HD)

  • No line item display possible for account

    Hi Guys No line item display possible for account in FBL3n T code

  • Character encoding issue in sql server

    Hi Team, We have a table with more than 20 columns...In that we have some columns which will have data extracted from the Datawareshouse applicances and its one time load. The problem is we have two columns which will may have same set of values from