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.

Usage of MergeRanges

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 10:21 AM

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:
wkSheet.Range["C1:C3"].Merge();
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:

http://help.syncfusion.com/samples/XlsIO.Windows/94176.zip


Please, let me know if you need any clarifications.

Thanks,
Lokesh


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.

;