Hi, Actually i want to know that, whether the printer DC is to be resized according to the paper sizes. If yes, how can i change the size? Me already checked with the following code for( int nIndex = 0; nIndex < nNumPapers; nIndex++ ) { CString csPaperSize = _T( pPaperNames ); /* Got from GetDeviceCapabilities */ memcpy( pDevModeOutput->dmFormName, csPaperSize.GetBuffer(csPaperSize.GetLength()), 32) ; HDC hTempHandle; pDevModeOutput->dmFields |= DM_FORMNAME; CString csTemp( _T( "" )); hTempHandle = ResetDC( hDc, pDevModeOutput ); nPixelX = GetDeviceCaps( hDc, HORZRES ); nPixelY = GetDeviceCaps( hDc, VERTRES ); csTemp.Format( _T( "%s : %d, %d" ), pDevModeOutput->dmFormName, nPixelX, nPixelY ); AfxMessageBox( csTemp ); } but the nPixelX, nPixelY always getting the same for all paper sizes Regards, Krishnakumar