>
> if img:
> try:
> c.drawImage(img, 0, 0, width, height, mask,
> preserveAspectRatio=preserveRatio)
> except StandardError:
> raise
> c.drawCentredString(0, 0, "<< Image expr error >>")
>
> Now run your app and the report again. This will raise the eaten exception
> and will
> probably point to the cause of the problem.
>
>
Thanks Paul. That was the charm. As someone mentioned previously it was a
path error.
raise IOError('Cannot open resource "%s"' % name)
IOError: Cannot open resource "raise IOError('Cannot open resource "%s"' %
name)
IOError: Cannot open resource
"/media/disk/Python_Programs/tutorials/timeReporting/report_top.jpg"
I had the image in
/media/disk/Python_Programs/tutorials/timeReporting/reports....
I moved the image to the root directory of the App and it displayed fine.
I'm curious because the only example for an image I had to go by was in the
dabo/lib/reporting_tests/
invoice_demo/invoice.rfxml where the image is in the same directory as the
rfxml file.
I don't want to clutter up the apps root directory so I moved the image to
the resources directory, changed the expression to read
resources/report_top.jpg and all works great.
You've created a wonderful tool with Dabo and are very gracious with
supporting it.
My sincerest thanks
Carey
--- 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]