How to load an image

Hello:

I have four TImage components on a form. The user can select which images to load on each component.

Eventually, when all the images are loaded I want to print them on a report with other data.

How can I pass the TImages picture to frxReport?

thank you

Comments

  • edited 8:29AM
    I answer to myself.

    Var frImage1: TfrxPictureView;
    begin
    frImage1 := frxReport1.FindObject('Picture1') as TfrxPictureView;
    frImage1.Picture := MyImage.Picture;

    2 hours wasted looking for the solution in the programers and users guide. Only 5 minutes after writting a new post asking for help I find the answer.

    Well, nobody can say asking for help is not usefull... ;)

    Anyway, I hope the answer could help somebody else.

    Bye.

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.