CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2005
    Posts
    1

    Lightbulb rtf to html conversion

    hii,

    i need to convert rtf to html using c#,plz send me details abt the same.Iam finding the code on vc++ but not on c#

    regards
    srini

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: rtf to html conversion

    I don't know of anything in C#. Why don't you just put the C++ code in a dll and call it from C#. Surely all it needs is a method like :

    Code:
    void __stdcall ConvertHtmltoRtf(LPCSTR szHtmlFile, LPCSTR szRtfFile);
    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  3. #3
    Join Date
    Sep 2012
    Posts
    4

    Re: rtf to html conversion

    Hi. I suggest you use the library for this. "RTF to HTML DLL. Net" supports Text, RTF documents converting into HTML/XHTML. Library doesn't require installed require MS Office or any word-processor. The full version of "RTF to HTML" for 1 Developer and 1 Server License will be cost $239(US). But if you want for free, try to use FREE TRIAL version of this library. The trial version is complete functional and differs from full only that:
    1.Converts only first 30,000 symbols
    2.Can be used only for evaluating and testing

    Sample code for the converting rtf to html in c#:


    SautinSoft.RtfToHtml convert = new SautinSoft.RtfToHtml();
    string htmlString = convert.ConvertString("yourString");
    Attached Images Attached Images  

  4. #4
    Join Date
    Sep 2012
    Posts
    4

    Post Re: rtf to html conversion

    Disclaimer: I'm working for this company.
    Try to use our "RTf to HTM DLL .Net" for this. Library supports rtf to html converting very good. We offer the full version and free trial. The full version without any restrictions. Trial version allows to convert only first 30,000 symbols and can be used only for evaluating and testing.
    More about "RTF to HTML DLL .Net".
    sample code for the converting from rtf to html in C# for you:
    Code:
    Convert text string to html string in C#:
    		SautinSoft.RtfToHtml convert = new SautinSoft.RtfToHtml();
            string htmlString = convert.ConvertString("yourString");
    If you have any questions about our products, our online-support team will be glad to help you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured