是在OnPrint函数里打印的呀。如果是图片的话,不是只用打印的当前页么?
调试下程序看是那里出错

解决方案 »

  1.   

    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);