Bidirectional RTF<->HTML conversion (again - getting desperate)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joergen Bech

    #1

    Bidirectional RTF<->HTML conversion (again - getting desperate)


    Help! Looking for a .Net-kompatible component for converting between
    HTML and RTF (both ways).

    Asked this question a few days ago and received this link:


    This was useful, but only converting in one direction. And XHTML is a
    bit too strict.

    Only commercial product I found was the ActiveUp ActiveRTF:
    http://www.activeup.com/products/components/activertf/ but after
    buying it I realized that its tag support is extremely limited, so
    I am trying to find something else.

    I noticed that copying between WordPad and FreeTextBox works very
    well, so I started looking at using mshtml (sending
    selectall/copy/paste)
    commands, but performance is not that great and this method seems to
    require that mshtml is hosted on a form (i.e. have a window).

    I need an interface-less solution. I understand that this conversion
    is built into the operating system? Perhaps using msconv97.dll and
    html32.cnv? But I cannot find any wrappers for these components
    or any documentation about how to access those conversion functions
    directly from .Net?

    Using Word automation or running command-line utilities that require
    writing and reading input/output files would be too slow, as I need to
    use this in an ASP.Net application which - on the server - has no
    interface and requires perhaps a dozen conversions for each page
    served.

    Any ideas? I cannot believe that everybody (e.g. HTML Help authoring
    tool vendors) are rolling their own html<->rtf converters?

    All the open source examples I have come across have only been
    one-way conversion utilities with very limited tag support. Too much
    work converting any of them to .Net and expand them to fit my needs.

    I basically need to support the formatting available in WordPad.

    TIA,

    Joergen Bech



Working...