1) picture aligned with columns:
in version 4 I wrote something like this:
Code: Select all
with XLS[0].DrawingObjects.Pictures.Add do
begin
PictureID := XLS[0].DrawingObjects.Pictures.Count;
PictureName := mp.Filename;
Col1 := 0;
Row1 := 0;
Col2 := 2;
Row2 := 5;
end;
Now with:
Code: Select all
Image := XLS[0].Drawing.InsertImage(strFileName, 0, 0, 0, 0, 1);
Image.Col1 := 0;
Image.Row1 := 0;
Image.Col2 := 2;
Image.Row2 := 5;
2) Columns width Excel 2007
Code: Select all
XLS.clear;
XLS[0].Columns[0].PixelWidth :=70;
XLS.write;
Delphi version is 2007 and xlsreadwrite 5 version is the latest 5.20.15
Let me know, thanks
-Massimo