Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Skip a Odd Page for a new record in grouping
Message
 
To
02/06/2008 20:34:04
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01321190
Message ID:
01321289
Views:
22
>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.
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform