Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chrysan - 14 Sep 2005 05:29 GMT
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.  
Uday Takbhate [MSFT] - 19 Sep 2005 06:18 GMT
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

--------------------
>Thread-Topic: How to reference PivotTable control in asp.net(vb.net)
code-behind
>thread-index: AcW45NTwsdzD59ppSk+R61iC6xlY0A==
>X-WBNR-Posting-Host: 60.49.16.165
[quoted text clipped - 25 lines]
>Can anybody teach me how to reference the PivotTable control in asp.net
>code-behind?   Thanks.  
Chrysan - 19 Sep 2005 09:25 GMT
I have try this method before, still I can't reference it in the code-behind.
Please help. Thanks.

> Hello Chrysan,
>
[quoted text clipped - 55 lines]
> >Can anybody teach me how to reference the PivotTable control in asp.net
> >code-behind?   Thanks.  

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.