I've tried setting showPrintDialog before and the print dialog don't show indeed, but the "PDF Export Setup" shows up everytime. When I try printToDevices nothing happens.
The example on rbWiki should work correctly. It uses RB's built-in PDF export. Download and give it a try.
RB does not have a PDF Export Setup dialog. Perhaps you are using an RB add-on to do the PDF export? If so, then you try contacting the publisher of the component to ask about suppressing their dialog.
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
I'm working on something similar right now.
Create the required devices (TppPDFDevice) prior to printing, then call
TppReport.PrintToDevices;
Here's a quick example:
lDevice := TppPDFDevice.Create(self);
lDevice.FileName := ...
lDevice.OtherSetting :=...
lDevice.Publisher := ppReport1.Publisher
ppReport1.PrintToDevices;
lDevice.Free;
Ed Dressel
http://www.digital-metaphors.com/rbWiki/Output/PDF/PDF_Fundamentals
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I've tried setting showPrintDialog before and the print dialog don't show
indeed, but the "PDF Export Setup" shows up everytime.
When I try printToDevices nothing happens.
Thanks
The example on rbWiki should work correctly. It uses RB's built-in PDF
export. Download and give it a try.
RB does not have a PDF Export Setup dialog. Perhaps you are using an RB
add-on to do the PDF export? If so, then you try contacting the publisher of
the component to ask about suppressing their dialog.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
longer use.
Thanks and sorry for the mistake.