473,385 Members | 1,764 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.

Printing Page Heaer of a sub report



Dear reader,

In case a report is a sub report the Report Header of the sub report is
printed in the report but the Page Header of the sub report will not be
printed. This is the same for Page Footer of the sub report.

Is there a possibility to force printing Page Header and Page Footer of a
sub report.

The Page Header and Footer of the master report is not the problem it is the
sub report.

Thanks for any help.

Kind regards,

Simon
Dec 11 '07 #1
2 2880
Simon wrote:
Dear reader,

In case a report is a sub report the Report Header of the sub report is
printed in the report but the Page Header of the sub report will not be
printed. This is the same for Page Footer of the sub report.

Is there a possibility to force printing Page Header and Page Footer of a
sub report.

The Page Header and Footer of the master report is not the problem it is the
sub report.
I'm sure others have some methods different than mine. The report
header only prints once in a subform. Page headers/footers not at all.
My method also works great when you want to print a multicolumn reports.

First, I go into the Recordsource of the report and if not a query, make
it one by clicking on the triple-dot. I then add a column. I call it
Master. To create this column in the query builder I enter
Master : "M"

Save the recordsource. Now every record will have a column called
Master. I now go to Sorting&Grouping in the Reports menu. I now add a
new sort field, Master, drag it to the top of the sort list usually, and
create a header and if need be a footer.

You'll now see a band for Master. Double click on the band to pull up
it's property sheet. Under the Format tab look for RepeatSection. Set
it to Yes if you anticipate the subreport may print on multiple pages.

Now move your Page/Footer header stuff into Master's respective bands.

That's it.

Hick
http://www.youtube.com/watch?v=XJMJmiRqR60
>
Thanks for any help.

Kind regards,

Simon

Dec 11 '07 #2
On Tue, 11 Dec 2007 21:37:34 +0100, "Simon" <Sv********@Versatel.nlwrote:
>

Dear reader,

In case a report is a sub report the Report Header of the sub report is
printed in the report but the Page Header of the sub report will not be
printed. This is the same for Page Footer of the sub report.

Is there a possibility to force printing Page Header and Page Footer of a
sub report.

The Page Header and Footer of the master report is not the problem it is the
sub report.

Thanks for any help.

Kind regards,

Simon
You can use a Group Header/Footer instead of the Page Header/Footer.

In the recordsource of the subreport include a calculated field which returns a
common value for every record. eg PgHead:0
This ensures every record in the recordsource is included under a single group.

In the design of the subreport add a Group Header/Footer for the field PgHead.
Cut all the controls out of your Page Header/Footer and paste them into the
Group Header/Footer.
Set the Repeat Section property of the Group Header to True.
Remove the Page Header/Footer.

The Group Header/Footer should display in the subreport as a Page Header/Footer
would normally display.


Wayne Gillespie
Gosford NSW Australia
Dec 11 '07 #3

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

Similar topics

4
by: Jamey Shuemaker | last post by:
I've been looking for a way to do a duplex print job without a duplex printer. I reviewed some old posts about printing odd pages and found that most of them led to KB article 101075 or an export...
0
by: Nigel | last post by:
I successfully create a .NET Component (Visual Basic .NET) that would print, unfortunately when used within a web browser it appears that .NET security doesn't allow you to run code that interacts...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
4
by: Lucas Ponzo | last post by:
Hi All, I have an ASP.NET 2.0 app. The users access the pages, uniquely via pocket pc ... I need to print a page. But I need that the page print on a printer installed on the web server...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
1
by: adolph | last post by:
I have a problem with pages being printed out of order. An example is a 15 page duplexed report. Title page fine back of title page blank. (As it should be) SEcond page front, bottom says Page 1...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
it0ny
by: it0ny | last post by:
Hi guys, thanks I am fairly new to this forum so I hope I chose the right place to post this question. I try to make my program printout a deposit's report. I created a class to store the...
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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,...

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.