>I have the following problem:
>From a VFP7 SP1 COM I want to execute command like the following:
>
>report form [FRXname] to file [filename.ps] noconsole
>
>
>I instantiate the VFP COM via FoxISAPI.dll. When I try to execute the code above I receive error
"User interface operation is not allowed at this time".>
>More information:
>
>The SYS(2335) setting is 0 - unattended mode. The operating system is Win2k Server, IIS5 SP2 + fix for CodeRed. File system is NTFS. The IUSR_account has read and execute rights to the directory with the FRX and full rights to the directory whether i try to produce the output file. I use HP Color LaserJet 8500 PS driver set to FILE: port. Everyone has rights to print documents to this printer, it is default printer.
>
>When I try to run the above command from development environment of VFP it succeeds. I do not have any modal states (dialog boxes asking me to do something) when printing from development environment with this command. However I have noticed that for a short time a messagebox with the following contents appears:
>
>Printing...
>Printing: [FRXname]
>Page: [pagenumber]
Hello Zlatin
If you are able to read Russian, I solved this problem and published at Russian VFP site www.nsvisual.com/fox2 , Zhravlevskie istorii, Missia vipolnima
I ran VFP reports inside IIS and personal web
>Cancel
>
>In the text above [FRXName] stands for the name of the report file (FRX) - I have tryed both with absolute and relative paths.
>[filename.ps] is the name (again have tryed both absolute and relative) of the output file
>[pagenumber] is the number of the currently printed page.
>
>Any ideas how can I print to file from a VFP COM server?
MVP-2006-2011, PHD in Math and Physics ,
host of
www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.