[reportlab-users] Values in Page Header

Derik Barclay reportlab-users@reportlab.com
Thu, 12 Aug 2004 14:25:52 -0400


I am not sure it can be done unless you know ahead of time where the page 
breaks are.
If you knew you could create a list of page titles and move through the list 
in the beforePage...

On August 12, 2004 02:03 pm, CLIFFORD ILKAY wrote:
> Hello,
>
> Imagine a grouped report, say a sales report by country. At the top of each
> page, I want to have a title 'Sales for: %s' % theCountry. I am using a
> SimpleDocTemplate with myFirstPage and myLaterPages and building up the doc
> by iterating through the results of a db query. How do I inject the value
> of theCountry in the page header for every page? I read about the
> beforePage method and thought it might be useful but do not understand how
> to use it.
>
> Regards,
>
> Clifford Ilkay
> Dinamis Corporation
> 3266 Yonge Street, Suite 1419
> Toronto, Ontario
> Canada M4N 3P6
>
> Tel: 416-410-3326
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users

-- 
Givex - http://www.givex.com/ 
Derik Barclay<dbarclay@givex.com>
+1 416 350 9660