Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Save archive to stream

edited April 2006 in General
Howzit,

How do i print an archive directly to stream. Currently, i am:

Report.ArchiveFileName := lFileName;
Report.DeviceType := dtArchive;
Report.Print;

then reading the file to stream, but i would like to avoid creating any
files.

Regards,
Gilbert

Comments

  • edited April 2006
    Hi Gilbert,

    Which version of ReportBuilder are you using? Starting with RB 9.01 each
    file device descends from the TppStreamDevice. This allows you to define
    the OutputStream property of each device and generate directly to that
    stream. Take a look at Demo 109 in the \RBuilder\Demos\1. Reports...
    directory (dm0109.pas) for an example of how a PDF file can be exported
    directly to a stream. The same concept applies for the Archive Device.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2006
    Thanks Nico, i will look for that. Using RB10.01.

This discussion has been closed.