I'm sure this is possible but I cant quite get the provider usage figured out. I have a string of HTML I want to output as a PDF . This does not work, what am i doing wrong?
protected void test(string htmlString)
HtmlFormatProvider htmlDoc = new HtmlFormatProvider();
byte renderedBytes = null;
IFormatProvider<RadFlowDocument> formatProvider = new PdfFormatProvider();
using (MemoryStream ms = new MemoryStream())
formatProvider.Export(htmlDoc, ms); // this is invalid
renderedBytes = ms.ToArray();
Response.AppendHeader("Content-Disposition", "attachment; filename=ExportedFile" + ".pdf");
Response.ContentType = "application/pdf";
6 Answers, 1 is accepted
Is there a way to add page numbers to the output PDF files (exportsettings doesnt seem to cover it)?
Thank you Nikolay, the reference to FieldInfo is undefined, what assembly am I missing:
" FieldInfo field = new FieldInfo(document);"