April 25th, 1999, 05:57 AM
Dear ppl,
I need help in changing the paper size and etc in my printing module without using the CPrintDlg because i am designing my own interface. But how do i set the paper size manually? I could set the orientation using the following code:
LPDEVMODE pDevMode = (LPDEVMODE) GlobalLock(pInfo->m_pPD->m_pd.hDevMode) ;
pDevMode->dmOrientation = DMORIENT_LANDSCAPE;
pDC->ResetDC(pDevMode) ;
But if i add the following statement
pDevMode->dmPaperSize = DMPAPER_ENV_B6;
it has no effect on the papersize? How could i do it?
I need help in changing the paper size and etc in my printing module without using the CPrintDlg because i am designing my own interface. But how do i set the paper size manually? I could set the orientation using the following code:
LPDEVMODE pDevMode = (LPDEVMODE) GlobalLock(pInfo->m_pPD->m_pd.hDevMode) ;
pDevMode->dmOrientation = DMORIENT_LANDSCAPE;
pDC->ResetDC(pDevMode) ;
But if i add the following statement
pDevMode->dmPaperSize = DMPAPER_ENV_B6;
it has no effect on the papersize? How could i do it?