ActiveReports Developers 7 Now Available in Beta!! (click for details)

Data Dynamics Analysis Support

Started by dbernett at 09-21-2011 7:53 AM. Topic has 4 replies.

Print Search Rate
Sort Posts:    
   09-21-2011, 7:53 AM
dbernett is not online. Last active: 9/8/2011 10:13:11 PM dbernett

Not Ranked
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 is not online. Last active: 4/30/2012 7:44:40 PM Jon Smith - DD

Top 25 Posts
Joined on 02-21-2007
Raleigh, NC
Posts 972

DDStaff
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 is not online. Last active: 9/8/2011 10:13:11 PM dbernett

Not Ranked
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 is not online. Last active: 9/8/2011 10:13:11 PM dbernett

Not Ranked
Joined on 09-08-2011
Posts 10
Re: Save Layout in Silverlight
thank you
   Report 
   09-21-2011, 11:24 AM
Jon Smith - DD is not online. Last active: 4/30/2012 7:44:40 PM Jon Smith - DD

Top 25 Posts
Joined on 02-21-2007
Raleigh, NC
Posts 972

DDStaff
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

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.