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

TppBMPDevice print to stream?

edited September 2011 in Devices
Hello,
I'm in the process of throwing out TExtraDev in favour of the built
in devices. One thing I'm having trouble with is printing a
TppBMPDevice to a stream. Can it be done where no file is necessary?

Regards,
Will.

Comments

  • edited September 2011
    Hi Will,

    It is possible to save any file type to stream using the TppStreamDevice
    class which is a common ancestor to all file devices.

    Simply assigning the Device.OutputStream to a memory stream for instance
    will automatically export the report to that stream.

    Note that the image devices save each page as a separate image. You
    could use the ImageDevice.OnSaveImage event to re-assign the
    OutputStream for each page or move the stream content as needed.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2011
    Nico Cizik (Digital Metaphors) wrote:


    Thankyou very much, I have it working.

    Regards,
    Will.
This discussion has been closed.