Kyle Stevens wrote:
> Just wanted to mention that I saw 
> http://www.mail-archive.com/[email protected]/msg03366.html.  The 
> relevant part is shown below.  Why is that not possible?  What is wrong 
> with it, or what is missing to make it valid? Thanks again for any help.
> 
>> You can't do something like:
>>
>> from dabo.dReportWriter import dReportWriter
>> from myReports import getReportCursor
>>
>> myCursor = getReportCursor()
>> rw = dReportWriter(ReportFormFile="path/to/your.rfxml",
>>                     OutputFile="/tmp/out.pdf",
>>                     Cursor=myCursor)
>> rw.write()

I wasn't making a statement with that, but asking a question (look 
closely and you'll see the "?"). So, the posted code should work, given 
that some prerequisites are in place. Notably, that you have a 
myReports.py script that defines a getReportCursor() function, that 
returns a dataset (a list of "records", where each record is a dict of 
field names->field value mappings).

Note that the report writer and the report designer are two different 
beasts:

Report Writer: runtime use; takes a .rfxml file which defines the 
report, adds a dataset or "Cursor", and outputs a pdf file.

Report Designer: visually design your .rfxml file.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to