Uwe Grauer wrote:
> Kyle Stevens wrote:
>   
>> Dabo looks great, but I have some wxPython applications and I would like 
>> to try just using Dabo's report designer for now.  I created an 
>> application using the AppWizard, along with a sample report.  I tried 
>> running FrmReportSample.py, hoping it would be that simple, but I 
>> received the error below.  Has this ever been tried before?  Any hints 
>> to help me figure this out?  Thanks for any help.
>>
>> Microsoft Windows XP [Version 5.1.2600]
>> (C) Copyright 1985-2001 Microsoft Corp.
>>
>> C:\Documents and Settings\kyle.NEPCO2>"C:\Program Files\Dabo 
>> Runtime\ide\wizards
>> \AppWizard\Estimate\ui\FrmReportSample.py"
>> Traceback (most recent call last):
>>   File "C:\Program Files\Dabo 
>> Runtime\ide\wizards\AppWizard\Estimate\ui\FrmRepor
>> tSample.py", line 11, in <module>
>>     from FrmReportBase import FrmReportBase
>>   File "C:\Program Files\Dabo 
>> Runtime\ide\wizards\AppWizard\Estimate\ui\FrmRepor
>> tBase.py", line 7, in <module>
>>     class FrmReportBase(dabo.ui.dDialog):
>> AttributeError: 'module' object has no attribute 'dDialog'
>>
>> C:\Documents and Settings\kyle.NEPCO2>
>>
>>     
>
> Would you please post your version information by using the menuitem
> Help/About in any dabo application (e.g AppWizard, ...)? You can copy
> the contents of the About dialog to the clipboard and paste it into a
> email. Maybe it is a problem with your specific version.
>
> Uwe
>
>   
Thanks for the reply.

Below is my version information.  So it should be possible to use the 
Dabo reports from a normal wxPython application without too much fuss?

Python: 2.5.1
Dabo: 0.8.1s; Revision 3252
UI Version: 2.8.4.0

{'name': 'Dabo IDE version', 'value': '0.7.1s (revision 810)'}

I tried something similar to the following (but this exact code I found 
on the mailing list, I modified it slightly), but it didn't work.

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()


_______________________________________________
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