PDA

View Full Version : QPrinter: PDF files without page numbers



vcp
15th April 2008, 19:59
Hi,

The code below generate a pdf file with page numbers.
Why this occours? How I can create a pdf file without page number?

Thank you for any information.



TE_REPORT->document()->isModified()
QPrinter prn(QPrinter::ScreenResolution);
prn.setOutputFormat(QPrinter::PdfFormat);
prn.setFullPage(TRUE);
prn.setPageSize(QPrinter::A4);
prn.setOutputFileName( fileName );
prn.setOrientation(QPrinter::Portrait);
prn.setPrinterName( prn.printerName() );
prn.setResolution(600);
TE_REPORT->print(&prn);