<script>
function onReportExport(args) {
//increament file name in JS
var _exportName = $(args.exportAction).find('#' + this._id + '_exportfileName');
var currentDate = new Date();
var date = currentDate.getDate();
var month = currentDate.getMonth();
var year = currentDate.getFullYear();
_exportName.val('DemoReport ' + date + '-' + month + '-' + year);
}
</script>
<body style="overflow: hidden; position: static; margin: 0px; padding: 0px; width: 100%; height: 100%">
<div style="width:100%; height:100%; position:absolute;">
@(Html.EJ().ReportViewer("reportsample")
.ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote)
.ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportApi"))
.ReportPath("~/App_Data/GroupingAgg.rdl")
.ReportExport("onReportExport")
)
</div>
</body> |