0
私はExcel 2007のにHTML本部をエクスポートする必要がある以上 のみ 2007(xslx)をExcelにエクスポートするためにどのような方法があるすべてのための 感謝書き出しHTML本部にExcel 2007の(xslx)
私はExcel 2007のにHTML本部をエクスポートする必要がある以上 のみ 2007(xslx)をExcelにエクスポートするためにどのような方法があるすべてのための 感謝書き出しHTML本部にExcel 2007の(xslx)
ここには、あなたを動かすことができる最小の例があります。
Imports excel = Microsoft.Office.Interop.Excel
Module Module1
Sub Main()
DoIt()
End Sub
Private Sub DoIt()
Dim officeApp As New excel.Application() 'make an instance of Excel
Dim workBook As excel.Workbook 'make an instance of a WorkBook
workBook = officeApp.Workbooks.Add 'put a WorkBook in that instance you just made
Dim workSheet As excel.Worksheet 'make an instance of a Worksheet
workSheet = workBook.Sheets(1) 'put a sheet in that Instance
workSheet.Cells(1, 1).value = "This is my value" 'modify the value of cell 1,1
workBook.SaveAs("c:\temp\myxls.xls") 'save the Excel file.
End Sub
End Module
はい。 [あなたはvb.netからXLSファイルを書くことができます] –
PowerShellも良い選択かもしれません。 – lit
次の記事を参照してください。https://stackoverflow.com/questions/9699311/accessing-interop-office-excel-library-from-asp-net-web-application –