Dynamic subreport location
I have a master report that dynamically creates one or more subreports. I
use the PageBreak from RBAddOn when the code determines it's time for a new
page and then the rest of the subreports are created. This process continues
for one or more pages.
Once the pagebreak is used the next subreport needs to have the
ShiftRelativeTo set to the pagebreak and after that the following
subreport's ShiftRelativeTo is set to the preceeding subreport.
So far this woks well. The problem I have is that the subreports on page 2
and beyond print directly after the preceeding subreport even though that
subreport's Top property should locate it farther down the page.
As an example, the first subreport on page 2 (subreport#4, number one
through three are on page one) prints at the top of the page (this is
correct). Subreport#4 is three inches high and subreport#5 has it's Top
property set to six inches. However since subreport#5's ShiftRelativeTo is
set to subreport#4 it begins printing at appx four inches (subreport#4's
height plus BottomOffset plus report's top margin, etc.).
Is it possible to fix the starting point on the page for a dynamically
created subreport even though the ShiftRelativeTo property is set?
Thanks,
Tom Knox
use the PageBreak from RBAddOn when the code determines it's time for a new
page and then the rest of the subreports are created. This process continues
for one or more pages.
Once the pagebreak is used the next subreport needs to have the
ShiftRelativeTo set to the pagebreak and after that the following
subreport's ShiftRelativeTo is set to the preceeding subreport.
So far this woks well. The problem I have is that the subreports on page 2
and beyond print directly after the preceeding subreport even though that
subreport's Top property should locate it farther down the page.
As an example, the first subreport on page 2 (subreport#4, number one
through three are on page one) prints at the top of the page (this is
correct). Subreport#4 is three inches high and subreport#5 has it's Top
property set to six inches. However since subreport#5's ShiftRelativeTo is
set to subreport#4 it begins printing at appx four inches (subreport#4's
height plus BottomOffset plus report's top margin, etc.).
Is it possible to fix the starting point on the page for a dynamically
created subreport even though the ShiftRelativeTo property is set?
Thanks,
Tom Knox
This discussion has been closed.
Comments
Once you set the ShiftRelativeTo property to True, all print position
settings are overridden. Therefore it is not possible to have a fixed
starting point for a subreport when the ShiftRelativeTo property is True.
You can use the BottomOffset property to space items on your report with the
ShiftRelativeTo property set to false. Your only other option would be to
set the PrintPosition and not use the ShiftRelativeTo property.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The BottomOffset will work.
Tom