Home Devices

TppBMPDevice print to stream?

edited September 2011 in Devices
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?



  • 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
  • edited September 2011
    Nico Cizik (Digital Metaphors) wrote:

    Thankyou very much, I have it working.

This discussion has been closed.