Moving a picture dynamically

I'm trying to move a picture object using code but I can't seem to get it to work. Has anyone else been able to do this or know how to?

Basically I've been dropping a picture object onto the stage (loading an image) and setting left in the properties window to 0. I then implement one of the onAfterPrint / onBeforePrint methods. I've tried implementing quite a few events from the page to the picture level with no luck. All my code does is this:
Picture1.Left := 5;

This doesn't seem to work. Any ideas how to get this to work?

Thanks, Troy

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:18AM
    Your not very clear where are you trying to do it from delphi code or code in the report.
    in the report use the obp event of the band that contains the pictureview.
    typically
    if (somecondition = true) then picture1.left := doubleprecision value in pixels;
    works fine for me.

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.