printing subreport header

G

Guest

using a2k i created a main/subreport combination and i would like the
subreport to print the column headers. there is only going to be but one
record/line printed in the subreport (since it's based on a query which
computes/identifies the data for a patient's most recent visit). i have
placed the column header's in the subreport's page header area but don't see
them showing up. i think i ran into this once before and that there's some
cool workaround but i can't find it as easily as i'd like so i hope someone's
reading this with the wherewithall to shed some light on it.

thanks in advance,

-ted
 
D

Duane Hookom

Page sections don't display in subreports. You can create a new primary
sorting level in the subreport and set it to a constant like:
=1
Display the group header for this group and then set the section's Repeat
Section property to Yes.
 
G

Guest

thank you duane,

i wanted you to know that in the ensuing interval following my posting, i
removed the headers from the page header area and dropped them into the
report header area -- which seemed to work, i.e. whenever there's a record in
the sub-report, it prints out a bordered 'table' like sub-report which
publishes the 'visit number', 'visit type', 'date of visit' and 'comments'
controls worth of data.

i'm not sure i understood the mechanics of your approach, assuming it's
somehow an improvement upon the said approach i took.

my sub-report is sorted by 'last name', 'first name', 'mi', 'med rec
number', 'irb number', and 'visit number'.

i tried adding "=1" in the 'field/expression' column and designated it
'ascending', but i am inclined to think a) i don't know what the effect using
it would have and b) that i may have already landed on the solution. am i
tracking?

-ted
 
D

Duane Hookom

Your approach of using a Report Header rather than an =1 Header will work as
long as the subreport isn't printed across more than one page of your main
report.
 
G

Guest

excellent.

thank you duane!

-ted


Duane Hookom said:
Your approach of using a Report Header rather than an =1 Header will work as
long as the subreport isn't printed across more than one page of your main
report.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top