Change Printer orientation
Code:
Dim Prn As Printer
prn.Orientation = vbPRORLandscape 'or vbPRORPortrait
Shell("Notepad.exe " & myTextFile, vbNormalfocus)
I found some code this is what i have so far. What i need is to change the orientation i am assuming the second line changes the orientation of the default printer. Then Shell will open the specified text file (myTextFile) in notepad... and then once print is clicked in notepad it should print in the Orientation that it has been set to. Is it right to assume that, thats what will happen?
Im not at home right now and cant test it but is my logic right?
Re: Change Printer orientation
no
notepad will use the default settings of the printer, only documents printed from your program will be in landscape
check out the code here to change the default settings or a windows printer, it is specifically for duplex but landscape would need only minor changes
http://www.vbforums.com/showpost.php...8&postcount=11
remember to change back after use