1
Reply

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

padmapriya patruni

padmapriya patruni

Jul 16 2014 7:09 AM
1.4k
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)