Unkown Type "TPicture"

I have a report page where I want to load a background image before reporting:

MyPage.BackPicture.LoadFromFile('MyImage.jpg');

If I make a preview now, I got the following error

"Unknown Typ TPicture"

...with the cursor placed to the word "LoadFromFile".

Any ideas????

Comments

  • edited 5:48AM
    Fixed. But, anyway, you can't change this property from a script.
  • edited 5:48AM
    wrote:
    But, anyway, you can't change this property from a script.

    Not????? But wouldn't it be a nice feature for further versions??? Problem: Each report page has it's own background image dependant from it's data. It would be easier to implement the loading mechanism directly into the report instead of controlling this outside.
  • edited 5:48AM
    I am agree with you. If we can not do that, what's the reason to access the Picture member by script ?
  • edited 5:48AM
    When the page is started, you cannot change ANY of its properties. It is by design.

Leave a Comment