Saving a PivotChart view in a form

B

Bill Murphy

I have a subform containing a PivotChart view. The user can change the view
by filtering it with the included dropdowns, and can change the chart type.
Is there a way to save the current view for the user on their PC (the data
is in an mdb file on a network server), so that when they later re-open the
form they will get the view that existed when the form was closed?

I'm running OWC 10 on a Windows 2000 PC and also on a Windows XP PC.

Bill
 
T

Thao Moua [ms]

To save the current state of a Chart/PivotChart, save the
following property to a file or wherever you want to.

'Chartspace.XmlData is a string value
strChartState = Chartspace.XmlData

To restore the state of a chartspace object later, do

Chartspace.XmlData = strChartState

-tm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top