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

Canvas does not allow drawing, again....

edited March 2002 in General
Okay it's me again

I am using Delphi 6 Ent with RB 6.03 Std. I have several reports in my
application. It runs on various platforms
WinNT, Win9x, Win2k & WinXP but there is one Pc ( laptop ) which has a
problem when printing.

As soon as I want to change a control on the report with the following line
:

(FindUserObject('KlantNaam') as TppLabel).Caption := strNaam;

or with an absolute value e.g. : 'Paul';

the programm errors with Canvas does not allow drawing.

The laptop runs WinNT 4 with latest SP 6.

I received an email with an update for the ppPrtn.pas ( Don't sure about the
unit name ) and I had the customer send his laptop to me. Here it worked
fine, now the laptop is back again, it doesn't work. It produces the same
error.

Anyone got an idea/answer/sollution about/on this problem,

Comments

  • edited March 2002
    You could test with a report object loop where you find the component. See
    the TechTips newsgroup in the code based thread for an article describing
    how you can alternatively find a component in a report. If you have
    subreports, you'll need to access the Subreport.Report property in order to
    perform the search.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.