PDA

View Full Version : Not print the range of pages



estanisgeyer
1st December 2009, 19:25
Hi friends,

I'm working with QPrintPreviewWidget to generate reports, while trying to print a range of pages is printed all.
I am using Fedora 12 and QT 4.5.3.
I wrote and attach a small example, if someone can help me would be much appreciated. Suggestions are welcome

Marcelo E. Geyer

estanisgeyer
2nd December 2009, 13:50
People who downloaded the code, compiled and tested, the same problem occurs?
Does anyone have any suggestions? It will be a bug in QT?

Thanks,

Marcelo E. Geyer

estanisgeyer
3rd December 2009, 17:18
Hi again,

I took a step in understanding how the QPrintPreviewWidget works.
I have a situation where I had to deploy a variable that would serve as counter items so that when there was a need to create a new page (QPrinter: newPage ()), the next item would be that the form variable. As this variable is not restarted, when I print or export to PDF I have a surprise: only the last page is printed or exported.
This leads me to conclude that not only define the range of pages you wish to print in QPrintDialog, but I feel should be done some control to know which is the page that corresponds to that if you want to print.