花
花背鼠
Unregistered / Unconfirmed
GUEST, unregistred user!
ExcelID := CreateOleObject( 'Excel.Application' );
excelId.workbooks.open('d:/1.xls');
excelid.worksheets.add;
ExcelID.WorkSheets[4].Activate;
★ ExcelID.ActiveSheet.Columns.Columns[3].ColumnsWidth := 5;
ExcelID.cells[2,3].Borders[4].Weight := 3;
for i:=1 to 20 do
excelid.cells[1,i]:='1 2 ';
excelid.rows[1].Font.UnderLine := True;
ExcelID.ActiveSheet.PrintPreview;
excelid.workbooks.close;
excelid.quit;
执行到★说是:‘raised exception class EOLeError with message
'Method'ColumsWidth' not supported by automation object'’
excelId.workbooks.open('d:/1.xls');
excelid.worksheets.add;
ExcelID.WorkSheets[4].Activate;
★ ExcelID.ActiveSheet.Columns.Columns[3].ColumnsWidth := 5;
ExcelID.cells[2,3].Borders[4].Weight := 3;
for i:=1 to 20 do
excelid.cells[1,i]:='1 2 ';
excelid.rows[1].Font.UnderLine := True;
ExcelID.ActiveSheet.PrintPreview;
excelid.workbooks.close;
excelid.quit;
执行到★说是:‘raised exception class EOLeError with message
'Method'ColumsWidth' not supported by automation object'’