Posted 26 October 2017, 1:43 pm EST
Hello,
I want to Open an template excel file from Asstets,
Windows.Storage.StorageFolder installedLocation = Windows.ApplicationModel.Package.Current.InstalledLocation;
StorageFolder tempFolder2 = await installedLocation.CreateFolderAsync(“Assets”, CreationCollisionOption.OpenIfExists);
StorageFile file =await tempFolder2.CreateFileAsync(“cgktemplate.xlsx”, CreationCollisionOption.OpenIfExists);
_book = new C1XLBook();
await _book.LoadAsync(file, FileFormat.OpenXml); //It cannot working. trow an Exception. why?