L
lubelabbe
We need to use the PivotTable on in-memory data, not data stored in a
database.
The PivotTable control works fine when it's DataSource property is
bound to an ADO recordset that is connected to a database.
However, the the DataSource property assignment fails when trying to
assign an Unbound ADO recordset. It complains that the Interface is not
supported and throws an InvalidCastException.
....
pivotAsset.DataSource = (msdatasrc.DataSource)m_ADOData; <-- Fails
here.
....
The Unbound ADO recordset is set up ok because we can bind it controls
without problems. Also, this is the first problem that has appeared
anywhere in our project (for the Unbound ADO recordset - we have had
lots of other problems .
Any help would be appreciated ?
Michael
database.
The PivotTable control works fine when it's DataSource property is
bound to an ADO recordset that is connected to a database.
However, the the DataSource property assignment fails when trying to
assign an Unbound ADO recordset. It complains that the Interface is not
supported and throws an InvalidCastException.
....
pivotAsset.DataSource = (msdatasrc.DataSource)m_ADOData; <-- Fails
here.
....
The Unbound ADO recordset is set up ok because we can bind it controls
without problems. Also, this is the first problem that has appeared
anywhere in our project (for the Unbound ADO recordset - we have had
lots of other problems .
Any help would be appreciated ?
Michael