Skip to content

Open or create an excel file

Pierlam-dev edited this page Jan 24, 2026 · 1 revision

Open an existing excel file

ExcelProcessor is the main object to work with excel content. Open an Excel is very simple. Call the method Open, then it will return an ExcelFile object.

ExcelError error;
ExcelProcessor proc = new ExcelProcessor();

string filename = "C:\Files\mydata.xlsx";
ExcelFile excelFile = proc.OpenExcelFile(filename);

If the file does not exists, an error will occured, the method will return false.

Create an existing excel file

ExcelFile excelFile = proc.CreateExcelFile(filename);

Clone this wiki locally