Can not find the interop type that matches the embedded [closed]

-2

type 'Microsoft.Office.Interop.Excel.Application' . Are you missing an assembly reference?

 FileCopy("\Thulller\Sistema\ModeloAbertaFechada.xls", "\Thulller\Sistema\Financeiro\" + txtNomeDoc.Text + ".xls")
            Dim xlApp As Excel.Application
            Dim xlWorkBook As Excel.Workbook
            Dim xlWorkSheet As Excel.Worksheet
            xlApp = New Excel.Application
            xlWorkBook = xlApp.Workbooks.Open("\Thulller\Sistema\Financeiro\" + txtNomeDoc.Text + ".xls")
            xlWorkSheet = xlWorkBook.Worksheets("Plan1")
    
asked by anonymous 12.07.2016 / 15:38

1 answer

0

The above message says that you are missing a Reference DLL "Microsoft.Office.Interop.Excel.Application", make sure you have added a reference to this DLL in your project. From my analysis I saw that you are using Microsoft Office Tools , add the reference to DLL as in the example below.

Remembering that this extension is available in NET FRAMEWORK 4.0 Client Profile .

    
12.07.2016 / 17:19