Type Mismatch loading OWC Chart from Pivot Table

J

jkl

Using OWC10 pivot table in an ASP page, works fine. However, when I attempt to use the pivot table as a datasource for a chart on the same page, a "Type Mismatch" occurs on the chart datasource line

frm1.ChartSpace1.DataSource = frm1.PivotTable1; "Type Mismatch" occur

Is this a bug with the OWC10 control? Is there a workaround

Thank you in advance.
 
C

Cristiano Moraes da Silva

Try this:
ChartSpace1.DataSource = frm1.PivotTable1.DefaultInterface

in Delphi I do:
ChartSpace.DataSource := (PivotTable.DefaultInterface as
MSDATASRC_TLB.DataSource);

===========================================
Cristiano Moraes da Silva
SIG Soluções em Informática e Gestão LTDA
Santa Maria - RS - Brasil
(e-mail address removed)
www.sigbrasil.com.br
+55 552268699

jkl said:
Using OWC10 pivot table in an ASP page, works fine. However, when I
attempt to use the pivot table as a datasource for a chart on the same
page, a "Type Mismatch" occurs on the chart datasource line:
 

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