Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print 2nd detail band at a fixed distance from to
Message
 
To
26/08/2008 04:14:49
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:
MySQL
Miscellaneous
Thread ID:
01341704
Message ID:
01341755
Views:
12
>Hi Experts,
>
>Help once again.
>
>I am printing a document with two child tables (let's call it ChildA and ChildB) in two detail bands. The 2nd detail band always prints at a distance dictated by the height of the 2nd detail band header height and the last line of the 1st detail band footer. So, supposing there are five ChildA records, it will print these records out, then leave a space equivalent to the header height of the 2nd detail band, then go on to print the ChildB records.
>
>My question is: is it possible to print the 2nd detail band at a fixed distance from the top of the form? Regardless of the number of ChildA records, the ChildB records will always print at X inches from the top of the form.
>
>Any help is greatly appreciated.
>
>Cheers!
>Dennis

This can be done by using a ReportListener and special tricks with a shape object at the top of the 2nd detail header band. By using the AdjustObjectSize method of the report listener, you can change the size of the shape to whatever is necessary so that the bottom of the shape is exactly where you want the next set of information to start printing. It's not simple .. but it is possible.
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
Reply
Map
View

Click here to load this message in the networking platform