RB 6.03 Extra Blank Page & SubReport position problem
A report I have created generates an extra blank page. I believe the
problem is the with the subreports it contains. The subreports are shifted
right by the width of the margin. ie the report has a 10mm margin but the
sub-reports are printed 20mm from the paper edge--a doubled margin. I have
changed the margins for the sub-reports to zero but it doesn't make any
difference--the subreport maintains its position 20mm from the edge.
Any ideas?
Thanx,
TFehr
problem is the with the subreports it contains. The subreports are shifted
right by the width of the margin. ie the report has a 10mm margin but the
sub-reports are printed 20mm from the paper edge--a doubled margin. I have
changed the margins for the sub-reports to zero but it doesn't make any
difference--the subreport maintains its position 20mm from the edge.
Any ideas?
Thanx,
TFehr
This discussion has been closed.
Comments
Be sure the TppSubreport.ParentWidth property is set to True. This will
position the margins of the subreport to match the left/right margins of the
main report. In my testing, the margins matched with this property set. Is
there something else being set in this report? Are you using columns? If
you would like, create a simple example demonstrating this behavior and send
it in .zip format to support@digital-metaphors.com and I'll take a look at
it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Yes, I'm using three columns in the sub-reports.
Before receiving your reply I manually changed the subreport page width to
be the same as the main report width minus the margins and set the subreport
margins to zero and recreated the columns. At this point everything was
working properly.
After reading your reply I set the parentwidth property from True to False
to True. I noticed that the subreport page width matched the main report
but the margins remained zero. So the subreport had a printable width of
216mm and the main report showed 196mm. When I create the columns they
overflow the main report's margins and page width.
I think I know what I need to do now, but I'm wondering if this behaviour
has been fixed in the newer versions of RB?
Thanx,
TFehr
Which version of ReportBuilder are you currently using? In my testing, it
looks as though this issue has been resolved but I will check our bug fix
logs to be sure.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanx again,
TFehr
I did some more testing and found that this behavior only occurs when you
try to assign margins to a subreport that are beyond the margins of the main
report. Then the column spacing definitions are taken literally for the
subreports margins and the subreport is moved to the left. This is a tricky
issue because simply fixing it for this case will break many other reports
that depend on this behavior in different circumstances. I will log this
issue to be addressed for the next release of ReportBuilder. As for now,
you will need to manually assign the column spacing values if they are
shifted incorrectly.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com