Home General

Loading a picture at runtime

edited June 2011 in General

I'm Using Delphi 7, Report Builder 10.06,
Have a client that has multiple companies and we have a number of reports
that need Logo's.
The reports are the same - only the logo alteres for each company
The logo's are stored as JPG files and the location and name are stored in
global variables loaded from an ini file.
I am using "imgLogo.Picture.Graphic.LoadFromFile(gsLogo)" and this works
when the TppReport has the report with the imgLogo in it but when you alter
another report without the imgLogo it will not compile with the following
message :-
[Error] uReportBuilder.pas(4133): Undeclared identifier: 'imgLogo'
How can I get aroung this?????

Thanks Rob


This discussion has been closed.