P for portrait and L for Landscape
The above table shows the hard margins for two printers from Wordpad.
I set all margins to zero then Wordpad fixed the values to the above.
It shows C310 rotates the text 90 degrees CW (Top went to right)
and C8180 rotates text 90 CCW. (Top went to left)
Notepad rotates similarly
It does not appear that Wordpad and Notepad use the same code since they show similar but slightly different values.
From PrinterSettings I find:
That C310 rotates text 90 degrees CCW
And C8180 rotates text 90 degrees CW.
To find this I used debugging to capture some values from PrinterDocument:
PrinterSettings HP Photosmart C8100 series Copies=1 Collate=True Duplex=Simplex FromPage=0 LandscapeAngle=270 MaximumCopies=9999
And MS documentation:
Specifying Paper Orientation - Windows drivers | Microsoft Docs
The LANDSCAPE_CC90 option rotates text and graphics 90 degrees counterclockwise. The LANDSCAPE_CC270 option rotates text and graphics 270 degrees counterclockwise, which is equivalent to a rotation by 90 degrees clockwise.
So what do I conclude?
Old as the hills Wordpad and Notepad are wrong?
Printsettings can't be trusted?
I misconscrewed something?
Unfortunately I do not have a printer available so the data that could come from actually printing is missing.
I wrote a program that uses the hard margins and I'd like to feel confident that I'm using them correctly. I'm hoping that you may have bumped into to this in the past and may be willing to add to what I've posted.
PRINTER | HP C310 P | HP 301 L | HP C8180 P | HP C8180 L |
LEFT | 0.13 | 0.16 | 0.13 | 0.07 |
TOP | 0.125 | 0.13 | 0.07 | 0.13 |
RIGHT | 0.13 | 0.125 | 0.13 | 0.16 |
BOTTOM | 0.16 | 0.13 | 0.16 | 0/13 |
I set all margins to zero then Wordpad fixed the values to the above.
It shows C310 rotates the text 90 degrees CW (Top went to right)
and C8180 rotates text 90 CCW. (Top went to left)
Notepad rotates similarly
It does not appear that Wordpad and Notepad use the same code since they show similar but slightly different values.
From PrinterSettings I find:
That C310 rotates text 90 degrees CCW
And C8180 rotates text 90 degrees CW.
To find this I used debugging to capture some values from PrinterDocument:
PrinterSettings HP Photosmart Prem C310 series Copies=1 Collate=True Duplex=Simplex FromPage=0 LandscapeAngle=90 MaximumCopies=9999
PrinterSettings HP Photosmart C8100 series Copies=1 Collate=True Duplex=Simplex FromPage=0 LandscapeAngle=270 MaximumCopies=9999
And MS documentation:
Specifying Paper Orientation - Windows drivers | Microsoft Docs
The LANDSCAPE_CC90 option rotates text and graphics 90 degrees counterclockwise. The LANDSCAPE_CC270 option rotates text and graphics 270 degrees counterclockwise, which is equivalent to a rotation by 90 degrees clockwise.
So what do I conclude?
Old as the hills Wordpad and Notepad are wrong?
Printsettings can't be trusted?
I misconscrewed something?
Unfortunately I do not have a printer available so the data that could come from actually printing is missing.
I wrote a program that uses the hard margins and I'd like to feel confident that I'm using them correctly. I'm hoping that you may have bumped into to this in the past and may be willing to add to what I've posted.