Hello.
Is there a way to add/embed an excel file as a part of a project in vb2010?
I have tried to add it as a ''resources file'' as I have read about text files (http://support.microsoft.com/kb/319291) but it seems there is an issue.
I have tried just to open it with no luck. That's the code i have used so far
I get thisCode:Imports Microsoft.Office.Interop Public Class Form5 Dim app As New Excel.Application Dim sheet As Excel.Worksheet Dim book As Excel.Workbook Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.app.Workbooks.Open("WindowsApplication1.book.xls") end sub
''ERROR: FILE COULD NOT BE FOUND...''




Reply With Quote
