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 1:37AM
    Fixed. But, anyway, you can't change this property from a script.
  • edited 1:37AM
    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 1:37AM
    I am agree with you. If we can not do that, what's the reason to access the Picture member by script ?
  • edited 1:37AM
    When the page is started, you cannot change ANY of its properties. It is by design.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.