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?
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.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thankyou very much, I have it working.
Regards,
Will.