Click to See Complete Forum and Search --> : Re: How to change the orientation of two pages while printing.


Walter An
March 30th, 1999, 03:44 AM
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.:-)