Printing report with more than one plot and additional text
Hello
I would like to print the content of several plots and some text in addition to the same document. In the bode plot example I tried:
Code:
for (int page = 1; page < 3; ++page) {
d_plot->print(printer, filter);
if (page < 2) printer.newPage();
}
I expected two pages containing the same plot but got only one page.
What's wrong? And how I could print some text in between?
Thank you for all comments.
Best regards
Stefan
Re: Printing report with more than one plot and additional text
One mistake has been found and a possible solution is...
Code:
painter.begin(&printer);
for (int page = 1; page < 3; ++page) {
d_plot->print(&painter, printer.pageRect(), filter);
if (page < 2) printer.newPage();
}
painter.end();
Stefan