Page 1 of 1

Technical question

Posted: Thu Jul 12, 2007 2:59 pm
by Sacha
Hi !

Thanks for the great support, I really appreciate it !

I have a technical question and i'll try to explain it as clearly as possible.
We have reports with 5 pages, a report contains the data for 1 fetus (in our case) out of 6. We know we can print all the 6 at a time, but when we do so, we get page 1 for each fetus, page 2 for each fetus and so on.

We would rather have page 1 to 5 for fetus 1, page 1 to 5 for fetus 2, ect

If we could have that, it would also fix a collate issue we have since nurses want to have x copies of the report for fetus 1 to 6, not x copy of fetus 1, x copies of fetus 2,ect
Is there an option to do that somewhere that we didn't find yet ?

I hope I was clear enough, feel free to ask questions if I was not clear enough.

Thanks !

Sacha

Technical question

Posted: Fri Jul 13, 2007 8:18 am
by Guest
Try to use the following code in EndRenderEvent event of report:

Code: Select all

System.Collections.ArrayList list = new System.Collections.ArrayList();
for (int index = 0; index < 5; index++)
{
 list.Add(this.RenderedPages[index]);
 list.Add(this.RenderedPages[index + 5]);
 list.Add(this.RenderedPages[index + 10]);
 list.Add(this.RenderedPages[index + 15]);
 list.Add(this.RenderedPages[index + 20]);
}

this.RenderedPages.Clear();
foreach (StiPage page in list)
{
 this.RenderedPages.Add(page);
} 
Also we will add to next build a property "Collate", and if you set it to 5 you get the same result.

Thank you.