Hey guys, Im attempting to grab my excel file embedded in my application and save it at a particular location.
Im trying this with no success:
Fixed:
Im trying this with no success:
Code:
Dim objReader As StreamWriter
Try
objReader = New StreamWriter(Filename)
objReader.Write(My.Resources.template)
objReader.Close()
Catch ex As Exception
MsgBox(ex.Message)
End TryCode:
Dim Fbyte As Byte() = My.Resources.template
My.Computer.FileSystem.WriteAllBytes(Filename, Fbyte, False)