How to print a picture that stored in a file?
Question: How to print a picture that stored in a file?
Answer:
a) use TfrReport.OnBeforePrint event:
1 2 3 4 |
if View.Name = 'Picture1' then TfrPictureView(View).Picture.LoadFromFile(...) or .Assign or .everything_what_you_want |
b) in the script:
1 2 3 |
begin Picture1.LoadFromFile(filename) end |