Figured it out.
I didn't have the PDF page configured in the control center.
All is working now.
Sent by irace_z28 on 12/14/2011 03:11:07 PM:
After further debugging, I saved the file, opened it with Notepad, and noticed the first line of the file reads %!PS-Adobe-3.0. I'm assuming this should be %PDF?
Sent by irace_z28 on 12/14/2011 02:35:42 PM:
When I run the sample code...
M.TempFile = fwPDF.GetTempFile()
USE address SHARED
* Generate the PS, or PDF file
REPORT FORM address NOWAIT NOCONSOLE TO FILE (M.TempFile)
* Send the file to the browser for in-browser display
fwPDF.SendPDF(M.TempFile, , .T., fwPDF.PS2PDFMethod <> 0, .F.)
I get the follow error...File does not begin with '%PDF-'
Is there a solution for this?