[solved]LazReport with StringGrid : Image in Data band lazarus / 31-LCL ---------------------------------------------------------------------- Pabdym · 2012-09-23 09:32 Hi, I use lazreport with a Stringgrid. I read '/lazarus/components/lazreport/doc/tutorials/stringgrid/en/Tutorial LazReport and StringGrid.pdf' : It work's fine. Now, I try to place an image in the (Master) Data Band of my Report. This image varies according to the value of a cell of the Stringgrid.row  (sg0.png and sg1.png). How to proceed? Thanks. Laz 1.1-37902 fpc-2.6.1-20120709-win32 ---------------------------------------------------------------------- Pabdym · 2012-09-23 10:05 Sorry, I tried with frReport1GetValue(const ParName: String; var ParValue: Variant );                                                                        The solution is in the forum  http://www.lazarus.freepascal.org/index. php/topic,16028.msg86718.html#msg86718 Code: [Select]procedure TForm1.frReport1EnterRect(Memo: TStringList; View: TfrView); begin    if View.Name = 'Picture1' then      if sgEV.Cells[sgEV_repEL, fila] = '0' then        TFrPictureView(View).Picture.LoadFromFile('sg0.png')      else        TFrPictureView(View).Picture.LoadFromFile('sg1.png'); end;    Remark: if you want to load a Timage of the Form, the good syntax is "TFrPictureView(View).Picture.Bitmap := imSG0.Picture.Bitmap" and not "TFrPictureView(View).Picture := imSG0.Picture".   I usually work (worked) with Delphi and I discover Lazarus (Windows and Linux) :  congratulations ! I believe that I am going to try with OS X. Do you know if Lazarus can be installed on the new Mac mini (http://www.apple.com/macmini/) ? ---------------------------------------------------------------------- IndianaJones · 2012-09-23 16:04 QuoteI believe that I am going to try with OS X. Do you know if Lazarus can be installed on the new Mac mini (http://www.apple.com/macmini/) ? Of course, you can install FreePascal/Lazarus to the new Mac OS Mountain Lion. ---------------------------------------------------------------------- Pabdym · 2012-09-24 07:27 OK Thanks.