Hello,
I have a UltraWinGrid, and I want to print it with a UltraGridPrintDocument.
But I want to use Page break for each Grid's Groups.
Is it possible to use Page break with printing a UltraWinGrid into a UltraGridPrintDocument ?
No, I don't beleive this is currently possible. You might be able to do multiple print jobs by hiding all the rows except for the ones in a particular group, print the grid, then hide everything except for the second group, print that, etc.
Hello, Mike.
I need the same thing: page breaks. Did you implemented this feature?
I don't know if you did so I tried to implement what you have suggested in the previous post, but to no avail.
I was thinking of a slightly different approach.
- print the current contents of the UltraGrid in an UltraPrintDocument;
- refill the UltraGrid with something else
- print the UltraGrid, with the new info, in the same UltraPrint Document
...and so on, I am sure you got the picture.
The problem is that I don't know what to use: UltraPrintDocument or UltraGridPrintDocument?
And, the most important, when should I refill the grid (its data source, in fact) and reinitiate the printing, of course, in the same document used before?
I tried to handle the PagePrinted and EndPrint events of the UltragridPrintedDocument and, next, I handled the same events for the UltraPrintDocument. In every case I got all sort of wrong behaviors when I was trying to print the UltraGrid for the second time (containing the new data): exceptions or countless documents printed somewhere but not into the document I wanted to print ...
Do I need to handle the printing related events of the UltraGrid (InitializePrint, BeforePrint)?
This is drriving me nuts, so I would really appreaciate any pointers or hints.
Thank you in advance.
Daniel
is there an update on this?
I would like to have a page break before every group.
And can you see a way to ensure each group is printed on 1 page, e.g. if group 1,2 fit together on 1 page, but group 3 would be half on page 1 and half on page 2, to "insert"a page break after group 2, so group 3 is then printed on page 2.
Any help is appreiated,
Dennis