Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error printing from Web Service using COM EXE
Message
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060790
Message ID:
01061736
Views:
34
Boy, this just keeps getting worse. By playing with permissions, I can get the comprint utility to run, however it errors during on a SET PRINTER TO NAME(MPRINTER) command, as well as a SET ALTERNATE TO (CFILE) command. Once the system crashes, I can't get it to run again until I reboot the computer, and then go into DCOMCNFG and change the security permissions. Very odd!

As a related question, my error handler isn't picking anything up on this. The class that is compiled to perform the print calls a procedure stored in a separate PRG to acutally print the report. Errors occuring in this file should still be captured by the error routing of the calling class, shouldn't they?


>>>I am working on a PocketPC client for one of our primary applications. The client is being written in C# using vfp web services on the server to deal with data access and updates. One of the requirements for the client is the ability to send reports to various printers. I am trying to handle this through the web service so that I can reuse all of my existing VFP reports, and not have to recreate them to run on the Pocket PC.
>>>
>>>I have successfully implemented this on my machine at work by putting report calls into a COM EXE which gets called from the web service code.
>>>
>>>Now I have brought the project home and I am working on it at home. When I try to access the COM EXE to print a report, I am getting an error 1426 (OLE error code 0x"name"). My work machine is running XP Pro SP2. My home PC is running XP MCE SP2. All of the other web service code works fine (and has for the last several months).
>>>
>>
>>What additional info AERROR() returns?
>
>AERROR returns the following values
>OLE Error code 0x80070005, Acess is denied.
>
>I am assuming I might have a permissions issue here. On my work PC I have simple file sharing disabled, but I don't think I have set up any explicit permissions for my web service or the folder this thing runs out of. Both of the other PC's are running simple file sharing. I will try to change the sharing and possible set some permissions to see if I can get it working.
>
>Thanks!
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform