|I have this code
BOOL CFormOptions::OnPreparePrinting(CPrintInfo* pInfo)
pInfo->m_pPD->m_pd.hDevMode = pPrintDlg.hDevMode;
LPDEVMODE devMode = pInfo->m_pPD->GetDevMode();
devMode->dmPaperSize = 45; else
devMode->dmPaperSize = DMPAPER_LEGAL;
devMode->dmPaperWidth = 2000;
if ( pInfo->m_bPreview ) return DoPreparePrinting(pInfo);
and I can adjust the paper size from letter to legal. But if I try to adjust the paper size to DMPAPER_10X11 or any other size, the software ignores it and just uses letter size.
How can I adjust the paper size to be something like DMPAPER_10X11? I tried adjust the PaperWidth as well and that is ignored as well. So Im not sure what Im doing wrong.
Any help, any direction any one can provide will be greatly appreciated.