Announcement

Collapse
No announcement yet.

RTF in HTML

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • RTF in HTML

    Hallo,

    Ich suche eine Möglichkeit, wie ich Richedit-Textformate in HTML konvertieren kann. Ich brauche jedoch dazu entweder eine Komponente eine Bibliothek oder villeicht sogar den Quelltext.
    Es wäre schön, wenn mir jemand von euch helfen könnte.

    MfG Stefan

  • #2
    Hallo,

    wenn Microsoft Word auf diesem Rechner installiert ist, kann man über Automation die dort implementierten Objekte mit dieser Aufgabe beauftragen:
    <pre>
    WordApplication1.Documents.OpenOld(vDOCPath, EmptyParam, vReadOnly,
    EmptyParam, EmptyParam, EmptyParam, EmptyParam, EmptyParam,
    EmptyParam, EmptyParam);
    WordDocument1.ConnectTo(WordApplication1.ActiveDoc ument);
    sHTMLName := ChangeFileExt(WordDocument1.Name, '.htm');
    vURL := 'http://localhost/W2k/' + sHTMLName;
    vWdFormat := wdFormatHTML;
    WordDocument1.SaveAs(vURL, vWdFormat);
    vDocClose := WdDoNotSaveChanges;
    WordDocument1.Close(vDocClose);
    </pre&gt

    Comment

    Working...
    X