C
Claude Vernier
Hello,
I'm surfing for some time now and I'm a bit confused...
I already made a C# Winform application working with
ExcelXP where I generated Pivot tables based on the name
of the cube the user selected.
Now, I must convert to an ASPX application.
I saw several samples where XMLData is generated, also
saw a project using very large XML structures to fill the
OWC.
What I would like to do is drag and drop the OWC on my
ASPX page, having a related variable in my codebehind
and, setting properties in this codebehind, have nothing
else to do.
The information I have is the connection string and the
name of the cube.
What I've done already:
In HTML:
<OBJECT id=MyPivot name=MyPivot VIEWASTEXT></OBJECT>
In C#:
public class TestWebForm : System.Web.UI.Page
{
protected
Microsoft.Office.Interop.OWC.PivotTableClass MyPivot;
private void Page_Load(object sender,
System.EventArgs e)
{
MyPivot = new
Microsoft.Office.Interop.OWC.PivotTableClass();
}
}
Seems that the variable is initialized the right way, but
I'm not sure what to do next and not sure either if it
was ever meant to be done this way.
I've already installed: "Office XP Web Component
Toolpack" but haven't found any C# code.
I'd need some infos on how is .Net integrated with this.
I also saw some web sites where it is mentionned that I
should add the
attibute: "[System.Runtime.InteropServices.ClassInterface
(System.Runtime.InteropService
s.ClassInterfaceType.None)]" but I did not understand how
and where...
Thanks for any help... sorry for my poor english...
Claude Vernier
I'm surfing for some time now and I'm a bit confused...
I already made a C# Winform application working with
ExcelXP where I generated Pivot tables based on the name
of the cube the user selected.
Now, I must convert to an ASPX application.
I saw several samples where XMLData is generated, also
saw a project using very large XML structures to fill the
OWC.
What I would like to do is drag and drop the OWC on my
ASPX page, having a related variable in my codebehind
and, setting properties in this codebehind, have nothing
else to do.
The information I have is the connection string and the
name of the cube.
What I've done already:
In HTML:
<OBJECT id=MyPivot name=MyPivot VIEWASTEXT></OBJECT>
In C#:
public class TestWebForm : System.Web.UI.Page
{
protected
Microsoft.Office.Interop.OWC.PivotTableClass MyPivot;
private void Page_Load(object sender,
System.EventArgs e)
{
MyPivot = new
Microsoft.Office.Interop.OWC.PivotTableClass();
}
}
Seems that the variable is initialized the right way, but
I'm not sure what to do next and not sure either if it
was ever meant to be done this way.
I've already installed: "Office XP Web Component
Toolpack" but haven't found any C# code.
I'd need some infos on how is .Net integrated with this.
I also saw some web sites where it is mentionned that I
should add the
attibute: "[System.Runtime.InteropServices.ClassInterface
(System.Runtime.InteropService
s.ClassInterfaceType.None)]" but I did not understand how
and where...
Thanks for any help... sorry for my poor english...
Claude Vernier