How to print text in multiple pages?
General and Desktop
3
Posts
2
Posters
955
Views
1
Watching
-
wrote on 27 Mar 2014, 23:02 last edited by
I use this code:
@
QPrintDialog printDialog(&printer, this);
if (printDialog.exec()) {
QTextDocument textDocument;
textDocument.setHtml(html);
textDocument.print(&printer);
}@
but when html is increased it doesn't make another page for rest of text, it prints all text in one page for this I must use @ newPage() @ but I don't know how implement it. please help me to solve this problem. -
Hi,
Printing has received a major improvement in Qt 5.3. Please try the "Qt 5.3 beta":http://blog.qt.digia.com/blog/2014/03/25/qt-5-3-beta-released/ and see if it automatically creates a new page now.
-
wrote on 29 Mar 2014, 15:30 last edited by
Hi
I did what you do but it still print all information in first page, could you show me a simple code for print text or HTML in multiple page?
2/3