I try to run Export PDF from button,which i’m ok,no any error but data doesn’t be loaded to PDF.
My Scripts
cshtml
<input type=“button” value=“PDF” class=“dhx_cal_today_button”
onclick=“@Html.Raw(Model.ToPDF(Url.Action(“ExportPDF”, “Export”), DHTMLX.Scheduler.ExportColorScheme.Color))” />
Controller [HttpPost, ValidateInput(false)]
public ActionResult ExportPDF()
{
try
{
var generator = new SchedulerPDFWriter();
var xml = this.Server.UrlDecode(this.Request.Form[“mycoolxmlbody”]);
MemoryStream pdf = generator.Generate(xml);
return File(pdf.ToArray(), generator.ContentType);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
Result Of XML is:
“\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n”
It look like load default of each day,But No data binding.
Thanks for your support.