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

            pivotChartPDFExport.ExportToPDF(chartParams);
        }
Пример #2
0
        protected void PivotChart_ServerPDFExporting(object sender, Syncfusion.JavaScript.Web.PivotChartEventArgs e)
        {
            PivotChartPDFExport         pivotChartPDFExport = new PivotChartPDFExport();
            dynamic                     args        = e.Arguments;
            Dictionary <string, string> chartParams = serializer.Deserialize <Dictionary <string, string> >(args["args"].ToString());

            pivotChartPDFExport.ExportToPDF(chartParams);
        }
Пример #3
0
        public ActionResult ExportToPDF()
        {
            PivotChartPDFExport pivotChart = new PivotChartPDFExport();
            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.ExportToPDF(clientParams));
        }