Hi all,

I am trying to open a report from a button in my gui.

The code I have (called when the button is pressed) is this:

def writeReport01(self):
        rw = self.ReportWriter
        app = self.Application
        rw.ReportFormFile = os.path.join(app.HomeDirectory,"report01.rfxml")
        mybizObj = self.getBizobj(dataSource="t_persoon")       
        rw.Cursor =  mybizObj.DataSource
        f = rw.OutputFile = reportUtils.getTempFile()
        rw.write()
        reportUtils.previewPDF(f)


This results in a .pdf being generated, but it reports the following errors in 
stead of field contents:
'str' object has no attribute 'has_key'

Any idea what I have done wrong here? 

Regards,
Dennis



_______________________________________________
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