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?Code:Dim Prn As Printer prn.Orientation = vbPRORLandscape 'or vbPRORPortrait Shell("Notepad.exe " & myTextFile, vbNormalfocus)
Im not at home right now and cant test it but is my logic right?




Reply With Quote