Results 1 to 1 of 1

Thread: QPrinter: PDF files without page numbers

  1. #1
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QPrinter: PDF files without page numbers

    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.

    Qt Code:
    1. TE_REPORT->document()->isModified()
    2. QPrinter prn(QPrinter::ScreenResolution);
    3. prn.setOutputFormat(QPrinter::PdfFormat);
    4. prn.setFullPage(TRUE);
    5. prn.setPageSize(QPrinter::A4);
    6. prn.setOutputFileName( fileName );
    7. prn.setOrientation(QPrinter::Portrait);
    8. prn.setPrinterName( prn.printerName() );
    9. prn.setResolution(600);
    10. TE_REPORT->print(&prn);
    To copy to clipboard, switch view to plain text mode 
    Last edited by marcel; 8th August 2008 at 00:40. Reason: missing [code] tags

Similar Threads

  1. QPrinter without page number
    By estanisgeyer in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2015, 13:19
  2. How can I put text on each page using QPrinter
    By davit in forum Qt Programming
    Replies: 2
    Last Post: 15th April 2007, 12:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.