Hi,
My excel file is not open in case while insert picture in excel file.
"AddPicture" method allow to add image . but my sheet is not view .
my code is
ExcelEngine oengine = new ExcelEngine();
IApplication oApp = oengine.Excel;
oApp.DefaultVersion = ExcelVersion.Excel2007;
IWorkbook oWorkbook = oApp.Workbooks.Create(1);
IWorksheets osheets = oWorkbook.Worksheets;
IWorksheet osheet = osheets .Worksheets[0];
StorageFolder tmpFolder = await ApplicationData.Current.LocalFolder.GetFolderAsync("TmpFolder");
StorageFile Imagefile1 = await tmpFolder.GetFileAsync(ImgName);
Stream imageStream1 = await Imagefile1.OpenStreamForReadAsync();
osheet .Pictures.AddPicture(1, 5, 4, 9, imageStream1);
Excel file is attach with mail which is not open .
Thanks
Attachment:
Repaired_pngmultiimagetest_e37ace53.rar