Page 1 of 1

how to print a report that is not consecutive pages

Posted: Thu Mar 10, 2011 2:38 pm
by miguels
hello, I would love saver if there is any method to print a report but not straight out too, I have 10 sheets and need to print 1,10,2,9,3,8,4,7,5,6 and not 1 to 10

how to print a report that is not consecutive pages

Posted: Fri Mar 11, 2011 5:01 am
by Alex K.
Hello,

It is impossible to do it from the viewer. But from the application code you can sort pages.

Thank you.

how to print a report that is not consecutive pages

Posted: Fri Mar 11, 2011 11:26 am
by miguel
I can spend an example of how to do it pls ... of 2 ways if not too much trouble

how to print a report that is not consecutive pages

Posted: Mon Mar 14, 2011 5:33 am
by Alex K.
Hello,

Please see the sample code:

Code: Select all

StiReport originalReport = new StiReport();
originalReport.Load();
originalReport.Render();

StiReport printReport = new StiReport();
printReport.Render();
printReport.RenderedPages.Clear();
printReport.RenderedPages.Add(originalReport.RenderedPages[2]);
printReport.RenderedPages.Add(originalReport.RenderedPages[0]);
...
printReport.Show();
Thank you.