Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Default Paper size of a printer
Message
From
10/10/2002 09:33:04
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00709666
Message ID:
00709801
Views:
16
>Is it possible to change the defaule paper size of a printer from Foxpro?

Yes; you can do it interactively via SYS(1037) or via a few API calls if necessary - the most trivial way to do it is to set up several Windows Printer names for the same printer with different form defaults - I frequently do this with multi-bin printers - if I keep LetterHead in one bin and normal paper in another, I'll assign the same printer to two printer names, one whose default paper selection is the LetterHead form, which is directed to perhaps the top bin, and plain paper, which would be directed to the bottom bin.

You can also hack your FRX and change the value of the PAPERSIZE= and DEFAULTSOURCE= fields; just be sure to keep Tag and Tag2 of the first record cleared. Lots of other worthwhile data in the Expr field that it might not be wise to eliminate.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform