C
Cul
Using OWC10, I am currently creating a pivot table on my web server,
using an XML file as the command text. After formatting the pivot
table, I then save it on the server and redirect the user to the saved
file. (All in old-fashioned ASP)
Now there is a request to supply a second pivot table on the same excel
file, using the same source data, and I have been struggling to find a
means to accomplish this. A point in the right direction would be
appreciated, or a quick, painless "impossible" would be appreciated as
well. An abbreviated version of my code is below...
Set oPivot = Server.CreateObject("OWC10.PivotTable")
oPivot.ConnectionString = "Provider=MSPersist.1"
oPivot.CommandText = Server.MapPath(strFilePathXML)
Set oView = oPivot.ActiveView
Set oTheaterField = oView.FieldSets("Field1")
'A bunch more pivot table formatting, and then...
oPivot.Export Server.MapPath(strFilePathXLS),0
'Redirect to strFilePathXLS
Thanks for any help!
using an XML file as the command text. After formatting the pivot
table, I then save it on the server and redirect the user to the saved
file. (All in old-fashioned ASP)
Now there is a request to supply a second pivot table on the same excel
file, using the same source data, and I have been struggling to find a
means to accomplish this. A point in the right direction would be
appreciated, or a quick, painless "impossible" would be appreciated as
well. An abbreviated version of my code is below...
Set oPivot = Server.CreateObject("OWC10.PivotTable")
oPivot.ConnectionString = "Provider=MSPersist.1"
oPivot.CommandText = Server.MapPath(strFilePathXML)
Set oView = oPivot.ActiveView
Set oTheaterField = oView.FieldSets("Field1")
'A bunch more pivot table formatting, and then...
oPivot.Export Server.MapPath(strFilePathXLS),0
'Redirect to strFilePathXLS
Thanks for any help!