C# save textbox as excel error

Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.ApplicationClass();

The error is as follows:

Error CS1752 Cannot embed interop type 'ApplicationClass'. Please use the applicable interface instead.

Modify the following error to solve:

Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325337832&siteId=291194637