public void WordExport()
        {
            PivotChartWordExport pivotChartWordExport = new PivotChartWordExport();
            string args = System.Web.HttpContext.Current.Request.Form.GetValues(0)[0];
            Dictionary <string, string> chartParams = serializer.Deserialize <Dictionary <string, string> >(args);

            pivotChartWordExport.ExportToWord(chartParams);
        }
Exemplo n.º 2
0
        protected void PivotChart_ServerWordExporting(object sender, Syncfusion.JavaScript.Web.PivotChartEventArgs e)
        {
            PivotChartWordExport pivotChartWordExport = new PivotChartWordExport();
            dynamic args = e.Arguments;
            Dictionary <string, string> chartParams = serializer.Deserialize <Dictionary <string, string> >(args["args"].ToString());

            pivotChartWordExport.ExportToWord(chartParams);
        }
Exemplo n.º 3
0
        public ActionResult ExportToWord()
        {
            PivotChartWordExport pivotChart = new PivotChartWordExport();
            var context = _contextAccessor.HttpContext;
            var args    = context.Request.Form.ElementAt(0).Value;
            Dictionary <string, string> clientParams = JsonConvert.DeserializeObject <Dictionary <string, string> >(args);

            clientParams["fileName"] = "sample";
            return(pivotChart.ExportToWord(clientParams));
        }