all groups > dotnet interop > september 2005 >
You're in the

dotnet interop

group:

How to reference PivotTable control in asp.net(vb.net) code-behind


How to reference PivotTable control in asp.net(vb.net) code-behind Chrysan
9/13/2005 9:29:01 PM
dotnet interop:
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
RE: How to reference PivotTable control in asp.net(vb.net) code-be Chrysan
9/19/2005 1:25:02 AM
I have try this method before, still I can't reference it in the code-behind.
Please help. Thanks.


[quoted text, click to view]
RE: How to reference PivotTable control in asp.net(vb.net) code-behind udayt NO[at]SPAM microsoft.com
9/19/2005 5:18:59 AM
Hello Chrysan,

There are two ways to creat a pivot table control in your page.

(1) Client side control using OBJECT tag

<OBJECT ID="PTable" CLASSID="CLSID:0002E552-0000-0000-C000-000000000046"
WIDTH="100%" HEIGHT="60%"><PARAM name="AutoFit" value="False"></PARAM>
</OBJECT>

(2) Server side control by addiong the reference to the "Microsoft Office
Web Components..." from the Add Reference->COM tab

Add the following line,

using OWC11 = Microsoft.Office.Interop.Owc11;

in the include section of the codebehind where you want to use these
components.

I hope this information helps!

Regards,
Uday Takbhate [MSFT]
Microsoft Developer Support

--------------------
[quoted text, click to view]
AddThis Social Bookmark Button