﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Save chart setting</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Save-chart-setting/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Save chart setting</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Save-chart-setting/</link><pubDate>Mon, 08 Mar 2010 02:41:08 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;WebGrid has “SaveChartToXml()” method that allows user to save chart settings to a xml file. I enclosed one simple sample that shows how to save chart settings to xml file and load it by using button click event. &lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;...&lt;br /&gt;One of the lines genrated is:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;&amp;lt;ChartSettings Height="429" Width="1042" ChartEngine="Nevron"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 13px"&gt;Is it possible to remove the Height and Width from the xml before it is saved?&lt;br /&gt;...&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to remove the Height and Width from the xml, we need to set it to null before it is saved. &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;WebGrid1.ChartSettings.Width = null;
WebGrid1.ChartSettings.Height = null;
WebGrid1.SaveChartToXml(Server.MapPath("WebGridChartSettings.xml"));
    &lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps. &lt;/span&gt;&lt;/p&gt;</description></item><item><title>Save chart setting</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Save-chart-setting/</link><pubDate>Sun, 07 Mar 2010 15:03:54 GMT</pubDate><dc:creator>alagarde@fortesys.com</dc:creator><description>&lt;p&gt;The following code from a sample generates the xml for the chart.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-size: 13px"&gt;System.Xml.&lt;/span&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;XmlDocument&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; ChartXmlStructure = &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; System.Xml.&lt;/span&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;&lt;span style="color: #2b91af; font-size: 13px"&gt;XmlDocument&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;();&lt;p&gt;ChartXmlStructure = WebGrid1.SaveChartToXml();&lt;/p&gt;Session[&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"Chart"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;] = ChartXmlStructure;&lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;One of the lines genrated is:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&amp;lt;ChartSettings Height="429" Width="1042" ChartEngine="Nevron"&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;Is it possible to remove the Height and Width from the xml before it is saved?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Save chart setting</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Save-chart-setting/</link><pubDate>Fri, 05 Mar 2010 08:37:27 GMT</pubDate><dc:creator>alagarde@fortesys.com</dc:creator><description>&lt;p&gt;Is it possible to save chart setting to a file and then open a chart in the future with those setting?&lt;/p&gt;</description></item></channel></rss>