I installed Dabo on a new computer (Win XP Pro) and everything works fine
except for reports.
>From Python I can "import reportlab" successfully.
To try to debug this, I set up a simple program that calls an rfxml file:
import dabo
from dabo.dReportWriter import dReportWriter
from dabo.lib import reportUtils
rw = dReportWriter()
rw.ReportFormFile = "xxTest.rfxml"
rw.OutputFile = f = reportUtils.getTempFile()
rw.write()
reportUtils.previewPDF(f)
if __name__ == "__main__":
app = dabo.dApp()
app.start()
When I run this I get the following trackback:
Traceback (most recent call last):
File "xxTest.py", line 15, in <module>reportUtils.previewPDF(f)
File
"c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportUtils.py",
line 43, in previewPDF
os.startfile(path)
WindowsError: [Error 22] Application not found:
'c:\\docume~1\\admini~1\\locals~
1\\temp\\tmpggwmuy.pdf'
Then rfxml file was generated using ReportWriter and all I did was add a
string to the Pageheader; nothing else.
I also get the following traceback when I'm in the Report Designer and click
on Preview:
Traceback (most recent call last):
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line
1383
0, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File
"c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
n.py", line 949, in raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File
"c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\eventMixin.p
y", line 93, in raiseEvent
bindingFunction(event)
File "C:\aaa\dabo\ide\ReportDesigner.py", line 2556, in onPageEnter
self.render()
File "C:\aaa\dabo\ide\ReportDesigner.py", line 2562, in render
self.Form.onFilePreviewReport(None)
File "C:\aaa\dabo\ide\ReportDesigner.py", line 2442, in onFilePreviewReport
reportUtils.previewPDF(fname)
File
"c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportUtils.
py", line 43, in previewPDF
os.startfile(path)
WindowsError: [Error 22] Application not found:
'c:\\docume~1\\admini~1\\locals~
1\\temp\\tmpgjipaz.pdf'
Looks like the temp pdf file is not being created for some reason. Any
suggestions on where to troubleshoot from here?
Thanks,
Steve Rose
Platform: Win
Python Version: 2.5 on win32
Dabo Version: Version 0.9.2; Revision ~5238
UI Version: 2.8.1.1 on wxMSW
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]