You can do this in a VFP mtdll by calling a VFP EXE COM server. I've been playing around with creating PDFs from VFP reports with GhostScript on a web server and it works really well. Here's a description of the problem and the solution:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q191639& >I've been wanting to create a web service that produces reports
>but don't think it's possible. I.E. REPORT FORM command not avaiable in OLEPUBLIC classes. My workaround was to create a "print server" application that runs on the web server.
>
>Is there any way a .NET application can print a report done in VFP?
>Is there a special way I can make a web service in VFP that can print a report.
>
>In VFP8 will it be possible to create a OLEPUBLIC class that prints reports i.e. a web service?
>
>BR
>Tim