MFC/Win32 Printing - setting page/paper size ?
-
To print data from my CFormView, I am using MFC Print architecture (OnPreparePrinting, OnBeginPrinting, OnEndPrinting etc.) . OnPrint manages printing (and OnDraw for screen). On Dot-matrix printer, need to print 3 or 4 text-invoices one by one (one below another), on one A4 size paper (data is from CFormView). How/Where to set paper size (height) to say 2.55 inches, so that I can print single invoice without ejecting A4 paper (on Dot-Matrix printer). If possible, I wish to use MFC Doc-View Print architecture otherwise Win32 printing. Please help me with some code-snippet. Thanks for any help Ana
Ana_v123
-
To print data from my CFormView, I am using MFC Print architecture (OnPreparePrinting, OnBeginPrinting, OnEndPrinting etc.) . OnPrint manages printing (and OnDraw for screen). On Dot-matrix printer, need to print 3 or 4 text-invoices one by one (one below another), on one A4 size paper (data is from CFormView). How/Where to set paper size (height) to say 2.55 inches, so that I can print single invoice without ejecting A4 paper (on Dot-Matrix printer). If possible, I wish to use MFC Doc-View Print architecture otherwise Win32 printing. Please help me with some code-snippet. Thanks for any help Ana
Ana_v123
Check the following code project article http://www.codeproject.com/printing/printerorientation.asp I hope it helps