padmapriya patruni

padmapriya patruni

  • NA
  • 74
  • 117.5k

convert html data to pdf in devexpress using c#.net

Jul 16 2014 7:09 AM
my problem is the html data need to convert pdf. i was tried the code but it is showing error plz help me . below code is there.


RichEditDocumentServer srv = new RichEditDocumentServer();
            srv .LoadDocument("<html>fdhsdfd dshdsfgds</html>");       
          
            using(Stream str= File.Create(@"D:test.pdf"))
            {
                srv .ExportToPdf(str);
            } 
            Process.Start(@"D:test.pdf");

Answers (1)