1
Answer

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

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)