"canvas does not allow drawing"
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
My computer is XP Pro english.
Help
Thanks
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?
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com