I am trying to use the RadEditor to create a PDF of html that was saved earlier using an HttpHandler. No matter what I try I get a null reference exception.
Is there any reason this should not work? If not, any ideas what I could be missing?
Here is the code I am using currently. I just put this together for testing any help is much appreciated!
Is there any reason this should not work? If not, any ideas what I could be missing?
Here is the code I am using currently. I just put this together for testing any help is much appreciated!
public
void
ProcessRequest(HttpContext context)
{
var editor =
new
Telerik.Web.UI.RadEditor();
editor.ContentFilters = Telerik.Web.UI.EditorFilters.DefaultFilters | Telerik.Web.UI.EditorFilters.PdfExportFilter;
//editor.ExportContent += new Telerik.Web.UI.EditorExportContentEventHandler(editor_ExportContent);
editor.ExportSettings.FileName =
"cv"
;
editor.ExportSettings.Pdf.Title =
"TEST"
;
editor.Content =
"<b>HTML</b>"
;
editor.ExportToPdf();
context.Response.Write(
"H"
);
}