Results 1 to 4 of 4

Thread: Multi page report with QTextDocument

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Multi page report with QTextDocument

    If the method of filling a QTextDocument by HTML import doesn't provide all the necessary features, it might still be possible using QTextDocument's own API.

    Alternatively you could look at using a report generator library, e.g KDReports https://github.com/KDAB/KDReports

    Cheers,
    _

  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: Multi page report with QTextDocument

    That attribute is in the supported HTML subset but it is may only be supported on <p> and <table> elements. The "auto" value leaves the decision up to the layout engine... You might want "always".

    See the following post for another way to paginate from QTextDocument:
    http://www.qtcentre.org/threads/5779...not-breakering
    You can use this method with a little thought to do things like headers and footers.

  3. #3
    Join Date
    Jan 2015
    Posts
    7
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Multi page report with QTextDocument

    I am looking for a simple solution as possible. QTextDocument has it's own API but to me is little bit complex to generate clean report.

    @ChrisW67
    I tried that too, but it s still not breaking pages. For the thread you refer to, I had read it, witch I am already trying to avoid because my knowledge in QTextDocument is and reports construction is limited.
    Last edited by H Aßdøµ; 15th February 2015 at 23:51.

Similar Threads

  1. Report, QTextDocument (memory leak)
    By layer in forum Qt Programming
    Replies: 2
    Last Post: 23rd March 2012, 07:55
  2. Replies: 2
    Last Post: 14th October 2011, 09:36
  3. problem printing a multi page report
    By schnitzel in forum Newbie
    Replies: 12
    Last Post: 23rd January 2011, 01:50
  4. multi page Application
    By ilpaso in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2010, 09:36
  5. Multi-Page PDF Output
    By igor in forum Qt Programming
    Replies: 1
    Last Post: 9th January 2007, 04:10

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.