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

vb6 rewite by XlsIo(C#)

Thread ID:





78098 Nov 28,2008 03:54 AM UTC Jan 27,2012 12:08 PM UTC WinForms 3
Tags: XlsIO
Jacky chen
Asked On November 28, 2008 03:54 AM UTC

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 11:48 AM UTC


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 02:55 PM UTC

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 12:08 PM UTC

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.

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