dabo Commit
Revision 6630
Date: 2011-06-17 16:58:01 -0700 (Fri, 17 Jun 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6630
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Reprinting of group headers from the printing of a detail band should only
reprint
group headers higher in the list than the current group. Otherwise, output from
the unneeded lower groups can overwrite the output of this group. Fixed.
Please check all your reports and notify dabo-dev with any new issues.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2011-06-17 22:22:03 UTC (rev 6629)
+++ trunk/dabo/lib/reportWriter.py 2011-06-17 23:58:01 UTC (rev 6630)
@@ -2341,17 +2341,22 @@
def reprintGroupHeaders(currentGroup, bandDict, y):
self = bandDict ## to allow "self" references from
groupHeader object
for group in groups:
+ reprinted = False
reprint = group.get("ReprintHeaderOnNewPage")
if reprint is not None:
reprint = eval(reprint)
if reprint:
if currentGroup != group: ## avoid
printing twice
y = printBand("groupHeader", y,
group)
- else:
+ reprinted = True
+ if not reprinted:
# Even though we aren't reprinting this
header, we still need to restart
# any spanning objects which would have
been closed at the end of the
# last page.
y = storeSpanningObjects("groupHeader",
y, group)
+ if currentGroup == group:
+ ## don't reprint headers further down
the line
+ break
return y
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]