For future reference, please post RAP questions in the RAP newsgroup. This helps us understand exactly which part of ReportBuilder you are using so we can answer your questions quicker and more accurately.
You will need to create a RAP Passthru function that allows you to use the FileExists method. For an example of creating a passthru function for RAP, please see the ReportBuilder Developer's Guide located in the RBuilder\Developer's Guide\... directory.
Comments
1. If you are loading a jpeg or gif, be sure you have the corresponding
ReportBuilder units in your "uses" clause... ppJPEG, or ppGif.
2. You can load an image into a TppImage component by using the
TppImage.Picture.LoadFromFile method. For instance...
ppImage1.Picture.LoadFromFile('c:\myImage.bmp');
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
OK, but.. how can I protect if the file don't exist?
Moro
uses
SysUtils
...
lsFileName := 'c:\myImage.bmp';
if FileExists(lsFileName) then
ppImage.Picture.LoadFromFile(lsFileName);
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm writing code in the calc tab of the project designer..
it don't compile FileExists
Moro
For future reference, please post RAP questions in the RAP newsgroup. This
helps us understand exactly which part of ReportBuilder you are using so we
can answer your questions quicker and more accurately.
You will need to create a RAP Passthru function that allows you to use the
FileExists method. For an example of creating a passthru function for RAP,
please see the ReportBuilder Developer's Guide located in the
RBuilder\Developer's Guide\... directory.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com