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. Image for the cookie policy date

Add image to spreadsheet

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

3 Replies

KB Kanimozhi Bharathi Syncfusion Team 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, 


Regards 
Kanimozhi B 



BG Berezkin Gena 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?


KB Kanimozhi Bharathi Syncfusion Team 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; 
 
  
Regards 
Kanimozhi B 


Loader.
Live Chat Icon For mobile
Up arrow icon