I am using Visual Studio 2008, VB to write a little exe program to manipulate an EXCEL spreadsheet. One of the task is to save a particular sheet to a HTML file. I use the following three lines of code to save the sheet "TestSuite" to a HTML file "N:\Result.html".
Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
But my Visual Studio comes up an error "Name 'XlFileFormat' is not declared" . I think XlFileFormat is included in Microsoft.Office.Interop.Excel namespace. I already add Microsoft.Office.Interop.Excel as reference to my solution. But VS still come up the same error message. What should I do? Do I have the wrong version of VS or .Net framework?
never mind, finding right soluiton in 7 minutes deserves an award, all the best :)
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.