[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;
    printer.setOutputFormat(QPrinter::PdfFormat);
    printer.setOutputFileName(fileName);
    doc->print(&printer); // doc is QTextDocument * @

    But is there is any better way to do it.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.