How to generate a postscript file ?
I tryed
Report.DeviceType:='PrinterFile';
Report.TextFileName:='c:\temp\test.ps';
Report.PrintToDevices;
but the PS file don't seem to be valid :-(
I'm asking that because I want to convert the PS file into a PDF file
without using TExtraDevice (PDF result isn't good enought).
Report.DeviceType:='PrinterFile';
Report.TextFileName:='c:\temp\test.ps';
Report.PrintToDevices;
but the PS file don't seem to be valid :-(
I'm asking that because I want to convert the PS file into a PDF file
without using TExtraDevice (PDF result isn't good enought).
This discussion has been closed.
Comments
- Most windows print drivers generate PCL. Make sure that use a printer
driver that generates post script.
- Configure the Report.PrinterSetup.PrinterName property to use the
postscript printer
- Specify the Report.Printersetup.FileName
Try something like this...
uses
ppTypes,
ppPrintr;
myReport.DeviceType := dtPrinter;
myReport.PrinterSetup.FileName := 'c\temp\test.ps';
myReport.Print;
- There are other options for generating PDF that could test...
http://www.pragnaan.com
http://www.gnostice.com
http://www.wpcubed.com/products/wpdf/index.htm
http://www.llion.net
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com