Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print HTML File from VFP ?
Message
 
 
To
10/11/2001 00:42:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00576547
Message ID:
00580138
Views:
39
This message has been marked as the solution to the initial question of the thread.
>I can now print the html page from foxpro
>but it can't print to the printer that i select using set printer to name <...>
>
>I have also try to using a command line utility to select change default windows printer first before print but it seem not work.
>
>How can I print the html to selected printer from foxpro

Try to change default windows printer using WSH
lcSaveWinDefPrinter = SET("PRINTER", 2)
loNet = CREATEOBJECT("WScript.Network")
loNet.SetDefaultPrinter("\\Server\Print1")
...
loNet.SetDefaultPrinter(lcSaveWinDefPrinter)
If it doesn't work, take a look at Message #385065.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform