printing content in the specified position on document to printer
-
I want to print a page which has predefined area, so that the printer prints the content which is in the defined area.Say for example, a document usually has 32x13 inches ruler. we predefine the size to 8x11 inches area of the document. we actually need to print the content of the 8x11 inches? any help will be greatly appreciated. i desperately need this info. please send reply to vgkotha@rediffmail.com thanks in advance, from venu:confused
-
I want to print a page which has predefined area, so that the printer prints the content which is in the defined area.Say for example, a document usually has 32x13 inches ruler. we predefine the size to 8x11 inches area of the document. we actually need to print the content of the 8x11 inches? any help will be greatly appreciated. i desperately need this info. please send reply to vgkotha@rediffmail.com thanks in advance, from venu:confused
Do you mean you want to print to a selected area of the page? If you do, override the OnPrepareDC() function and modify the pInfo->m_rectDraw member var to limit the printable rectangle to your app to the area of interest. You can do that by using something like: pInfo->m_rectDraw.left = pDC->GetDeviceCaps(LOGICALPIXELSX) * inches_offset1 ; pInfo->m_rectDraw.top = pDC->GetDeviceCaps(LOGICALPIXELSY) * inches_offset2 ; And so on... Roger Allen Sonork 100.10016 I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.