On 1/23/10 1:56 PM, Carey Gagnon wrote:
>>
>> Then take a look at your report.rfxml and note the expr. What's the
>> difference?
>>
>> There is no difference in the expression.
> The image is in the same directory as the rfxml file.
> This is why I'm puzzled that it shows up when doing a preview in Report
> Designer or running the modified dabo/lib/reporting_tests/
> invoice_demo/invoice.py, but I get an error when the report is run from the
> live app. The only part of the error message I can see when the live report
> is run is:
> expr error>>
>
> Does it make a difference that I am using the modified
> datanav-records-list.rfxml (this is my report). I run this with Quick Report
> from the live app.
Look at the code in dabo/lib/reportWriter.py, and see line 1418. I think this
is the
error you are getting. Add one line that just says 'raise' right before the
drawCenteredString call. So the code should look like:
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.
Paul
_______________________________________________
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]