• Advertisement
Sign in to follow this  

[old skool Windows GDI] Printing Text Landscape

This topic is 3930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Cast your mind back.... Remember when you used to use windows GDI? Well, my question is, how can I print landscape, rather than portrait, orientation? I'm doing my printing like this: Escape(m_printerDC, STARTDOC, 8, "Test-Doc", NULL); TextOut(m_printerDC, 50, 650, "AARDVARK", 9); Escape(m_printerDC, NEWFRAME, 0, NULL, NULL); Escape(m_printerDC, ENDDOC, 0, NULL, NULL); Is there an Escape I can call to set the orientation? Thanks Simon

Share this post


Link to post
Share on other sites
Advertisement
I'm not 100% sure, but after having taken a look, it seems that you would use the ExtEscape() function with GET_PS_FEATURESETTING as parameter 2, and a filled out PSFEATURE_CUSTPAPER structure as the 4th parameter.

By filling out the PSFEATURE_CUSTPAPER structure appropriately (look under the lOrientation member), you might get landscape printing to work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement