Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning PDF files over VFPCGI.EXE
Message
 
To
03/04/2003 13:42:01
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00773221
Message ID:
00773793
Views:
10
Yes, you can run it from a VFP MTDLL. The trick is to create a .VFP. COM EXE server that has the Report command and call that from your .VFP. mtdll - works like a charm.
BTW, the C++ source should be available for both VFPCGI and foxisapi, but, it's probably not worth it to play with that code..
>>I cannot create a Visual FoxPro MTDLL since I use REPORT command to create >>PDF files. REPORT command does not work in this case.
>FOXISAPI/COM seems to be too diffult to debug and configure.
>
>I cannot create a VFP MTDLL since I use REPORT command to create PDF
>files. REPORT command does not work in this case.
>
>So I'm looking a solution using CGI interface.
>
>There are some possibilities: fix vfpcgi so that it does not destroy binary data (see my other message), use some other cgi connector for vfp,
>call vfp app from web server directly (how to use stdin/stdout from vfp?) or write a wrapper using FOXISAPI.
>
>>Part of the problem, no doubt, is that communication with the web server is going thru an intermediate text file. That's how VFPCGI works. I had to add a special routine to upload binary data so it's probably something similar. You'd probably have more success creating a VFP COM mtdll and calling that from asp or asp.net. All the communication is thru COM. The added benefit is much better speed and scalability...
>>>I try to use VFPCGI.EXE shipped with VFP 7 to return PDF files
>>>to Web Server.
>>>
>>>Unfortunately, it seems that VFPCGI does not return binary data correctly.
Previous
Reply
Map
View

Click here to load this message in the networking platform