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

Usage of MergeRanges

Thread ID:





94176 Apr 27,2010 06:38 PM UTC Apr 28,2010 02:21 PM UTC ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Administrator [Syncfusion]
Asked On April 27, 2010 06:38 PM UTC

Does anyone has a sample or knows how to use MergeRanges method of the Worksheet.

We are looking if Syncfusion XlsIO support cell merge programatically.

Thanks .

Lokesh R [Syncfusion]
Replied On April 28, 2010 02:21 PM UTC

Hi Erick,

Thank you very much for your interest on Syncfusion products.

MergeRanges method:

The MergeRanges() method is used to merge the range index not the actual cells,
For eg:
sheet.MergeRanges(wkSheet.Range["A1:A3"], wkSheet.Range["B1:B3"]);

It will return the IRange object with the address value as 'Sheet1'!A1:B3.

Cell merge:

Yes, in XlsIO it is possible to merge the cells by using Merge() method associated with the IRange .
For eg:
the cells from C1 to C3 will be merged into a single cell.

I have created a sample which explains both the methods. Please, try the sample from the below link and let us know if this helps you.

Sample link:


Please, let me know if you need any clarifications.



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