Home Devices

Exporting To Devices

edited June 2004 in Devices
I need help!

Here's what I have. I have a report server that we wrote that uses the
PrintToDevices method. We've setup a TppDevice component that has it's
OnPageReceive event set to capture each individual page and save it to a
database field. Each record contains a page number and the page itself as a
BLOB. On the client side the program says send page 1 over, and the server
will locate that page in the database and send it to the client. While this
is happening the pages are continuing to be generated to the table. Now
what I need to be able to do is after a report has been completely generated
to the table, I need to be able to export all the pages in the table to any
of the other formats such as PDF or Excel. When I want to print the report
I just loop through the table and send each page to a TppPrinterDevice
object. Basically I need to re-assemble all the pages back into a report
and then export that report to a PDF or Excel. I have installed the trial
version of Pragnaan's ReportBuilder components, but have been unable to get
this to work. If anyone has any ideas of how to send each page to an export
device that would be great.

David Looney

Comments

  • edited June 2004
    You can try TExtraDevices for this. I have sample code on the FAQ that shows you how to assemble
    subreports on the fly and create a single export file.

    James Waler
    Waler Ltd
    http://www.waler.com
  • edited June 2004
    Well I'm not really doing subreports, I'm just doing one report and saving
    all the pages from the report into a table but it's still one report.

    David

  • edited June 2004
    Subreports will allow you to combine the single pages back into a single report
    easily. In what format are you saving the pages?

    James Waler
    Waler Ltd
    http://www.waler.com
  • edited June 2004
    When a page is received it is placed into a memory stream and then saved to
    a BLOB field in the table.

    David

  • edited June 2004
    Hello David,

    While you are looking for solutions to export your RB reports, you would NOT
    want to ignore eDocEngine. eDocEngine provides unmatched flexibility and support
    for exporting reports. With regard to your needs, you can combine multiple
    reports (or saved .raf files) into a single output file (PDF, Excel, HTML...);
    export selected pages of a report and so much more.

    To get a quick feel, please try exporting your RB report using this EXE
    demo(save your report as .raf, load and export in the EXE demo):
    http://www.gnostice.com/edocengine/download/ext/edoc_rb_demo.zip

    For a full feature trial version, please log on to:
    http://www.gnostice.com/


    Why eDocEngine is the preferred solution for exporting reports?
    ===============================================================
    * Supports exporting to over 20 popular formats, including PDF, RTF, HTML,
    Excel, TIFF, SVG, PNG, JPEG, Metafile and many more.

    * Integrates tightly with your reporting tool to enable CODE-FREE
    configuration and execution at design-time as well as run-time.

    * Allows for extensive configuration of exports through vast set of
    intuitively named and grouped properties.

    * Charts and Metafiles are rendered as vector graphics to ensure sharp,
    scalable graphics in the generated PDF, RTF and other supported formats.
    Vector graphics also ensures files are extremely compact and easy to
    distribute.

    * Supports RichText rendering as RichText (not image) in all document
    formats ensuring crisp documents that can be text searched and enlarged
    without loss of quality.

    * PDF engine supports full set of advanced features including, compression,
    encryption, TrueType fonts, font embedding, font sub-setting,
    international characters (European, Chinese, Japanese...), bookmarks,
    notes annotations and more.

    * All standard and custom controls are exported, WITHOUT the need for
    extra coding on your part.

    * Excel and all spreadsheet engines support intelligent cell formatting
    enabling values to be encoded in the correct format, automatically.

    * Supports End-User configuration of exports through *customizable*
    run-time dialogs.

    * All engines of eDocEngine are highly optimized for HIGH-SPEED export
    of reports.

    * Highly flexible architecture enables custom programmatic exporting. For
    example, you can combine multiple reports then insert your own custom
    page (using the eDocEngine API), then append a few more reports and
    make a single output document of them.

    * And much, much more...

    --
    Girish Patil
    Gnostice Information Technologies www.gnostice.com
    ---------------------------------------------------------------------
    Gnostice eDocEngine (http://www.gnostice.com/edoc_engine.asp) -
    Electronic document creation, PDF eForms and report export components

    Gnostice PDFtoolkit (http://www.gnostice.com/pdftoolkit.asp) -
    PDF document management and PDF eForms processing components
    ---------------------------------------------------------------------

This discussion has been closed.