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
[email protected]
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:
 
Top