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.

Center Images

Thread ID:

Created:

Updated:

Platform:

Replies:

82007 May 27,2009 09:23 AM Jun 3,2009 08:19 AM Windows Forms 1
loading
Tags: XlsIO
Administrator [Syncfusion]
Asked On May 27, 2009 09:23 AM

How do you center images?

code:


//this inserts the image
excel.InsertImage(imageFileName, 1, 1);

//Range
IRange logoRange = excel.GetRange("A1", "E1");
logoRange.Merge();

//Trying to center the image but this does not work
logoRange.HorizontalAlignment = ExcelHAlign.HAlignCenter;

The Images appears in cell 1
I want it in the center of the merged cells.

Any ideas?

Thanks






Geetha M [Syncfusion]
Replied On June 3, 2009 08:19 AM

Hi,

Thank you for your interest in Syncfusion products.

It is not possible to center an image using IRange.HorizontalAlignment. Only text content can be aligned. Also it is not possible to center the image in MS Excel.

Please let me know if you have any questions.

Regards,
Geetha

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.

;