Skip to content

DHTMLX/scheduler-to-pdf-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dhtmlxScheduler v4.x to PDF print tool for .NET

This project can be used to print dhtmlxScheduler to PDF using legacy export extension

Docs :

Demo:

Disclaimer

This version of the export tool won't be actively developed. We encourage you to use the new version of the export tool instead:

Usage

Sample backend implementation

ASP.NET WebForms

//Generate.ashx using System.Web; using DHTMLX.Export.PDF; using System.Web.Configuration; public class Generate : IHttpHandler { public void ProcessRequest(HttpContext context) { PagesSection pageSection = new PagesSection(); pageSection.ValidateRequest = false; var generator = new SchedulerPDFWriter(); var xml = context.Server.UrlDecode(context.Request.Form["mycoolxmlbody"]); generator.Generate(xml, context.Response); } public bool IsReusable { get { return false; } } }

ASP.NET MVC

using System.IO; using System.Web; using System.Web.Mvc; using DHTMLX.Export.PDF; namespace scheduler2pdf.Controllers { [HandleError] public class GeneratorController : Controller { [ValidateInput(false)] public ActionResult Export() { var generator = new SchedulerPDFWriter(); var xml = this.Server.UrlDecode(this.Request.Form["mycoolxmlbody"]); MemoryStream pdf = generator.Generate(xml); return File(pdf.ToArray(), generator.ContentType); } } }

License

Distributed under the MIT software license
Copyright (c) 2017 Dinamenta UAB

About

dhtmlxScheduler v4.x to PDF print tool for .NET

https://dhtmlx.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages