예제 #1
0
        public void WordExport()
        {
            PivotGridWordExport pGrid = new PivotGridWordExport();
            string args     = System.Web.HttpContext.Current.Request.Form.GetValues(0)[0];
            string fileName = "Sample";

            pGrid.ExportToWord(fileName, args, System.Web.HttpContext.Current.Response);
        }
        protected void PivotGrid_ServerWordExporting(object sender, Syncfusion.JavaScript.Web.PivotGridEventArgs e)
        {
            PivotGridWordExport pGrid = new PivotGridWordExport();
            dynamic             args  = e.Arguments;
            string fileName           = "Sample";

            pGrid.ExportToWord(fileName, args["args"].ToString(), HttpContext.Current.Response);
        }
예제 #3
0
        public ActionResult WordExport()
        {
            PivotGridWordExport pGrid = new PivotGridWordExport();
            var    context            = _contextAccessor.HttpContext;
            var    args     = context.Request.Form.ElementAt(0).Value;
            string fileName = "Sample";

            return(pGrid.ExportToWord(fileName, args, context.Response));
        }