Steve Rose wrote:
> I have a report working well, however I would like to set a string's text in
> the PageHeader based on a selection the user made in the calling form.
> 
> rw = dReportWriter()
> rw.ReportFormFile = "myReport.rfxml"
> rw.Cursor = self.ds
> rw.OutputFile = f = reportUtils.getTempFile()
> 
> # I'd like to create a report variable or property visible to the report
> object about here:
> # ................
> rw.write()
> 
> I've tried a number to things but nothing has worked so far.  It is
> painfully obvious, no doubt.

Not really, actually. There are a couple general ways to do it:

1) Add a field to the dataset (yes, repeated on every row).

2) Assign an attribute (of the form, report writer, whatever):

rw = dReportWriter()
rw.my_value = "The Phantom Menace"
...

and then refer to it in the report rfxml using: "self.my_value"

Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to