Re: OWC11 with Vb.Net
- From: raj <raj@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 15 Mar 2009 19:22:01 -0700
its not pointing to cube directly connecting to the SQL Server, I have
mentioned as "SQL Server Connection String" since I am posting in the forum.
This code works absolutly fine but here if you look at the code its using
Response.Write(pivotTable1.HTMLData) so the pivot report is going to be
static but where as I want to display interactive report. Can you help me out
how I can alter this code to generate the interactice report for the pivot
tables.
Regards,
"Alvin Bruney [ASP.NET MVP]" wrote:
What is this pointing to? "SQL Server Connection String".
Is it pointing to SQL server or a cube? The pivot table writes MDX
expressions, SQL server does not understand MDX expressions.
--
Regards,
Alvin Bruney
Auther Plug
OWC Blackbook now on download at www.lulu.com/owc
"raj" <raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4A4C16C9-E489-416A-83EB-C0CE038A06F1@xxxxxxxxxxxxxxxx
Yes, I am talking about the Pivot Table itself. Here is the code I am
using
to display the pivot table (static ) but I need to generate the dynamic
pivot
table with the similar code.
Dim pivotTable1 As New Microsoft.Office.Interop.Owc11.PivotTable
' Creates connection to Northwind and Customers table.
pivotTable1.ConnectionString = "SQL Server Connection String"
pivotTable1.DataMember = "Table Name"
' Automatically populates the PivotTable Component.
pivotTable1.ActiveView.AutoLayout()
'With pivotTable1.ActiveView
' .FilterAxis.InsertFieldSet.FieldSets("Country")
' .RowAxis.InsertFieldSet.FieldSets("Region")
' .DataAxis.InsertFieldSet.FieldSets("CompanyName")
' .DataAxis.InsertFieldSet.FieldSets("ContactName")
' .DataAxis.InsertFieldSet.FieldSets("Phone")
' .FieldSets("Country").FilterMember = "USA"
'End With
pivotTable1.DisplayDesignTimeUI = True
pivotTable1.DisplayExpandIndicator = True
pivotTable1.DisplayFieldList = True
pivotTable1.AllowDetails = True
pivotTable1.ActiveView.AllowEdits = True
pivotTable1.ActiveView.AllowAdditions = True
pivotTable1.ActiveView.AllowDeletions = True
pivotTable1.DisplayToolbar = True
Response.Write(pivotTable1.HTMLData)
Regards,
"Alvin Bruney [ASP.NET MVP]" wrote:
That is by design, only pivot table has interactivity.
--
Regards,
Alvin Bruney
Auther Plug
OWC Blackbook now on download at www.lulu.com/owc
"raj" <raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BDF8AAD7-E54C-4595-B06A-88475DA12DBF@xxxxxxxxxxxxxxxx
Alvin,
Thanks for the reply. Actually I found couple of the snippets at msdn
but
when I use the OWC code behind with sql server (no OLAP) I could able
to
generate the pivot table but its not interactiv mode. Can you suggest
me
any
samples.
Thanks for the help.
Regards,
"Alvin Bruney [ASP.NET MVP]" wrote:
google this newsgroup, over the years, there are several hundred
snippets
that you can use to do what you want.
--
Regards,
Alvin Bruney
Auther Plug
OWC Blackbook now on download at www.lulu.com/owc
"raj" <raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:277EFBCE-9423-41A2-AA71-0957D7A04C5B@xxxxxxxxxxxxxxxx
I have an article at MSDN,
http://msdn.microsoft.com/en-us/library/aa188489(office.10).aspx#vsofficedev_topic11
This might be helpful to others
Regards,
"raj" wrote:
Hi,
Appreciate if anybody can post the sample code for the vb.net web
application using OWC11 component (not using OLAP). I am not able
to
find
the
samples anywhere. Here is my case
I need to pull the data from SQL Server 2005 and display on the
webpage
using OWC11 component. And design the Pivot table like rows,
column,
filters.
Open the Excel file and Save as Webpage is definetly not my
solution.
Thanks in advance
- Follow-Ups:
- Re: OWC11 with Vb.Net
- From: Alvin Bruney [ASP.NET MVP]
- Re: OWC11 with Vb.Net
- References:
- OWC11 with Vb.Net
- From: raj
- RE: OWC11 with Vb.Net
- From: raj
- Re: OWC11 with Vb.Net
- From: Alvin Bruney [ASP.NET MVP]
- Re: OWC11 with Vb.Net
- From: raj
- Re: OWC11 with Vb.Net
- From: Alvin Bruney [ASP.NET MVP]
- Re: OWC11 with Vb.Net
- From: raj
- Re: OWC11 with Vb.Net
- From: Alvin Bruney [ASP.NET MVP]
- OWC11 with Vb.Net
- Prev by Date: Drillthrough on large Attribute Hierarchy
- Next by Date: ocxbrowser
- Previous by thread: Re: OWC11 with Vb.Net
- Next by thread: Re: OWC11 with Vb.Net
- Index(es):
Relevant Pages
|