I want to edit an excel file, similar to an invoice, fill in the fields of the columns with the data in the textbox that I place, when I click on a button (Generate Fact.), I open the file with the data already added in the fields.
//Inicie Excel y obtenga el objeto de la Aplicación.
oXL = new Excel.Application();
oXL.Visible = true;
//Get a new workbook.
oWB = (Excel._Workbook)(oXL.Workbooks.Add(Missing.Value));
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
In the part where it says ( // Get a new Woorkbok ) I want to replace is to open an existing Excel file.