Click here to Skip to main content
Click here to Skip to main content

Simple Charts Using OWC (Office Web Component)

, 1 Feb 2006
Rate this:
Please Sign up or sign in to vote.
An article on Simple Chart Representation Using OWC

Sample Image


This is a simple project for beginners to get some knowledge about using OWC in a C#.NET application for chart representation.


Office 2003 Web Components do not provide event handling by default. We need to do some alterations. Kindly follow this link to get more information: Handle Events for the Office 2003 Web Components in Visual Studio .NET.

Using the code

After we convert OWC for event handling, we can add a reference to our project.


  1. Create a OWC Chart.
  2. Add the required number of chart series in it.
  3. Give the values for each chart series.
  4. Customize your chart to display it in the format you wish.
string strSeriesName = "My Series";
string strCategory = "1,2,3,4,5";
string strValue = "3,8,2,8,4";
//Add a series to the chart’s series collection
ChSeries series = chchart.SeriesCollection.Add(0);
//Give the name of the series
//Give the Categories
//Give The values

Points of Interest

I hope you've enjoyed this little tutorial. In future, I will provide you lot more stuff. And I am expecting your valuable suggestions.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Andrews Raj
Software Developer (Senior)
India India
I am a software engineer working in Blr, india.
working in c++, vc++, mfc, c#.Net, COM/ATL.

Comments and Discussions

QuestionHow can i use this pie of code in csharp application form [modified] Pinmemberhuynhdangthai8-Jul-10 19:34 
Questionin vb6 Pinmemberdeepakmathur11-Dec-08 21:45 
GeneralCode Unavailable Pinmembersysengineer15-Mar-08 0:47 
GeneralOWC scatter chart error Pinmemberganesh_india13-Jun-07 4:24 
Generaldynamically add Pinmembersuperda15-Apr-07 22:16 
GeneralOpenOffice (Chart) Pinmembertimbits21414-Apr-07 11:58 
QuestionHandling click events on the chart Pinmembernasubh19-Dec-06 2:56 
QuestionHow to draw series from 0,0 origine. PinmemberHimadri Majumdar23-Nov-06 19:00 
GeneralUsing with ASP.Net PinmemberMohamed El Gohary24-May-06 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150327.1 | Last Updated 1 Feb 2006
Article Copyright 2006 by Andrews Raj
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid