|
-
March 30th, 1999, 04:44 AM
#1
Re: How to change the orientation of two pages while printing.
As you did, override OnPrepareDC and use following code.
if (pDC->IsPrinting())
{
CPrintDialog *pPD = pInfo->m_pPD;
DEVMODE *pDM = pPD->GetDevMode();
if (pDM->dmOrientation != DMORIENT_PORTRAIT)
{
pDM->dmOrientation = DMORIENT_PORTRAIT;
pDC->ResetDC(pDM);
}
}
Hope it helps you. Good luck.:-)
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
|