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

Width of the text in pixels

Thread ID:





98667 Mar 16,2011 04:47 PM UTC Mar 17,2011 12:24 PM UTC ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Ram Thatikonda
Asked On March 16, 2011 04:47 PM UTC

Hello Syncfusion,

I need to determine the number of cells required to fit a string. Is there a way to determine, given the string get me the number of cells required to fit the text OR get me the width of the text in pixels?

I would appreciate your help on this!


Sridhar [Syncfusion]
Replied On March 17, 2011 12:24 PM UTC

Hi Ram,

Thank you for using Sycnfusion products.

Here with i have attached the sample file for your reference.

1.Finding the width of the cell
2.Finding the cell width
3.Merging the corresponding cells to place the given string.

Please try the sample at your side and let us know if this helps you.

Please let us know if you have require any further clarifications.


Measure String_d841047e.zip


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

or the page will be automatically redirected to 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