Write yourself printing that's very easiest.Please refer to the below pseudocode, more details see MSDN:PRINTER_INFO2 info = EnumPrinters // Firstly, you need to enumurate printers and gain related printer info.HDC hPrtDC = CreateDC(info) // Create a printable device context DOCINFO docinfo; StartDoc(&docinfo); // Start a document// How many pages according to paper size. while (...) { StartPage(); ... // Drawing stuff in view OnDraw(hPrtDC); ... EndPage(); }//End the document EndDoc();// Don't release the printing DC ReleaseDC(hPrtDC);
DOCINFO docinfo;
StartDoc(&docinfo); // Start a document// How many pages according to paper size.
while (...)
{
StartPage();
...
// Drawing stuff in view
OnDraw(hPrtDC);
...
EndPage();
}//End the document
EndDoc();// Don't release the printing DC
ReleaseDC(hPrtDC);