You will need to have added a reference to the COM component for OWC so
that VS.Net will generate the RWC (runtime callable wrapper)
And the aspx page will need the runat="server" tag (added automatically
if you drag the control onto the page.) The 'Protected WithEvents...'
declaration should also be added when the control is dragged onto the
form, but it can also be added manually.
For an example using OWC look at:
http://www.gotdotnet.com/Community/U...px?SampleGuid=
52701dd7-5606-4256-819e-d2ecf26e6cd7
For a general article on using OWC with ASP.NET have a look at:
http://www.codeproject.com/aspnet/owc11article.asp
--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell
In article <8B5E39FD-1885-473B-9BEA-D9E6B1CCD09F (AT) microsoft (DOT) com>,
Chrysan (AT) discussions (DOT) microsoft.com says...
Quote:
I have create an asp.net(.aspx) page, with a PivotTable control. I noticed
that, I can't
reference it in my code-behind(.aspx.vb), because it doesn't has the line
'Protected
WithEvents PivotTable1 As OWC10.PivotTable' as creating other controls,
liked Label, Button, ...
Can anybody teach me how to reference the PivotTable control in asp.net
code-behind?
Thanks. |