Zlatin,
I used what you suggest in workaround 1.
I created an app that accepted some parameters and produced a pdf file, and I compiled this application into an EXE. Then when I wanted to print a report from the webpage I simply started my GeneratePdf.exe and displayed the pdf either in a new browser or in the same browser window.
Einar
>Hello everyone,
>I have a simple question, that may have not so simple answer.
>I want to use FoxPro report from ASP.NET
>
>I know how to convert FoxPro report to PDF (printing to PostScript file and conversion using GhostScript)
>
>The problem is that for interoperability with ASP.NET, FoxPro classes should be build (to my level of knowledge) as multi-threaded inprocess COM Server. compilation results in DLL file. And when compiled in inprocess COM server, all classes automatically work in Unattended Server Mode (SYS(2335) returns 0).
>When FoxPro runs in this mode it cannot use the SET PRINTER Command.
>
>So problem is how to print from a FoxPro class that is used by .NET
>
>My ideas for workarounds:
>1. Printing from another COM class build as out-process COM server (EXE file)
>2. Refactor the report as crystal reports one.
>
>I would like if someone has a better idea, to share it :)
Semper ubi sub ubi.