Beispiel #1
0
        public JQChartExportData GetExportData()
        {
            NameValueCollection form = HttpContext.Current.Request.Form;
            JQChartExportData   jQChartExportData = new JQChartExportData();

            if (form["type"] != null)
            {
                jQChartExportData.Type = form["type"];
            }
            if (form["width"] != null)
            {
                jQChartExportData.Width = Convert.ToInt32(form["width"]);
            }
            if (form["filename"] != null)
            {
                jQChartExportData.FileName = form["filename"];
            }
            if (form["svg"] != null)
            {
                jQChartExportData.SvgStream    = new MemoryStream(Encoding.ASCII.GetBytes(form["svg"]));
                jQChartExportData.ExportActive = true;
            }
            return(jQChartExportData);
        }
Beispiel #2
0
 public JQChartExportData GetExportData()
 {
     NameValueCollection form = HttpContext.Current.Request.Form;
     JQChartExportData data = new JQChartExportData();
     if (form["type"] != null)
     {
         data.Type = form["type"];
     }
     if (form["width"] != null)
     {
         data.Width = Convert.ToInt32(form["width"]);
     }
     if (form["filename"] != null)
     {
         data.FileName = form["filename"];
     }
     if (form["svg"] != null)
     {
         data.SvgStream = new MemoryStream(Encoding.ASCII.GetBytes(form["svg"]));
         data.ExportActive = true;
     }
     return data;
 }