Home > Back-end >  How to save the database type of binary image is inserted into the EXCLE inside?
How to save the database type of binary image is inserted into the EXCLE inside?

Time:09-28

I saved in the database a BOLB type of image file, now I will read this file into TmemoryStream, how to use TmemoryStream inserted the inside of the image files to EXCEL in? EXCLE insert pictures only found the following method
 
Lv_Excel:=CreateOleObject (' Excel. Application);
Lv_WorkBook:=Lv_Excel WorkBooks. Add;
Lv_WorkSheet:=Lv_WorkBook WorkSheets [1].
Lv_WorkSheet. Activate;
Lv_WorkSheet. Select;

Lv_WorkSheet. Pictures. Insert (' D: \ Delphi \ TEST JPG). Select;
Lv_WorkSheet. Pictures. Left:=100;
Lv_WorkSheet. Pictures. Top:=200;

Lv_Excel. Visible:=True;
Insert don't accept TmemoryStream object for the great spirit

CodePudding user response:

Pictures can't save first?
  • Related