L
luckystar
Unregistered / Unconfirmed
GUEST, unregistred user!
Worksheet顯示不出來,我不知如何新建一個sheet
try
begin
ExcelApplication1.Connect;
ExcelApplication1.Visible[0]:=true;
ExcelApplication1.Workbooks.Add(emptyparam,0);
ExcelWorkBook1.ConnectTo(ExcelApplication1.Workbooks[1]as _workbook);
ExcelWorkSheet1.ConnectTo(ExcelWorkBook1.Worksheets[1]as _worksheet) ;
ExcelWorkSheet1.Cells.Item[7,1]:='happy';
end
except
showmessage('請檢查是否安裝Excel!');
end;


請盡快告知﹐我現在很急
try
begin
ExcelApplication1.Connect;
ExcelApplication1.Visible[0]:=true;
ExcelApplication1.Workbooks.Add(emptyparam,0);
ExcelWorkBook1.ConnectTo(ExcelApplication1.Workbooks[1]as _workbook);
ExcelWorkSheet1.ConnectTo(ExcelWorkBook1.Worksheets[1]as _worksheet) ;
ExcelWorkSheet1.Cells.Item[7,1]:='happy';
end
except
showmessage('請檢查是否安裝Excel!');
end;


請盡快告知﹐我現在很急