VB.Net - Bind Pivot & Chart

A

Antoine Prevot

Hi there,

Sorry to disturb you with this simple problematic, but i'm havin headaches ...

I'm trying for two hours to bind a PivotTable and a ChartSpace (OWC10 or 11,
issue is the same) and nothing works :( My method is pretty simple :

CS.DataSource = PT

This works on most programming environnements (including VB6 and
JavaScript), but in a vb.net application, I only get an "Invalid cast"
exception ! Can anybody help me ? I cannot find anything by myself, and
google doesn't help me ... everybody seem to use OWCs on a web context and
never in a client/server application :-/
 
B

bren

I'm developing a WinForm app.

This works for me. I believe I found this code in this forum.

AxChartSpace1.DataSource = CType(AxPivotTable1, AxHost).GetOcx()

Bren
 

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

Top