C
cefrancke
Is there a way to create a report header template so that, it can be
used as a subreport in a main report's header section, and so that it
can size itself and adjust it's controls to fit the main report. This
adjustment is needed in case the main report is larger or smaller than
the header template.
I figure I can save space using company logos and repeating them for
every report. It also gives me the freedome to create different looking
reports (the detail section) while being able to insert or refer to the
header template. This way I can use the wizards to make my report, I
then make the adjustment to the detail and then when I'm finished, I
insert the header template as a subreport in the main reports header.
I've been playing around with adjusting the subreport (header template)
on the Open event of the subreport. But I cant seem to change the
viewable width of the subreport. In VB, when I break on the code to set
the subreport width, VB says it's changed but the view shows the size
set in the design view of the subreport.
NOTE: I'm not talking about the main report subreport control, I'm
making adjustments in the subreport's Open event and adjusting the
subreport values.
What I want to do is make all the size changes in the Open event of the
subreport, and adjust the subreport's size to fit the main report. With
a report header that is the same for all reports, it's not unusual for
some reports to be landscape, etc. So I want to adjust the size of the
subreport (header) to fit the main report.
TIA
used as a subreport in a main report's header section, and so that it
can size itself and adjust it's controls to fit the main report. This
adjustment is needed in case the main report is larger or smaller than
the header template.
I figure I can save space using company logos and repeating them for
every report. It also gives me the freedome to create different looking
reports (the detail section) while being able to insert or refer to the
header template. This way I can use the wizards to make my report, I
then make the adjustment to the detail and then when I'm finished, I
insert the header template as a subreport in the main reports header.
I've been playing around with adjusting the subreport (header template)
on the Open event of the subreport. But I cant seem to change the
viewable width of the subreport. In VB, when I break on the code to set
the subreport width, VB says it's changed but the view shows the size
set in the design view of the subreport.
NOTE: I'm not talking about the main report subreport control, I'm
making adjustments in the subreport's Open event and adjusting the
subreport values.
What I want to do is make all the size changes in the Open event of the
subreport, and adjust the subreport's size to fit the main report. With
a report header that is the same for all reports, it's not unusual for
some reports to be landscape, etc. So I want to adjust the size of the
subreport (header) to fit the main report.
TIA