|
//Gets assembly
Assembly assembly = typeof(App).GetTypeInfo().Assembly;
//Gets input Excel document from an embedded resource collection
Stream excelStream = assembly.GetManifestResourceStream("GettingStarted.Sample.xlsx");
IWorkbook workbook = application.Workbooks.Open(excelStream); |