Assembly executingAssembly = typeof(MainPage).GetTypeInfo().Assembly; Stream inputStream = executingAssembly.GetManifestResourceStream("CRICKIT.Assets.TVM.xlsx"); IWorkbook book = await this.excelEngine.Excel.Workbooks.OpenAsync(inputStream); inputStream.Dispose(); //Create Template Marker Processor ITemplateMarkersProcessor marker = book.CreateTemplateMarkersProcessor(); //Binding the business object with the marker. marker.AddVariable("TVMManager", App.ViewModel.TVMManager); //Applies the marker. marker.ApplyMarkers(UnknownVariableAction.Skip); return book;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)