Setting a picture to a picture object at run time

I have a picture object wich needs to be inserted with a picture at run time
the picture is not from a table but a directory wich comes through
a parameter.

i want to load this file into the picture object, like i go to it at design time
double click it and load a picture from a selected directory.

How can this be done?

Regards,
Shlomi

Comments

  • edited 5:53AM
    You can load the picture either from script or delphi code:

    script of TfrPictureView:
    LoadFromFile(filename)

    delphi code (TfrReport.OnBeforePrint):
    if View.Name = 'Picture1' then
    TfrPictureView(View).Picture.LoadFromFile(filename)

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.