>Hi All,
>
>We have an application which prints patient medication details. we have introduced duplex printing and I have an requirement
>
>The scenario is I have 2 patients A and B I have 3 pages of details of patient A and 2 page detail of patient B, because of duplex printing the Patient details are printed on the 4th side of the second paper.
>
>I need to Skip the 4th page and print that new patient on the 3rd paper first page, like it starts in the new page.
>
>I need to programmatically achieve that, when a new patient is available and if its a odd page i need to skip that page.
>
>Any suggestion would be greatly appreciated.
>
>Thanks in advance
>
>-Venkatram
This can be done with a report listener using directives (read my articles on MSDN about directives on reports). The article shows one example of doing page breaks to keep information together, but you can alter the concept to be simplier and just page break when needed. Create a directive for PageBreak ... add a shape at the bottom of your footer band and use logic that checks the page number to see if a new page is needed. Then create a directive class that checks to see if the page is odd or even and fudges the height of the shape to larger than what is left on the page. That forces a page break. Then tell it not to render the shape.