473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Report Section Height Issues

Hi,

I have an Access 97 report that mimics an official UK Covernment
Customs document, with Page Headers and Footers presenting static data
for each page (logos etc). The report is made up (typically) of
several lines of detail data, with a few summary lines at the foot of
these. I am (nearly) achieving the right "look and feel" by presenting
the line items in the Report Detail section and the summary lines in
the Report Footer BUT...

....the "real thing" has vertical lines running down the body of the
document. I have managed to programatically replicate these by using
me.Line in the respective onFormat events of the Detail and Report
Footer, EXCEPT for a problem with the last page.

If there are only one or two detail items on the last page, then the
Report Footer follows immediately on (as I want), but there is then a
big space between the bottom of the Report Footer and the final page
footer, completely ruining the effect that I am seeking.

What I want to be able to do is grow the Report Footer so that it
fills this "white space". If I can do this, then hopefully I can
"draw" lines within the Report Footer down to the final Page Footer
and the net result will look like the real document - rather than the
unusable mess that it currently is !

Any help/guidance would be appreciated.

TIA

Martin
Nov 12 '05 #1
2 4045
Have a look at the older non class based solutions here:
http://www.lebans.com/PrintLines.htm

If I remember correctly you would use the Line method in the Page event
for the last page.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Martin" <ma*************@dana.com> wrote in message
news:af*************************@posting.google.co m...
Hi,

I have an Access 97 report that mimics an official UK Covernment
Customs document, with Page Headers and Footers presenting static data
for each page (logos etc). The report is made up (typically) of
several lines of detail data, with a few summary lines at the foot of
these. I am (nearly) achieving the right "look and feel" by presenting
the line items in the Report Detail section and the summary lines in
the Report Footer BUT...

...the "real thing" has vertical lines running down the body of the
document. I have managed to programatically replicate these by using
me.Line in the respective onFormat events of the Detail and Report
Footer, EXCEPT for a problem with the last page.

If there are only one or two detail items on the last page, then the
Report Footer follows immediately on (as I want), but there is then a
big space between the bottom of the Report Footer and the final page
footer, completely ruining the effect that I am seeking.

What I want to be able to do is grow the Report Footer so that it
fills this "white space". If I can do this, then hopefully I can
"draw" lines within the Report Footer down to the final Page Footer
and the net result will look like the real document - rather than the
unusable mess that it currently is !

Any help/guidance would be appreciated.

TIA

Martin


Nov 12 '05 #2
Stephen,

Thanks, it worked just fine (great website, too !).

For the benefit of anybody else who may be following this thread, what
I did was include the following code(simplified to show just one
vertical line being drawn) in the On Page event of the REPORT:-

With Me
.ScaleMode = 1
.ForeColor = 0 ' 0=Black,
' Measurement is in twips
' 1 * 1440 represents 1 inch; 1 * 567 represents 1 cm
Me.Line (2.778 * 567, .Section(acPageHeader).Height)- _
(2.778 * 567, .ScaleHeight - (.Section(acPageFooter).Height))
End with

This draws a line on EVERY page 2.778 cm in from the left-hand margin,
stretching from the PageHeader to the PageFooter - exactly what I was
trying to achieve. The beauty of this code is that I then did not have
to worry about drawing lines in either the Detail or Report Footer
sections.

Thanks once again.

Martin
_________
"Stephen Lebans" <Fo****************************************@linval id.com> wrote in message news:<gW*********************@ursa-nb00s0.nbnet.nb.ca>...
Have a look at the older non class based solutions here:
http://www.lebans.com/PrintLines.htm

If I remember correctly you would use the Line method in the Page event
for the last page.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Martin" <ma*************@dana.com> wrote in message
news:af*************************@posting.google.co m...
Hi,

I have an Access 97 report that mimics an official UK Covernment
Customs document, with Page Headers and Footers presenting static data
for each page (logos etc). The report is made up (typically) of
several lines of detail data, with a few summary lines at the foot of
these. I am (nearly) achieving the right "look and feel" by presenting
the line items in the Report Detail section and the summary lines in
the Report Footer BUT...

...the "real thing" has vertical lines running down the body of the
document. I have managed to programatically replicate these by using
me.Line in the respective onFormat events of the Detail and Report
Footer, EXCEPT for a problem with the last page.

If there are only one or two detail items on the last page, then the
Report Footer follows immediately on (as I want), but there is then a
big space between the bottom of the Report Footer and the final page
footer, completely ruining the effect that I am seeking.

What I want to be able to do is grow the Report Footer so that it
fills this "white space". If I can do this, then hopefully I can
"draw" lines within the Report Footer down to the final Page Footer
and the net result will look like the real document - rather than the
unusable mess that it currently is !

Any help/guidance would be appreciated.

TIA

Martin

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Baker | last post by:
Hi: Stuck on another thing. On a report I am creating, I want to make the detail section one line vertically. However, in design view, I click on the page Footer Bar ,grab it with the "double...
0
by: Bill Short | last post by:
I have a subreport in the detail section of the main report. The subreport is set to CanGrow. I am using the Me.Line method (thanks to Stephen Lebans) to create vertical lines that fill in...
4
by: ALESSANDRO Baraldi | last post by:
Hi and Good Sunday. Have i any way to Reduce at Runtime, with no change on Design View, the Height property of Detail_Section on my Report.....? The Section Property is Read_Only but if i...
4
by: Trevor Best | last post by:
I have a report that's fairly simple, page headers and footers, detail has a subreport in (can vary in length). The customer wanted a signature block for them, their client and 3rd party. This was...
3
by: terragrub | last post by:
I found some code that works great to creat empty rows of boxes on a report from the end of the data to the bottom of the report. Now, I can't seem to find the original message to post a question...
2
by: jess | last post by:
Hi, Im using the following code to make a new report based on an existing report. Set rpt = CreateReport(, "_SemiAnnualMaster") The problem that I am running into is that none of the report...
13
by: Greg | last post by:
Most suggestions on this topic recommend to use a page footer and make it visible only on the last page. My problem is that the footer is half of the height of a page which means the detail would...
1
by: Daniele | last post by:
I have to create a report, that contains in the section body a list of record. For every record it has to appear an incremental additional field that begins from One; when he reaches the record...
7
by: NJonge01 | last post by:
Hi, I'd like to produce a report that basically looks like an excel printout. Description: Profile Print Report Detail Section with 3 bordered text boxes all text boxes are 'abutted'...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.