How Do I get Notepad to open in Landscape mode

robertb_NZ

Well-known member
Joined
May 11, 2010
Messages
146
Location
Auckland, New Zealand
Programming Experience
10+
From my VB.Net program I'm opening a Notepad window with

If System.IO.File.Exists(Path) Then
System.Diagnostics.Process.Start(Path)
End If
where Path points to a .txt file.

In my situation the file will have lines of approx 133 characters, which is fine if, after Notepad opens, I change the page orientation from Portrait to Landscape.

How do I make this happen without requiring the user to change the page orientation?

Thank you, Robert.
 
Um, there's no such thing as landscape mode or portrait mode in Notepad. Presumably what you're talking about is the page orientation of the printer if you print from Notepad. That is nothing to do with your application. If you want to control how the file gets printed then print it yourself instead of getting Notepad to do it for you.
 
Damn, you're right. No wonder I couldn't find out how to do what I want in the documentation. But in fact I don't actually want to print it. It's just that with the line width of the data I'm displaying, every line wraps with Portrait orientation, but is cleanly displayed on one line with Landscape. The page orientation for printing obviously interacts with the display width (as it does with Word).
 
Back
Top