Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Producing reports to file from VFP COM via ISAPI/ASP
Message
De
28/06/2002 06:09:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Producing reports to file from VFP COM via ISAPI/ASP
Divers
Thread ID:
00673190
Message ID:
00673190
Vues:
59
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]
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?
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform