| |
|

Data Dynamics Analysis Support
Started by dbernett at 09-21-2011 7:53 AM. Topic has 4 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
09-21-2011, 7:53 AM
|
dbernett
Joined on 09-08-2011
Posts 10
|
Save Layout in Silverlight
|
|
|
|
|
this.pivotView1.Write(myNewFile, GrapeCity.ActiveAnalysis.PersistSettings.Layout | GrapeCity.ActiveAnalysis.PersistSettings.DataSource);
Error on PersistSettings. .. Does not exist in the NameSpace .. Are you missing an assembly reference?
I do have a reference in my Silverlight project to GrapeCity.ActiveAnalysis.Silverlight
????
|
|
|
|
|
Report
|
|
|
|
09-21-2011, 9:19 AM
|
Jon Smith - DD
Joined on 02-21-2007
Raleigh, NC
Posts 972

|
Re: Save Layout in Silverlight
|
|
|
|
|
In Silverlight you will need to use the GrapeCity.ActiveAnalysis.Silverlight.PersistSettings enumeration:
this.pivotView1.Write(myNewFile, GrapeCity.ActiveAnalysis.Silverlight.PersistSettings.Layout | GrapeCity.ActiveAnalysis.Silverlight.PersistSettings.DataSource);
Thanks,
Jon
|
|
|
|
|
Report
|
|
|
|
09-21-2011, 9:32 AM
|
dbernett
Joined on 09-08-2011
Posts 10
|
Re: Save Layout in Silverlight
|
|
|
|
|
This renders the error message.
enum Grapcecity.ActiveAnalysis.Silverlight.PersistSettings
Specifies valid settings for the Save/Load API
the Best overloaded method match for 'GrapceCity.ActiveAnalysis.Silverlight.PivotView.Write(System.Xml.Linq.XElement, GrapceCity.ActiveAnalysis.Silverlight.PersistSettings)' has some invalid agruments.
|
|
|
|
|
Report
|
|
|
|
09-21-2011, 10:17 AM
|
dbernett
Joined on 09-08-2011
Posts 10
|
Re: Save Layout in Silverlight
|
|
|
|
|
|
|
|
09-21-2011, 11:24 AM
|
Jon Smith - DD
Joined on 02-21-2007
Raleigh, NC
Posts 972

|
Re: Save Layout in Silverlight
|
|
|
|
|
In case anyone else runs across this post in the future, the myNewFile variable will need to either be an XmlWriter or an XElement.
Additionally, take note that Silverlight will restrict access to the file system, so you may need to use IsolatedStorage or prompt the user to write the file on the client side, or call a web service to write the file on the server side (this is where the XElement overload comes in handy).
Thanks,
Jon
|
|
|
|
|
Report
|
|
|
|
|
GrapeCity » Product Support » Data Dynamics A... » Save Layout in Silverlight
|
|
|
|
|