首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >图像导出DayPilot调度程序

图像导出DayPilot调度程序
EN

Stack Overflow用户
提问于 2013-08-08 15:00:18
回答 1查看 357关注 0票数 2

我正在尝试使用以下代码导出DayPilot调度器

代码语言:javascript
复制
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。什么可以

导致这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2016-04-20 16:02:22

执行以下操作:

代码语言:javascript
复制
DayPilotScheduler1.Width = Unit.Percentage(100);
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18119791

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档