Footer

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Footer

Postby IDEAL Software Support » Tue Nov 23, 2004 5:14 pm

Hi,
I am just evaluating VPE standard latest release (3.60),
using Delphi 6. When attempting to print past the bottom
margin, a blank line was appearing, which I presume was
the footer.

I don't want the footer, so I attempted to disable the
printing of the footer. I thought that I read that the
recommended way was to use SetDefOutRect. (Also after
each new page). I attempted to do this, but it did not
appear to disable the footer, and did not appear (in debugger)
to alter the bottom margin position at all.

I then attempted to set just the footer value, and this
appears to work OK.

THIS DID NOT WORK :

vpe1.SetDefOutRect(vpe1.nLeftMargin, vpe1.nTopMargin,
vpe1.nRightMargin, vpe1.pageHeight);

THIS DID WORK :

vpe1.nBottomMargin := vpe1.PageHeight;

Questions.

1. Why didn't the SetDefOutRect work?

2. Is my solution satisfactory?

3. Is it possible to just disable the footer?

Regards,
Brian

PS: Very impressed with VPE thus far. Looks exactly like
what I have been wanting - control to the programmer.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Tue Nov 23, 2004 5:14 pm

It is not exactly clear to me, what you are trying to do and what you
are trying to achieve, but if

vpe1.SetDefOutRect(vpe1.nLeftMargin, vpe1.nTopMargin,
vpe1.nRightMargin, vpe1.pageHeight);

does not work, but

vpe1.nBottomMargin := vpe1.PageHeight;

does work for you, then the solution is to call vpe1.SetOutRect()
instead of vpe1.SetDefOutRect(). The SetDefOutRect call only applies to
newly added pages, not to the current page.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 12 guests

cron