Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Form ( file name ) gives different sizes
Message
 
 
To
14/04/2008 13:00:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01275705
Message ID:
01310450
Views:
14
Here is Windows API solution, BTW
Re: How to print to specific printer in Word Thread #1227339 Message #1227348

>HI Kevin,
>
>Yes, I resolved this, by changing my code to call windows API:
>
>  lOCAL lcDefaultprinter, oWSHNet
>  lcDefaultprinter = SET("Printer", 2)
>  oWSHNet = CREATEOBJECT('Wscript.Network')
>
>  oWSHNet.SetDefaultPrinter("Acrobat PDFWriter")  && If setting the printer to specific driver
>
>  oWSHNet.SetDefaultPrinter( lcDefaultprinter)  && returning default printer to what it was
>
>  oWSHNet.SetDefaultPrinter(gaPrinters(lnPos,1))  && If setting the printer to user picked driver ;
>                                                  && or found PS driver
>
>
>HTH
>Beth
>
>>Hi Beth,
>>
>>Did you resolve this problem? I'm having the exact same issue and have been going crazy trying to figure out a solution.
>>
>>TIA!
>>-Kevin
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