|
-
April 14th, 1999, 09:32 AM
#1
Printer Orientation
Can anybody tell me how to change the printer orientation (landscape to portrait ) half way through a print job? ie the first page landscape and the
second page portrain.
I am using the MFC printing architecture.
-
April 14th, 1999, 11:49 AM
#2
Re: Printer Orientation
I've done this in OnPrepareDC( ), and it works fine. Try it at the point that you want to make the change, and let us know if it works...
// Force landscape mode on.
if (pDC && pDC->IsPrinting()) {
LPDEVMODE pDM = pInfo->m_pPD->GetDevMode();
ASSERT_POINTER(pDM, LPDEVMODE);
if (pDM) {
pDM->dmOrientation = DMORIENT_LANDSCAPE;
pDC->ResetDC(pDM);
}
}
<HR>LA Leonard - <A HREF="http://www.DefinitiveSolutions.com/">Definitive Solutions, Inc.</A>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|