Greetings,
So I have one problem that I cannot seem to figure out no matter how much I tinker with my print code.
How do you get the specify page range option to appear enabled in the print dialog?
No matter what I try my print dialog specify page range comes up disabled and will not allow me to print only part of a report. I have tried running the app on numerous machines with no luck.
Platform: Win XP
Qt: 4.3.0 Commercial
Here is a snippet of my code:
pageSetupDlg.exec();
printer.setFullPage(true);
if(dlg
->exec
() == QDialog::Rejected) {
delete dlg;
return;
}
QPrinter printer(QPrinter::HighResolution);
QPageSetupDialog pageSetupDlg(&printer);
pageSetupDlg.exec();
printer.setFullPage(true);
QPrintDialog *dlg = new QPrintDialog(&printer, this);
dlg->addEnabledOption(QAbstractPrintDialog::PrintPageRange);
dlg->addEnabledOption(QAbstractPrintDialog::PrintSelection);
dlg->addEnabledOption(QAbstractPrintDialog::PrintToFile);
if(dlg->exec() == QDialog::Rejected)
{
delete dlg;
return;
}
To copy to clipboard, switch view to plain text mode
Any information would be appreciated.
~Cheers
Quid
Bookmarks