Beginning VSTO Development

前端 未结 3 1526
青春惊慌失措
青春惊慌失措 2020-11-30 19:26

I\'m quite confused with what are the necessary tools for VSTO develpment. Specifically I want to manipulate Excel 2003/2007 documents programmatically. I did quite a lot of

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 20:13

    You can create excel with Express Edition using this Excel .NET component. It doesn't require VSTO, ADO or MS Excel automation.

    Excel Jetcell .NET component allows to read write excel spreadsheet. Here you can find many Excel VB.NET and C# examples. For example see VB.NET code to create excel spreadsheet from array:

    Imports DTG.Spreadsheet
    ...
    Dim WBook = New ExcelWorkbook()
    WBook.Worksheets.Add("ArrayValues")
    For i As Short = 0 To 10
       For j As Short = 0 To 10
          WBook.Worksheets(0).Cells[i,j].Value = arr(i,j)
          j = j + 1
       Next j
       i = i + 1
    Next i
    WBook.WriteXLSX("ExcelSpreadsheet.xlsx")
    

提交回复
热议问题