>Hi All,
>
>I am trying to come up with a method whereby I can print a VFP report and 1 to many PDFs within a single print job. I wish to do this so as to be able to have the printer staple all of the pages together.
>
>I imagine that I can probably find a pdf creation tool (a pdf printer I can print to) that can achieve this but is there a cleverer way using NOPAGEJECT and then outputting the pdfs to the print job, also without ending the print job (until the last pdf).
>
>I want to avoid having to output the VFP report to PDF as it has trutype barcodes on it and they don't scan when converted to pdf.
>
>Cheers,
>Jamie
Hi Jamie,
Check FoxyPreviewer
The usage for your purpose is realy very simple:
LOCAL loReport AS "PreviewHelper" OF "FoxyPreviewer.App"
loReport = CREATEOBJECT("PreviewHelper")
loReport.AddReport(_Samples + "\Solution\Reports\colors.frx", "FOR Client = 'VFPx' ")
loReport.AddReport(_Samples + "\Solution\Reports\Precent.frx")
loReport.cDestFile = "c:\my1stSample.PDF"
loReport.RunReport()
All you need to do is to distribute one single file, FOXYPREVIEWER.APP
If you need to export just one FRX, it's even simpler:
DO FOXYPREVIEWER.APP
REPORT FORM YourReport OBJECT TYPE 10 TO FILE "c:\my2ndSample.PDF"
That simple!
Please check the documentation for more options, etc
HTH