|
-
Jan 18th, 2000, 10:27 PM
#1
Thread Starter
New Member
Does anyone have a working example of how to change the default printer orientation from VB6?
-
Jan 19th, 2000, 01:12 AM
#2
Junior Member
The only way that I have found to change the default printer is from the commondialog button and have the user change the printer and/or orientation. After adding the commondialog control below is the code.
CommonDialog1.Flags = cdlPDDisablePrintToFile
CommonDialog1.PrinterDefault = True
If MsgBox(Printer.DeviceName & " is the printer that is set. Do you wish to change the printer? ", vbYesNo, "Change Printer/Orientation ?") = vbYes Then
CommonDialog1.ShowPrinter
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|