How open a Workbook without Events enabled.

Sep 4, 2014 at 8:31 PM
Hi all,

In Office.Interop.Excel there is a way to open a XLS file without warnings and Events:
pExcel = new Excel.ApplicationClass();
pExcel.EnableEvents = false;   
pExcel.Visible = pvisible;
pBooks = pExcel.Workbooks;
pBook = null;
pBook = pBooks.Open(pNomArchivo, pMissing, pMissing,
                pMissing, pMissing, pMissing, pMissing, pMissing, pMissing,
                pMissing, pMissing, pMissing, pMissing, pMissing, pMissing);
How can i do the same with NPOI?

Thanks in advance...
Coordinator
Sep 5, 2014 at 7:43 AM
NPOI don't use Office.Interop. It's pure .NET code. No warning or events at all.
Marked as answer by tonyqus on 9/5/2014 at 12:44 AM
Sep 5, 2014 at 1:49 PM
Ok,, so how can u open a XLSM (macros) excel file without warnings ???