OWC11 (connect Spreadsheet + Chart)

P

Pieter

Hi

In my application I've got an AxSpreadsheet with data.
I want to draw a chart from the data in the spreadsheet.

I am having trouble "connecting" the spreadsheet to the chart.
I found quite a few examples on the net on doing this but all of these
examples says:
ChartSpace1.DataSource = Spreadsheet1

This results in a "Option stric on disallows implicit conversion....."
(I don't want to turn strict off)

When I typecast to
ChartSpace1.DataSource = CType(Spreadsheet1, msdatasrc.DataSource)

and run the code, it results in "Specified cast is not valid"

Any ideas? ( I am using VB.NET)

Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top