C clwlyc Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-12 #1 個位大俠,請問:如何向EXCEL插入圖片,並控制其顯示比例?一百分
C clwlyc Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-12 #2 個位大俠,請問:如何向EXCEL插入圖片,並控制其顯示比例?一百分
星 星魂1981 Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-25 #3 可以在Excel中把操作录制成宏后把VBA代码改写成Delphi代码即可
M mlin Unregistered / Unconfirmed GUEST, unregistred user! 2005-08-04 #4 var ExcelApp,MyWorkBook,FWorksheetleVariant; FPicture:OleVariant; //插入图象并设置位置与大小 tmpstr:=uMain.Path+'image001.jpg'; //uMain.Path是图片路径 FPicture:=FWorksheet.Pictures.Insert(tmpstr); FPicture.Left:=60; FPicture.Top:=10; FPicture.width:=100; FPicture.height:=100; FPicture:=null; ExcelApp.visible:=true;
var ExcelApp,MyWorkBook,FWorksheetleVariant; FPicture:OleVariant; //插入图象并设置位置与大小 tmpstr:=uMain.Path+'image001.jpg'; //uMain.Path是图片路径 FPicture:=FWorksheet.Pictures.Insert(tmpstr); FPicture.Left:=60; FPicture.Top:=10; FPicture.width:=100; FPicture.height:=100; FPicture:=null; ExcelApp.visible:=true;