Turned of PDF default

This commit is contained in:
Mark Watkins 2011-09-11 17:05:38 +10:00
parent c8224e3467
commit 10dfd94aa7

View File

@ -184,11 +184,11 @@ void Report::GenerateReport(QDate start, QDate end)
void Report::on_printButton_clicked()
{
QPrinter printer;
printer.setPrinterName("Print to File (PDF)");
printer.setOutputFormat(QPrinter::PdfFormat);
//printer.setPrinterName("Print to File (PDF)");
//printer.setOutputFormat(QPrinter::PdfFormat);
printer.setPrintRange(QPrinter::AllPages);
printer.setOrientation(QPrinter::Portrait);
printer.setPaperSize(QPrinter::A4);
//printer.setPaperSize(QPrinter::A4);
printer.setResolution(QPrinter::HighResolution);
printer.setFullPage(false);
printer.setNumCopies(1);