I have some trouble to understande why I´m getting an exception. I have something like this:
string path = \"file.xls\";
if (File.Exists(path))
{
Excel.App
I found Matthew Watson's answer very helpful. It's also useful to set a relative path for Workbooks.Add() method. Here is my code for reference:
Excel.Application xlApp = new Excel.Application();
string path = "TestTemplete.xltx";
path = System.IO.Path.GetFullPath(path);
Workbook wb = xlApp.Workbooks.Add(path);