1 Pluspunkt 0 Minuspunkte
Wie öffne ich am einfachsten ein neues Excel Sheet in C# und füge Inhalte ein?
von  

1 Antwort

0 Pluspunkte 0 Minuspunkte

Hier hast du ein einfaches Beispiel:

using Excel = Microsoft.Office.Interop.Excel;

var excelApp = new Excel.Application();
excelApp.Visible = true;
excelApp.Workbooks.Add();
Excel._Worksheet workSheet = (Excel.Worksheet)excelApp.ActiveSheet;
workSheet.Cells[1, "A"] = "ID Number";
workSheet.Cells[1, "B"] = "Current Balance";
von (396 Punkte)