DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » Bugs » Printing Calendar

Printing Calendar

Hi,
I know the control is not really designed to be printable but many people like to have a hard copy of their calendars, so here goes with the issues I've come across.

IE6
-----
Z-order of events seems to be lower than the z-order of the calendar so the calendar lines print over the top of the event text and the top/left/bottom event borders don't show.
If you turn on background printing then the events don't show at all in the print, probably due to the z-order again.

IE7
--------------
Event lines display correctly under the events, but the top/bottom border still doesn't show
Printing with background on works fine

Firefox
---------
Event lines display correctly under the events, but the top/left/bottom borders dont show
Printing with background on works fine.

Of course the easy solution is to migrate to IE7 or Firefox but unfortunately my workplace seem to think tabbed-browsing will confuse the staff??!!

thanks
Steve65 - 1/23/2008 1:18:25 PM
Surprisingly, z-index is not so much used in DayPilotCalendar. It's only used for a few elements (the moving/resizing shadow, hidden events indicators, etc.).
I think the final solution for the printing problems will be a possibility to render a PNG image instead of HTML. But that's not a near future.

You can also try the following hack to improve the IE printing (but I'm afraid it breaks the event borders in Mozilla):
http://forums.daypilot.org/Topic.aspx/74/printing_event_background
Dan Letecky - 1/24/2008 11:36:43 AM
Post reply