【问题标题】:Image Export DayPilot Scheduler图像导出 DayPilot 调度程序
【发布时间】:2013-08-09 19:09:02
【问题描述】:

我正在尝试使用此代码导出 DayPilot 调度程序

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 到的所有时间段

DayPilotScheduler1.EndDate,但只有我在屏幕上看到的日期,比如 printscreen。什么可以

导致这个问题?

【问题讨论】:

    标签: java c# .net daypilot


    【解决方案1】:

    这样做:

    DayPilotScheduler1.Width = Unit.Percentage(100);
    

    【讨论】:

      猜你喜欢
      • 2021-02-02
      • 2015-03-26
      • 1970-01-01
      • 1970-01-01
      • 2020-04-19
      • 2011-02-25
      • 2019-07-24
      • 2014-07-24
      • 1970-01-01
      相关资源
      最近更新 更多