Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Padding report height?

Status
Not open for further replies.

mleefiend

Technical User
Feb 11, 2002
4
CA
Hi,

I've got an invoice with columns. After printing out all the OrderID and details, I want the columns lines to continue to the bottom of the page. Is there anyway to fill the rest of the page, depending on the size of the detail section?

Thanks.
 
You could do this a few ways. You can always draw line in the Print event using the Line method. Since you already have vertical lines that you want to extend, it's easier to just make them longer to match the section height.

In the Format event for the Detail, at the very end of the code, just before the End Sub, add:

Me.LineLeft.Height = Me.Section(acDetail).Height
Me.LineRight = Me.LineLeft.Height

LineLeft and LineRight are whatever your names are for the two lines.
 
Thanks for the reply jiqjaq, but there still seems to be one problem. The Me.Section(acDetail).Height seems to be a static height (presumably based on the report design height), but when the report is generated, that height actually varies. Is there anyway to find out the varying height?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top