Java 图像导出向导计划程序
我正在尝试导出DayPilot调度程序,使用以下代码Java 图像导出向导计划程序,java,c#,.net,daypilot,Java,C#,.net,Daypilot,我正在尝试导出DayPilot调度程序,使用以下代码 DayPilotScheduler1.DataSource = dbGetEvents(DayPilotScheduler1.StartDate, DayPilotScheduler1.Days);//OPens only two Rows DayPilotScheduler1.DataBind(); DayPilotScheduler1.CssOnly = false; Response.Clear(); Response.Cont
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();
导出文件中的日期不包括从DayPilotScheduler1.StartDate到
DayPilotsScheduler1.EndDate,但只有我在屏幕上看到的日期,如printscreen。什么能
导致此问题的原因?请执行以下操作:
DayPilotScheduler1.Width = Unit.Percentage(100);
这样做:
DayPilotScheduler1.Width = Unit.Percentage(100);