Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to generate a postscript file ?

edited October 2006 in General
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).

Comments

  • edited October 2006

    - 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
This discussion has been closed.