How to reference PivotTable control?

G

Guest

I have dragged a PivotTable(which id="PivotTable1") control on my
page(Index.aspx). And, How do I reference this PivotTable control in my
code-behind(index.aspx.vb)?

Because I notice when I drag the PivotTable from Toolbox to my web-page, I
can't find the line 'Protected WithEvents PivotTable1 As OWC10.PivotTable' as
other controls. So, I manually add this line in my code-behind, and get
PivotTable1.XMLData into a string, this web-page will prompt me the following
error:

Object reference not set to an instance of an object.

Please help, thanks.
 

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,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top