2011-10-13 51 views

回答

0

您可以調用print後立即查詢的最後一個錯誤,像這樣:

wxPrinter printer; 
MyPrintout printout("My printout"); 
printer.Print(this, &printout, true); 
wxPrinterError errorCode = printer.GetLastError(); 

的返回值可以是:

wxPRINTER_NO_ERROR No error happened. 
wxPRINTER_CANCELLED The user cancelled printing. 
wxPRINTER_ERROR  There was an error during printing. 

更多參考點擊這裏:http://docs.wxwidgets.org/stable/wx_wxprinter.html#wxprinterprint

相關問題