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.

vb6 rewite by XlsIo(C#)

Thread ID:





78098 Nov 27,2008 10:54 PM Jan 27,2012 07:08 AM Windows Forms 3
Tags: XlsIO
Jacky chen
Asked On November 27, 2008 10:54 PM

It's my old vb6 code,how can I use XlsIO to rewirte ? Thanks.

ActiveChart.SeriesCollection(1).XValues = "='XXX'!R4C1:R5C1"
ActiveChart.SeriesCollection(1).Values = "='xxx'!R4C3:R5"
ActiveChart.SeriesCollection(2).XValues = "='xxx'!R4C1:R5C1"
ActiveChart.SeriesCollection(2).Values = "='xxx'!R4C6:R5C6"

Geetha M [Syncfusion]
Replied On December 3, 2008 06:48 AM


I regret for the delay.

Please refer to the sample in the below link which demonstrates how to insert a chart using Essential XlsIO:


Please let me know if you have any questions.


Replied On January 25, 2012 09:55 AM

the link http://websamples.syncfusion.com/samples/XlsIO.Windows/F78098/main.htm in the support forum http://www.syncfusion.com/support/forums/xlsio-windows/78098 is broken I need to know what sentences can I use for SeriesCollection and XValues

Sridhar [Syncfusion]
Replied On January 27, 2012 07:08 AM

Hi Primo,

Thank you for using Syncfusion products.

Please go through the following code snippet for the usage of series collection and X - Axis.

Code snippet [C#]:

Code snippet [C#]:
//Get the 1st Chart from the charts Collection
IChartShape shape =sheet.Charts[0];

//Accessing the first series from the Series Collection
shape.Series[0].Name = "Series Name";

//Get the First Series from the Series Collection
IChartSerie serie1 = shape.Series[0];

//Assign the Sereis Range values
serie1.Values = sheet.Range["A1:B5"];

//Access the X-Axis and and set the title for the chart
shape.PrimaryCategoryAxis.Title = "X-Axis";

Please let me know if you require any furthe 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.

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.