How to the File Type Selected when Printing To a File
Hi
Using RAP I need to be able to identify the file Type a user has selected
(i.e. Text File, BitMap File, XLS Data File etc..) on the Print Dialog when
using the 'Print To File' option. Is this possible from within RAP ? If so,
which event should I use and how can I obtain this information.
Thanks
Stuart
Using RAP I need to be able to identify the file Type a user has selected
(i.e. Text File, BitMap File, XLS Data File etc..) on the Print Dialog when
using the 'Print To File' option. Is this possible from within RAP ? If so,
which event should I use and how can I obtain this information.
Thanks
Stuart
This discussion has been closed.
Comments
Try using the Report.OnFileDeviceCreate event.
Example:
begin
if (Report.FileDevice is TppPDFDevice) then
ShowMessage('PDF');
{ or this }
ShowMessage(Report.FileDevice.ClassName);
end;
There is also a Repot.FileDevice.DeviceName property that is public.
However, it is not currently defined to the RAP RTTI. You could however
extend RAP with a custom function or custom RTTI to gain access to it.
http://www.digital-metaphors.com/rbWiki/RAP/Extending_RAP/Overview
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com