dabo Commit
Revision 5796
Date: 2010-04-23 16:01:39 -0700 (Fri, 23 Apr 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5796
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Spanning objects weren't reprinting on subsequent pages if that group's
ReprintHeaderOnNewPage was False. Spanning objects get drawn and closed
when each page is finished, so they need to get restarted on subsequent
pages regardless of whether other objects in the group header are to be
reprinted.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2010-04-23 22:21:24 UTC (rev 5795)
+++ trunk/dabo/lib/reportWriter.py 2010-04-23 23:01:39 UTC (rev 5796)
@@ -2070,10 +2070,27 @@
reprint = group.get("ReprintHeaderOnNewPage")
if reprint is not None:
reprint = eval(reprint)
- if reprint:
- y = printBand("groupHeader", y,
group)
+ if reprint:
+ y = printBand("groupHeader", y, group)
+ else:
+ # 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)
return y
+
+ def storeSpanningObjects(band, y, group):
+ bandDict = group[band]
+ x =
bandDict.getPt(bandDict.ReportForm["Page"].getProp("MarginLeft"))
+ objects = bandDict.get("Objects", [])
+ for object in objects:
+ if object.__class__.__name__ in
("SpanningLine", "SpanningRectangle"):
+ x1 = object.getPt(object.getProp("x"))
+ x
+ self.storeSpanningObject(object, (x1,
y), group)
+ return y
+
+
# Need to process the variables before the first beginPage() in
case
# any of the static bands reference the variables.
processVariables()
_______________________________________________
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]