Saving PDF file
Hi
D4, Report Builder 6 with TExtraDevs
When a report print device type (such as PDFFILE) is selected, is it
possible to automatically save the result to a code defined file name
without displaying the printer dialogue screen to the user?
Manuy thanks
Regards
Glenn
Key-Data systems
D4, Report Builder 6 with TExtraDevs
When a report print device type (such as PDFFILE) is selected, is it
possible to automatically save the result to a code defined file name
without displaying the printer dialogue screen to the user?
Manuy thanks
Regards
Glenn
Key-Data systems
This discussion has been closed.
Comments
var
lDevice: TPDFDevice;
begin
lDevice := TPDFDevice.Create(nil);
lDevice.Publisher := ppReport1.Publisher;
lDevice.PageSetting := psAll;
lDevice.FileName := 'C:\report.pdf';
ppReport1.PrintToDevices;
lDevice.Free;
end;
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
but I get the error message
[Error] Unit1.pas(32): Undeclared identifier: 'TPDFDevice'
Do I need to add something to the uses section?
Regards
Glenn
Key-Data Systems
unit and add it to your uses clause.
Ed Dressel
Team DM
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com