Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically Creating PDF's
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01005728
Message ID:
01005776
Views:
18
>I am trying to automatically create a PDF of a report when the user clicks a button.
>
>Therefore I have
>
>SET PRINTER TO NAME '\\xp000429\QuestPDM PDF PRINTER Driver 375'
>REPORT FORM "U:\questpdm\reports\fabricsubmission.frx" NOEJECT NOCONSOLE TO File
>
>But I keep getting an error messgage 'Error Accessing Printer spooler'
>
>Can anybody help me please?
>
>In addition to this how can I automatically create the name of the PDF file as whatever the value of my variable named 'PDFname' is?
>
>Many Thanks

In report form command try TO Printer instead of TO FILE. Also try set printer to before set printer to name. I'm not sure it all would work, though. Did you test this printer before manually?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform