Qt World Summit: Register Today!

[Solved] PDF Report

  • Dear Friends,

    Any body know simple pdf report generator for QT?

    i gone through exaro...ncreport...etc... anything else simpler...

  • actually i can generate QTextdocument and Convert it into pdf as shown below.

    @ QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"), "untitled",tr("PDF Document (*.pdf)"));
    QPrinter printer;
    doc->print(&printer); // doc is QTextDocument * @

    But is there is any better way to do it.

Log in to reply