Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BeforePageBreak()
Message
De
05/01/2005 12:26:26
 
 
À
05/01/2005 11:33:31
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:
00974439
Vues:
18
Gary

I think I get your gist, although a simple drawing (using keyboard lines of course) would have helped. I've had what i conceive is your problem before. How about you put your horz lines at the TOP of the band, and matching ones in the footer, e.g.
header
..................
_______________________________    <- horz line in detail line 1
Detail line 1 | Detail line 1 |
Det Line 2    | Det Line 2    |
...............................
_______________________________    <- matching horz line in footer          
footer text
This way, if line 2 doesn't exist, the horz line in the next detail line 1 will meet the vert lines.

HTH

Terry

>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.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform