Skip to content
DayPilot

DayPilot Pro 4.9

Released on July 2, 2008 (build 1456).

Main features

(F73) PNG/GIF/JPG/BMP Export (DayPilot Calendar)

A new server-side Export() method is available in DayPilot Calendar:

Why?

Usage modes:

Signatures:

public MemoryStream Export(ImageFormat format);
public MemoryStream Export(ImageFormat format, int scrollPosition);

Example:

    protected void ButtonExport_Click(object sender, EventArgs e)
    {
        int hourHeight = DayPilotCalendar1.CellsPerHour*DayPilotCalendar1.CellHeight;

        Response.Clear();
        Response.ContentType = "image/png";
        MemoryStream img = DayPilotCalendar1.Export(ImageFormat.Png, 9 * hourHeight);
        img.WriteTo(Response.OutputStream);
        Response.End();

    }

Bugs

Improvements