Wie automatisieren von Microsoft Excel 2010 von Visual Basic .NET 2010

ich habe meine Datenbank in VB2010 und das möchte ich betonen 2 Tabellen aus dieser Datenbank in MS Excel 2010. Ich kam in http://support.microsoft.com/kb/301982 aber selbst nachdem die Schritte, die ich bin immer ein Fehler: Typ 'Excel.Application " ist nicht definiert.

Imports Microsoft.Office.Core
Imports Microsoft.Office.Interop.Excel
Imports System.Data

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles Button1.Click
        Dim oXL As Excel.Application
        Dim oWB As Excel.Workbook
        Dim oSheet As Excel.Worksheet
        Dim oRng As Excel.Range
        '' etc...
    End Sub

End Class
InformationsquelleAutor Naad Dyr | 2012-03-03
Schreibe einen Kommentar