[reportlab-users] Values in Page Header

CLIFFORD ILKAY reportlab-users@reportlab.com
Thu, 12 Aug 2004 14:03:14 -0400


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