diff --git a/DocumentProcessing/SpreadProcessing/CreateModifyExport/ExpenseViewModel.cs b/DocumentProcessing/SpreadProcessing/CreateModifyExport/ExpenseViewModel.cs index c89caaf21..3926deff9 100644 --- a/DocumentProcessing/SpreadProcessing/CreateModifyExport/ExpenseViewModel.cs +++ b/DocumentProcessing/SpreadProcessing/CreateModifyExport/ExpenseViewModel.cs @@ -240,7 +240,7 @@ private void InsertCompanyLogo() image.Width = 65; image.Height = 65; - worksheet.Shapes.Add(image); + worksheet.Images.Add(image); } private static Stream GetResourceStream(string resource) diff --git a/DocumentProcessing/SpreadProcessing/CreateModifyExport/ReportGenerator.cs b/DocumentProcessing/SpreadProcessing/CreateModifyExport/ReportGenerator.cs index ef80069c8..d7a65ce9a 100644 --- a/DocumentProcessing/SpreadProcessing/CreateModifyExport/ReportGenerator.cs +++ b/DocumentProcessing/SpreadProcessing/CreateModifyExport/ReportGenerator.cs @@ -239,7 +239,7 @@ private void InsertCompanyLogo() image.ImageSource = new Telerik.Windows.Documents.Media.ImageSource(stream, "jpg"); } - this.worksheet.Shapes.Add(image); + this.worksheet.Images.Add(image); } private void FilterByDepartment(string departmentName) diff --git a/GridView/ExportImageColumn/Example.xaml.cs b/GridView/ExportImageColumn/Example.xaml.cs index 5fc7e1a90..85bb5bb15 100644 --- a/GridView/ExportImageColumn/Example.xaml.cs +++ b/GridView/ExportImageColumn/Example.xaml.cs @@ -78,7 +78,7 @@ private Workbook ExportWorkbook(GridViewDataControl grid) image.Width = imageWidth; image.Height = imageHeight; - worksheet.Shapes.Add(image); + worksheet.Images.Add(image); cell.SetValue(string.Empty); worksheet.Rows[i].SetHeight(new RowHeight(imageHeight + padding * 2, true)); }