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

How to add multiples ranges to XlsIO

Thread ID:





124893 Jul 6,2016 10:04 PM UTC Jul 11,2016 09:16 AM UTC ASP.NET Web Forms 5
Tags: XlsIO
Roimer Machacón Otero
Asked On July 6, 2016 10:04 PM UTC

Hi we're using XlsIo and we need use multiple ranges.

We're trying with this:

IRanges rangos = hoja.CreateRangesCollection();                
                rangos.Add(hoja.Range[7, 2, 7 + tabla.Rows.Count - 1, 3]);
                rangos.Add(hoja.Range[7, 5, 7 + tabla.Rows.Count - 1, 5]);
                rangos.Add(hoja.Range[7, 7, 7 + tabla.Rows.Count - 1, 7]);
                //Set DataRange
                grafico.DataRange = rangos;

But this not work

Kesavan D [Syncfusion]
Replied On July 7, 2016 09:24 AM UTC

Hi Roimer, 

Thank you for contacting Syncfusion support. 

Currently discontinuous range is not supported in “IChart.DataRange” but this can be achieved by creating separate chart series and assign values to it. 

We have created a sample to demonstrate the above said workaround, which is available for download in the below link. 

Kindly verify the sample and let us know if it fulfils your requirement.  


Roimer Machacón Otero
Replied On July 7, 2016 04:53 PM UTC

HI, the example not work as we need.

We need make a graphic how the example attached to this post.

This is possible?

Attachment: Desktop_ac746706.zip

Sridhar Sukumar [Syncfusion]
Replied On July 8, 2016 10:42 AM UTC

Hi Romier, 
The sample has filtered series. It is possible to create a chart with filtered series as you mentioned using XlsIO. 
We have prepared a sample as per your requirement which can be downloaded from following link 
Please let us know if you have any queries. 
Sridhar S. 

Roimer Machacón Otero
Replied On July 8, 2016 03:25 PM UTC

Hi Sridhar Sukumar

Thanks! This work correctly :)

Sridhar Sukumar [Syncfusion]
Replied On July 11, 2016 09:16 AM UTC

Hi Romier, 
Thank you for updating us. 
We are glad to know that the issue has been resolved at your side. Please let us know if you need any further assistance on this.  
Sridhar S 


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