search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Daypilot Scheduler - Export to PDF

Related article: Scheduler PDF Export (ASP.NET, C#, VB, SQL Server)
Asked by Anonymous
8 years ago.

How to Set Header and Footer Using PDD Sharp Library and Xgraphics ?

Answer posted by Dan Letecky [DayPilot]
8 years ago.

If you want to add custom header and footer to each PDF page simply use the code from "Add Title to PDF" section:

// create a graphics object for PDF page modification
XGraphics gfx = XGraphics.FromPdfPage(page);

// write title
XRect titleRect = new XRect(new XPoint(), gfx.PageSize);
titleRect.Inflate(-10, -15);
XFont font = new XFont("Tahoma", 14, XFontStyle.Bold);
gfx.DrawString("DayPilot Scheduler PDF Export", font, XBrushes.DarkGray, titleRect, XStringFormats.TopCenter);

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.