hal9k
Junior Member
Posts: 87
|
Post by hal9k on May 23, 2023 12:29:19 GMT -5
This is more of a Windows issue, but I couldn't find anything on the web and some of you guys know Windows really well, so, here goes:
My program creates a report in a text window. If the user wants to print the report, it needs to be printed in landscape mode. To try to minimize the chance that my user forgets to set the printing orientation to Landscape, I created a second Windows printer with Landscape orientation as the default preference. However, when I print to it, it prints in portrait mode unless I manually reset the preference to Landscape.
Does anybody know how I can get a printer to default to landscape orientation?
|
|
|
Post by Rod on May 23, 2023 16:09:28 GMT -5
|
|
hal9k
Junior Member
Posts: 87
|
Post by hal9k on May 24, 2023 9:53:54 GMT -5
Thanks for the pointer - sadly, it doesn't seem to work for me. It takes me to google.com.
The good news is that I think I found a solution. I found the registry entry for the printer and changed it from PORTRAIT LANDSCAPE to LANDSCAPE. So far that is working. It needs more testing, but it seems to be ok. If anybody is interested, here is the registry entry I used:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion \Print\Printers\<printername>\DsDriver
Replace <printername> with the actual name. In my case it was Laser Landscape.
|
|
|
Post by Rod on May 24, 2023 10:00:18 GMT -5
To get the link to work don’t simply click it. Copy it and paste it into the address bar in your browser. Microsoft have started nanny protecting one click downloads.
|
|