>>>Hey all, been a while since i've done much with VFP 9.0.
>>>
>>>What I want to do is create a PDF of a VFP report and specify the filename of the PDF programmatically. Surely some of you good programmers have a way or would know how to do that.
>>>
>>>Thanks
>>
>>You could try FoxyPreviewer
>>
https://www.foxypreviewer.com/p/downloads.html>
>I downloaded it, I'll see if I can figure out how to make it work. I'm not a "Real" developer, more of a guy who makes VFP do some stuff. ;)
To use it, you only need to add one line of code, and edit the line that starts the report.
DO LOCFILE("FoxyPreviewer.App")
REPORT FORM (_Samples + "\Solution\Reports\Wrapping.frx") ;
OBJECT TYPE 10 ;
TO FILE "c:\TestReport.Pdf" ;
PREVIEW
Tip: Drop the last line if you only want the PDF, no preview.