B
Bryan
I have a web page where I have a spreadsheet component that I load with data
and would like to bind that to a pivot table component so that as the data
in the spreadsheet changes it is reflected in the pivot table. I have found
documentation about how to bind a spreadsheet to a chart in the OWC VBA help
file using
Set c = ChartSpace1.Constants
Set ChartSpace1.DataSource = Spreadsheet1.Object
ChartSpace1.Charts.Add
ChartSpace1.Charts(0).Type = c.chChartTypeLineMarkers
ChartSpace1.Charts(0).SetData c.chDimCategories, 0, "a2:a28"
ChartSpace1.Charts(0).SetData c.chDimSeriesNames, 0, "b1"
ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimValues, 0, "b2:b28"
But am unclear how I can do this same sort of thing with a pivot table. In
the above example I am also unclear how it would know which sheet to
reference for the ranges specified.
Any help would be greatly appreciated
and would like to bind that to a pivot table component so that as the data
in the spreadsheet changes it is reflected in the pivot table. I have found
documentation about how to bind a spreadsheet to a chart in the OWC VBA help
file using
Set c = ChartSpace1.Constants
Set ChartSpace1.DataSource = Spreadsheet1.Object
ChartSpace1.Charts.Add
ChartSpace1.Charts(0).Type = c.chChartTypeLineMarkers
ChartSpace1.Charts(0).SetData c.chDimCategories, 0, "a2:a28"
ChartSpace1.Charts(0).SetData c.chDimSeriesNames, 0, "b1"
ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimValues, 0, "b2:b28"
But am unclear how I can do this same sort of thing with a pivot table. In
the above example I am also unclear how it would know which sheet to
reference for the ranges specified.
Any help would be greatly appreciated