图像导出DayPilot调度程序

本文关键字:调度程序 DayPilot 图像 | 更新日期: 2023-09-27 18:26:53

我正在尝试导出DayPilot Scheduler,使用以下代码

DayPilotScheduler1.DataSource = dbGetEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.Days);//OPens only two Rows
DayPilotScheduler1.DataBind();
DayPilotScheduler1.CssOnly = false;
Response.Clear();
Response.ContentType = "image/png";
Response.AddHeader("content-disposition", "attachment;filename=print.png");
DayPilotScheduler1.DataBind();
MemoryStream img = DayPilotScheduler1.Export(ImageFormat.Png);
img.WriteTo(Response.OutputStream);
DayPilotScheduler1.CssOnly = true;
Response.End();

导出文件中的日期不包括从DayPilotSchedule1.StartDate到的所有时间段

DayPilotSchedule1.EndDate,但只有我在屏幕上看到的日期,比如printscreen。能做什么

造成这个问题的原因?

图像导出DayPilot调度程序

这样做:

DayPilotScheduler1.Width = Unit.Percentage(100);