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.
Unfortunately, activation email could not send to your email. Please try again.

Moving picture with cells

Thread ID:

Created:

Updated:

Platform:

Replies:

47302 Aug 2,2006 07:13 AM Aug 2,2006 11:22 AM Windows Forms 1
loading
Tags: XlsIO
Malachy Walsh
Asked On August 2, 2006 07:13 AM

Hi Guys,

Is there a way to set an image added using AddPicture to move but not resize with the cells it has been added to?

Regards,
Malachy

Melba Winshia [Syncfusion]
Replied On August 2, 2006 11:22 AM

Hi Malachy,

Thank You for using Syncfusion Essential XlsIO. You can move the picture to another location by using the following code snippet.

[c#]
//Insert Image
sheet.Pictures.AddPicture(1,1,"../../Data/excel_ico.gif");

//Reposition Image
sheet.Pictures[0].Left = 200;
sheet.Pictures[0].Top = 200;

Here is a sample for your reference:

AddPicture.zip


Regards,
Melba

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.

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.

;