Autor Beitrag
spacerunner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Fr 25.01.08 17:47 
Hallo,

ich suche nach einer Möglichkeit, MS Word in meiner Applikation inline (bsp. in einem Panel)als Editor zu benutzen. Eigentlich genauso, wie Outlook das (optional) macht. OLE? ActiveX? Wrapper?

Ich wäre sehr dankbar für Lösungsansätze und Ideen...

Viele Grüße,
chris.-
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Fr 25.01.08 19:18 
Nun, per TWebbrowser dürfte es mit ein wenig Tricks gehen. Binde es in eine HTML-Datei ein:

ausblenden XML-Daten
1:
<object type="application/msword" data="beispiel.doc"></object>					


Und zeige dann mit TWebBrowser die Seite an. Geht sogar mit:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
uses MSHTML_TLB;

...

(WebBrowser1.Document as IHTMLDocument2).body.innerHTML := '<object type="application/msword" data="beispiel.doc"></object>';


so sollte es gehen ...

EDIT: es geht noch einfacher:
ausblenden Delphi-Quelltext
1:
Webbrowser1.Navigate('document1.doc');