DayPilot Forums

AJAX Calendar/Scheduling Controls
DayPilot » Forums » Bugs » Last day of Printing period

Last day of Printing period

I am using DaypilotScheduler. First generate on WebSite, next print to file. My problem is:

DayPilotScheduler on web site is correct. But whenI used:

MemoryStream img = DayPilotScheduler1.Export(ImageFormat.Png);
FileStream fs=new FileStream("c:\\a.png",FileMode.Create);
byte[] data = img.ToArray();
fs.Write(data, 0, data.Length);
fs.Close();

my images doesn't content last day of period.

For example i have chart, from 13.01.2010 to 28.01.2010. In web site is correct 15 days. In image it's 14 days. It's end ne day before it should. Continuing: 2 etaps. irst 13.01.2010 to 21.01.2010 and second from 21.01.2010 to 28.01.2010. First etapon Web Site and Image is correct. Second etap during from: 21.01.2010 to 27.01.2010,should to 28.01.2010.

Am i Doing something wrong or this is bug?

Kamil Zegadlo - 3/8/2010 2:47:44 PM

It should always print at least the cells that are visible.

  • If you are using Width in pixels (Width="500px") the exported width it should match the visible time range exactly. If you scroll to the very right it will print one extra cell (corresponding to the vertical scrollbar width).
  • If you are using Width in percent (Width="100%") it exports the respective part of the total time range.

If it doesn't correspond to these rules, could you please send a sample project/page that reproduces the problem to support@daypilot.org?

Dan Letecky - 3/9/2010 2:18:13 PM

Ok, two screens:

1. First how it looks on web:

http://img367.imageshack.us/img367/415/daypilotschedulerweb.jpg

2. Second how it looks after print:

http://img363.imageshack.us/img363/6536/daypilotschedulerprint.jpg

After print, chart end one day earlier.

Kamil Zegadlo - 3/15/2010 5:39:41 PM

Hello Dan Latecky,

this topic:

http://forums.daypilot.org/Topic.aspx/984/weekly_export_png_doesnt_export_last_day

is similiar. Can you confirm that isa bug and say when it will be fixed?

Kamil Zegadlo - 4/14/2010 7:13:11 AM

Yes, I confirm the bug. It will be fixed in the 5.9 release.

Dan Letecky - 4/16/2010 1:59:53 AM

DayPilot Pro 5.9 is now released and this bug is fixed.

Dan Letecky - 4/20/2010 2:56:36 AM

Great job. Thanks.

Kamil Zegadlo - 4/26/2010 3:01:46 AM
Post reply