that prints showing the printer dlg. In my opinion this method must have optional argument to be possible to choose if one wants to show the printer dialog or not:
bool Execute(bool bShow=true);
But lets forget this method and concentrate focus on the
bool PrinterJob::Execute0(bool dodlg) method:
As dlg.nCopies is not initialized when the pronted dlg is not showed: