TfrxPictureView.FileLink

GreatDayDanGreatDayDan Keller, Texas
edited 9:42AM in FastReport 4.0
Good Morning!

I was wondering how to load a picture into the TfrxPictureView component, given the filename of the image.

I found the FileLink method, but I am not sure how to use it.

Can you provie a short code sample on how to do this?

Thaks...Dan'l ;)

Comments

  • edited 9:42AM
    Just put the file name in this property. You can also put a variable with filename:
    [myvar]
  • GreatDayDanGreatDayDan Keller, Texas
    edited 9:42AM
    Good Morning!

    Coolness!

    What report event should I use?

    What if there is not image for this record? Use an if fileexists...?

    Thanks...Dan'l
  • edited 9:42AM
    You can use OnBeforePrint event for picture and check if file exists.
  • edited 9:42AM
    Good Morning!

    Coolness!

    What report event should I use?

    What if there is not image for this record? Use an if fileexists...?

    Thanks...Dan'l

    Hi guys, soory to be a pain. I'm trying to do similar and can;t get either FileLink or File Exists to work. Would you be so kind as to give an example of their usage?

    I'm using C+= script.

    Many thanks.

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.