We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Add image to spreadsheet

Thread ID:





127060 Oct 24,2016 09:47 AM UTC Oct 27,2016 11:10 AM UTC WPF 3
Tags: SfSpreadsheet
Berezkin Gena
Asked On October 24, 2016 09:47 AM UTC

After executed Spreadsheet.Open() function, pictures are not displayed.

v. 14.345.0.0.49

An example is attached to the subject.

Attachment: TestInsertJPG_d63c980f.rar

Kanimozhi Bharathi [Syncfusion]
Replied On October 25, 2016 12:36 PM UTC

Hi Berezkin Gena, 

You need to add the images in SpreadsheetGrid Loaded Event. We have modified the sample based on your requirement. Please find the link below, 

Kanimozhi B 

Berezkin Gena
Replied On October 26, 2016 09:27 AM UTC

Thank you. It's work.

But I can't set position image. Image always has position Row= 5, Column=5. How I can set position for Image?

Kanimozhi Bharathi [Syncfusion]
Replied On October 27, 2016 11:10 AM UTC

Hi Berezkin Gena, 
You can position an image in spreadsheet by adjusting the Top and Left position of the ShapeImpl with change in row and column position. Please find the code example for your reference, 
var shape = spreadsheetControl.AddImage(worksheet, new RowColumnIndex(5, 8), stream); 
// Re-Positioning Picture 
shape.Top = 500; 
shape.Left = 500; 
Kanimozhi B 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon