I need to output a report in PDF format so that I can email the letter (report) to someone. Is it possible to create a report in PDF format? I've looked at the 'Report form' command and you can only output your report to an ASCII file format.Download the free Bullzip PDF printer driver from
http://www.bullzip.com/products/pdf/info.phpThen you can use code like this to create your PDF:
LOCAL lcPrinter, lcDestFileName, loObj
lcPrinter = "Bullzip PDF Printer"
lcDestFileName = "c:\temp\ExampleOut.pdf"
IF FILE(lcDestFileName)
DELETE FILE lcDestFileName
ENDIF
loObj = CREATEOBJECT("BullZIP.PDFPrinterSettings")
loObj .SetValue("Output",lcDestFileName)
loObj .SetValue("ShowSettings" ,"never")
loObj .SetValue("ShowPDF" ,"no")
loObj .WriteSettings(.t.)
SET PRINTER TO NAME (lcprinter)
REPORT FORM MyReport TO PRINTER NOCONSOLE