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

"canvas does not allow drawing"

edited February 2004 in General
I know this has been reported number of times but I still get this error.
We are using D7, RB 7.03. I use RB in an EWF(ISAPI) application and load my
report template dynamically. The report component itself is on a
TDataModule. Eventhough, we don't print our reports onto screen per se, I
have set the Report.Printer.PrinterName to "Screen" according to some
previous posts. Yet, I get this error when I create a TppLabel object for
calculating widths at runtime. The error specifically occurs when I try to
set/access the TppLabel's Font object. I observed that the error occurred if
the Fon't OnChange event handler is assigned. So I tried assigning nil to
the Font's Onchange handler and it seems to be working fine.

I am not sure if this is the right thing to do. Just wondering is anybody
has any ideas...

Thanks
Vikram

Comments

  • edited February 2004
    Hi Vikram,

    Usually this error implies there is a resource leak either having to do with
    your printer or graphics driver. If assigning the OnChange event to nil
    seems to help, I would say stick with it :). You may also want to run your
    application through a QA program to ensure you are not leaking memory or
    resources.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    I am same message, if add DBTEXT into the report.
    My computer is XP Pro english.

    Help
    Thanks
  • edited February 2004
    Hi Caroline,

    Try updating your graphics driver and printer driver and see if that helps.
    If you place a single empty DBText on an empty report, do you see the error?

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.