Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BeforePageBreak()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00974422
Message ID:
00974463
Vues:
33
I'm not exactly sure I understand your problem, so if my explanation doesn't make sense -- just disregard.

#1 -- Yes, when VFP calculates whether a band will fit, it counts EVERYTHING in the band, regardless of any Print When conditions. That includes textboxes and lines.

#2 -- I'm not clear on whether you are trying to get the vertical lines to go all the way down the page .. or just next to the text. One thing you can do is "stretch" vertical lines through bands. For example, if you start a vetical line in page header band and end it in the page footer band, it will always stretch across the page. You can also do the same concept with data groups -- start the line in the data group header and end it in the data group footer. Then it will stretch across all details in the data group.


Cathy



>I have a report that has 2 lines in the details band, each is bordered by vertical lines. The vertical lines on line 2 are dependant on there being a value to display in the textbox on that line.
>
>My problem is that when calculating if the next details band will fit on the page, Foxpro counts both lines, so if the don't fit it throws a page. This is not a problem EXCEPT: my vertical lines do not then meet the footer as the lines on "line 2" do not print if the textbox is empty.
>
>I think I need someway to know that a page break is being thrown BeforePageBreak(), OnPageBreak(), sort of thing so that I can print the line conditionally. I have tried the OnEntry and OnExit of the headers and footers but neither works at the right time. I have a variable I can set, but can't find anywhere to set it from.
>
>Does my explanation make sense? Any ideas?
>
>
>Gary.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform