Afficher la chaîne dans la feuille de calcul Cell
Contents
[
Hide
]
VSTO
Excel.Workbook myWorkbook = this.Application.Workbooks.Open(fileName);
Excel.Worksheet mySheet = myWorkbook.ActiveSheet;
Excel.Range cells = mySheet.Cells;
cells.set_Item(1, 1, "Some Text");
Aspose.Cells
Workbook myWorkbook = new Workbook(fileName);
Worksheet mySheet = myWorkbook.Worksheets[myWorkbook.Worksheets.ActiveSheetIndex];
Cells cells = mySheet.Cells;
cells[0, 0].PutValue("Some Text");
myWorkbook.Save(fileName);