Exemplo n.º 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);
        }
Exemplo n.º 2
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;
 }