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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove image in SpreadSheet

Thread ID:

Created:

Updated:

Platform:

Replies:

148243 Oct 11,2019 03:33 AM UTC Apr 3,2020 12:22 PM UTC WPF 5
loading
Tags: SfSpreadsheet
ZhouYi
Asked On October 11, 2019 03:33 AM UTC

Hi,
     I managed to add images in SfSpreadSheet Control using The AddImage method. It worked fine but I couldn't remove the image I inserted.
Could you tell me how to remove an image in the SpreadSheet?

Many Thanks.

Yi

Mohanraj Gunasekaran [Syncfusion]
Replied On October 11, 2019 12:19 PM UTC

Hi ZhouYi, 
 
Thanks for using Syncfusion product. 
 
Sfspreadsheet does not have the support to delete the image programmatically.  But, you can delete that image in UI by select that image and press the delete key. 
 
Currently, we are analyzing the possibility to provide programmatical support to delete the image in our source. So, we will check and update the details on  October 15, 2019. 
 
Thanks for your patience until then. 
 
Regards, 
Mohanraj G 


ZhouYi
Replied On November 13, 2019 02:43 AM UTC

Hi Mohanraj G,

Thanks for your reply. I think I could find another way to achieve the expected effect.

Regards, 
Yi

Arulpriya Ramalingam [Syncfusion]
Replied On November 13, 2019 01:55 PM UTC

Hi ZhouYi, 
 
Thank you for the update. 
 
Spreadsheet images can be removed by removing that particular picture using the Remove() method and please refer to the below to remove the pictures. Moreover, we are glad that the reported scenario has been resolved at your end. 
 
Code example 
 
void Spreadsheet_WorkbookLoaded(object sender, Syncfusion.UI.Xaml.Spreadsheet.Helpers.WorkbookLoadedEventArgs args) 
{ 
    if (Spreadsheet.ActiveSheet.Pictures.Count > 0) 
        Spreadsheet.ActiveSheet.Pictures[0].Remove(); 
} 
 
If you have any other queries, please get back to us. 
 
Regards, 
Arulpriya 


yi zhou
Replied On April 2, 2020 09:11 AM UTC

Hi ZhouYi, 
 
Thank you for the update. 
 
Spreadsheet images can be removed by removing that particular picture using the Remove() method and please refer to the below to remove the pictures. Moreover, we are glad that the reported scenario has been resolved at your end. 
 
Code example 
 
void Spreadsheet_WorkbookLoaded(object sender, Syncfusion.UI.Xaml.Spreadsheet.Helpers.WorkbookLoadedEventArgs args) 
{ 
    if (Spreadsheet.ActiveSheet.Pictures.Count > 0) 
        Spreadsheet.ActiveSheet.Pictures[0].Remove(); 
} 
 
If you have any other queries, please get back to us. 
 
Regards, 
Arulpriya 


Hi Ramalingam
     It works fine for me. Thank you!

Yi!

Arulpriya Ramalingam [Syncfusion]
Replied On April 3, 2020 12:22 PM UTC

Hi ZhouYi, 
 
Thank you for the update. 
 
We are glad that the reported scenario have been resolved from your end by using the provided solution. Please get back to us, if you need any further assistance. 
 
Arulpriya 


CONFIRMATION

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

Live Chat Icon For mobile
Live Chat Icon