Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Canvas does not print allow drawing error

edited July 2008 in General
Hi Everyone,

Basic summary of the development tools
Delphi6 - Update Pack 2
ReportBuilder Enterprise Edition version 6.03

Ok lets get to the problem. Recently alot of documents we generate from an
application raises a "Canvas does not allow drawing" error. Previously we
got the odd one but now 1 in 4 documents fail! I've noticed the documents
that tend to fail alot have an image we dynamically load into the report
from the file sysem depending on the product the customer purchased. Does
anyone know of an issue with loading and printing images e.g. image hasn't
completed laoding before the job is sent to print?

All we currently do is
if sSigLocation <> '' then

Image1.Picture.LoadFromFile(sSigLocation);

But is there something we should doing before and after load? Of course my
thinking could be completely wrong and the issue we have in our application
has nothing to do with TppImage. So any pointers would great.

Any help would be appreciated as our customer is starting to get rather
frustrated.

Thanks
Stuart

Comments

  • edited July 2008

    I recommend updating to RB 10. There have been countless improvements since
    RB 6.x, including memory management and image handling. Trial versions can
    be download from our web site.

    RB 10 can open and run reports created by prior versions. RB 10 includes
    support for D6, D7, D2005, D2006, D2007.

    Please also consider updating from Delphi 6 to D2007.

    For the development tools that you like, use, and depend upon for your
    business please consider supporting them by updating. This enables the
    companies to continue to improve the products, provide technical support,
    etc.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2008
    Hi Again,

    I've downloaded the trial version to see if it will help with the print
    issue we are experiencing below. The problem is when I build our code. Due
    to TExtraDevices needing to reference old RBuilder 6.03 packages I cannot
    compile our application.

    I'm hoping to change as little as possible so is there a simple way of
    updating to the trial verion without having to rip all the Textradevice
    references and update them to use the ppReport Pdf file options?

    Cheers
    Stuart

    P.S. Looks great when I run it on a build without TExtraDevices.

  • edited July 2008
    RB 10 includes built-in support for exporting to PDF. For testing the trial
    version, comment out your references to TExtraDevices.

    The latest TExtraDevices supports RB 10.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2008
    Thanks. Did option 1. Hopefully we will be upgrading for real shortly once I
    have done some testing


This discussion has been closed.