Skip to content

Commit

Permalink
Merge pull request #50 from telerik/martinivanoff/m-new-examples-2
Browse files Browse the repository at this point in the history
updated  examples
  • Loading branch information
martinivanoff authored Oct 12, 2023
2 parents f041b9d + e0a9b79 commit a462de8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion GridView/ExportImageColumn/Example.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit a462de8

Please sign in to comment.