Empty Report ???
Hello,
I am using Delphi 6 Enterprise (SP2) with ReportBuilder Std 6.03 under
Windows 2000.
I am also using Waler's TExtraDevices package.
I am trying to print a report to file. In my code, I have placed the
following lines:
ppReport1.AllowPrintToFile := True;
ppReport1.DeviceType = 'PDFFile';
ppReport1.TextFileName = 'c:\MyFile.pdf';
ppReport1.Print;
My USES clause contains the ppTypes unit.
When I print my report, instead of a PDF file, I get a 0 byte file named
MyFile.pdf. If I set the DeviceType to 'Screen' instead of 'PDFFile', I get
a 54 page report.
I tried printing to a text file using a DeviceType of 'TextFile' and had the
same result.
Has anyone else experienced this and how did you get around it?
Thanks in advance.
Rich Ackerson
I am using Delphi 6 Enterprise (SP2) with ReportBuilder Std 6.03 under
Windows 2000.
I am also using Waler's TExtraDevices package.
I am trying to print a report to file. In my code, I have placed the
following lines:
ppReport1.AllowPrintToFile := True;
ppReport1.DeviceType = 'PDFFile';
ppReport1.TextFileName = 'c:\MyFile.pdf';
ppReport1.Print;
My USES clause contains the ppTypes unit.
When I print my report, instead of a PDF file, I get a 0 byte file named
MyFile.pdf. If I set the DeviceType to 'Screen' instead of 'PDFFile', I get
a 54 page report.
I tried printing to a text file using a DeviceType of 'TextFile' and had the
same result.
Has anyone else experienced this and how did you get around it?
Thanks in advance.
Rich Ackerson
This discussion has been closed.
Comments
You can either do this by setting the Saved property on the desired
components or by using the Print To File Setup option from the File menu of
the designer. As far as the PDF, did you include the ExtraDev units is your
uses? I actually don't think you need the ppTypes unit here.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I completely forgot about the TXtraDev unit for the PDF file output. Also,
I thought I had set the components to export in the "Print To File Setup"
menu option - I was mistaken.
Thanks again for the help.
Rich Ackerson
"Alexander Kramnik (Digital Metaphors)" wrote
in message news:3d36c543$1@dm500....
export.
of
your