Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Reports to PDF
Message
From
19/09/2005 16:53:17
Rebecca Stottlemire
Kansas State Department of Commerce
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Miscellaneous
Thread ID:
01050961
Message ID:
01051042
Views:
7
I can't get the exact line of code, since I'm working with a tech in their office over the phone, but from his description of events, it's after the line that sets the default printer to the PDF printer (which I have put in a var from the selected row in the aprinters() array....but it is before the document actually gets created. I think probably here:

SET PRINTER TO NAME (lcPrinter)
REPORT FORM (lcReport) NOCONSOLE TO FILE &lcTFile
SET PRINTER TO DEFAULT

They have no trouble printing the reports to a regular network printer and, like I said, they also use Stonefield Query to produce PDF reports. Since it works OK with Admin rights to the computer, it looks like a config problem on their end, but then why does SFQ work OK?
Puzzling...
Becky


>Ok, they can run your application. Then, I believe, the error is related to the printer service or to particular printer on particular PC. More details may help:
>- what is the line of YOUR code where the error occurs ?
>- do they have different PDF printers to choose from? If so, what if they choose another PDF printer?
>- what if they choose not PDF printer?
>
>
>>I have an application that they install using IS, it runs an .exe with v8 runtime. They can select from a print reports menu, then click that they want PDF, drop the drop box to their printer, then click print. Normally this all works fine.
>>B
>>>How is the error related to "Printing Reports to PDF"? Do you get the error on the particular line in your code, or you cannot even start your exe ?
>>>
>>>>I have a routine that allows users to print to PDF. They select their PDF printer from an aprinters() drop box, I sent the default to that printer and send the document. Most of the time this works just fine.
>>>>
>>>>I now have a user that gets the error:
>>>>Server execution failed (0x80080005) Specified OLE object is registered as a local OLE server (.exe file) but the .exe file could not be found or started.
>>>>
>>>>They don't get this error if they're signed on as ADMIN. This user also uses Stonefield Query and it prints to PDF fine when they're not logged in as ADMIN.
>>>>
>>>>I wonder if I'm not registering my .exe correctly when I use IS to build the install??
>>>>
>>>>I'd really appreciate ideas. Thanks.
>>>>
>>>>Becky
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform