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

PDF Export Tutorial missing definition of SetDataSourceAndBind and SetExportProperties

Asked by Scott
7 months ago.

Hi,

I am working through the PSF Export tutorial...
https://code.daypilot.org/69614/scheduler-pdf-export-asp-net-c-vb-sql-server

There are two function calls which are not defined in the tutorial...

private void ExportToPng()
{
SetDataSourceAndBind(); // not defined
SetExportProperties(); // not dfined

Response.Clear();
Response.ContentType = "image/png";
Response.AddHeader("content-disposition", "attachment;filename=print.png");
MemoryStream img = DayPilotScheduler1.Export(ImageFormat.Png);
img.WriteTo(Response.OutputStream);
Response.End();
}

Could you please provide the code for these functions?

Thank You

Answer posted by Dan Letecky [DayPilot]
7 months ago.

The tutorial text is now updated to include these methods as well:
https://code.daypilot.org/69614/scheduler-pdf-export-asp-net-c-vb-sql-server

You can also find it in the downloadable project - that includes a Visual Studio project with full source that is ready to run.

Please let me know if there is any problem.

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