Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Report from .asp page...
Message
From
05/03/2003 13:15:45
 
 
To
05/03/2003 10:25:44
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00761492
Message ID:
00761648
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>We run IIS on NT4. We want users to generate statements from our website by converting a report form to PDF. You guys probably know how this is done (create a .ps file then use adobe or something else to create the pdf from the .ps file). Anyway, here is how it goes. The user clicks a button on the .asp page which then makes a call to foxpro com object. The foxpro object runs the report to a printer with postscript drivers (report form rpt.frx noconsole to file name1.ps). The problem is if you are in unnattended mode - sys(2335,0) - which you need to be if you are running a webserver, you get a "user interface not allowed at this time" error. However, if you turn off unnattended mode - sys(2335,1) - it will work. The problem comes if there is an error when running that report. The foxpro object becomes unavailable and you won't be able to stop the webservice. You ultimately will have to reboot. Why won't it run a report in unnattended mode? Any help or insight would be
>extremely appreciated. Thanks.

It's the user interface (the "Printing..." box that's the problem.. You might be better off having your object fire off a separate VFP .EXE to do the report printing.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform