Hello. I have a question about UltraGrid and printing.
Is there a way to print a certain amount of the ultragrid rows? What I mean is this: Suppose I have a ultragrid with one band, that has 400 rows. When I print the grid, the number of rows on each page is not the same all the time, since it has to do with the header, etc.
Can I somehow, make the ultragridprintdocument print 20 rows per page for example?
Hi Struski,
No, I don't think there is any way to do this. At least no easy way.
You might be able to break up your data in multiple grids and then print each one individually.
Well, with the MicrosoftReport tools, it can be done. I will suggest this as a feature, because your grid is really amazing, and now I have to use the ReportViewer.
What about your idea about breaking my data to multiple grids? Can you give me some hints about how to do that? I mean, how to send each of these grids to each page in the ultraprintdocument?
Thanks a lot.
Well, I haven't tried this. But I was thinking you would create an UltraDataSource or a DataSet or something for each page. You would then bind the grid to the data you want on page one and print it. Then bind the grid to the second page of data and print that.
There's no way to get this into a PrintPreview, though. Each page would be a separate print job.
Ok, got it... This is not something that I will do. I will suggest this feature...
Thanks for your time...