Results 1 to 4 of 4

Thread: how I make reports in Qt like as crystal reports in .net and export to pdf

  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation how I make reports in Qt like as crystal reports in .net and export to pdf

    How I generates reports in qt, I want to show print preview of reports in qt. Like as crystal reports in .net or vb.

    pls help or suggest any other way to this ?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how I make reports in Qt like as crystal reports in .net and export to pdf

    There is no high level automagic report generator in out-of-the-box Qt.

    Printing support is: Open a QPrinter, use QPrinter::setOutputFormat() and QPrinter::setOutputFileName(), and use a QPainter to put whatever you want on the pages. See Printing with Qt

    There are third-party libraries that might do some of what you want. http://www.ics.com/products/qt/addons/ (not an endorsement)

  3. #3
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how I make reports in Qt like as crystal reports in .net and export to pdf

    You might look at NCReports too. Or KDReports. But since they are based QPainter they lack inherently the capability to export in excel formats or even odf formats. Then they have not integrated qwt, so for graphs, you will have to create it and use it as image. As Chris rightly said, definitely not out of the box. You may want to look to java for this if data is to pulled from some database.

  4. #4
    Join Date
    Apr 2010
    Posts
    15
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how I make reports in Qt like as crystal reports in .net and export to pdf

    Try QtRPT with QtRptDesigner
    https://sourceforge.net/projects/qtrpt/

Similar Threads

  1. Generate reports from a database
    By graciano in forum Qt Programming
    Replies: 3
    Last Post: 8th April 2015, 20:53
  2. qt how to use Crystal Reports ?
    By yunpeng880 in forum Qt Programming
    Replies: 2
    Last Post: 25th April 2010, 02:24
  3. qt reports
    By rodtakular in forum Newbie
    Replies: 2
    Last Post: 29th March 2010, 13:06
  4. Crystal Reports for Qt
    By MIH1406 in forum Qt Programming
    Replies: 2
    Last Post: 15th September 2009, 00:48
  5. Reports in Qt
    By c_srikanth1984 in forum Qt Programming
    Replies: 1
    Last Post: 17th June 2009, 07:57

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.