.net - Embed a WPF UI object into a Word/OpenOffice document? -
i'm working on project needs embed custom objects documents (either microsoft word or openoffice writer). objects microsoft equation or openoffice formula objects, except render , allow editing of content specific our business. ultimately, documents exported pdf.
since else in project based on wpf , our development environments , build processes based on .net, nice able create these objects using exclusively or exclusively wpf/.net.
the obvious choice embedding objects documents ole, far can tell, wpf has little support ole.
what options have? what's best (reliable, performant, , simple) this?
(or if knows sure there isn't way other going ole language c++ or vb6, know too)
you can inside wpf richtextbox
, insert inlineuicontainer
(or blockuicontainer
) can put uielement
button or more complicated.
you can convert richtextbox
content, orginally flowdocument
, rtf or xaml or html, or office openxml format (.docx) openxml sdk.
maybe it's possible replace richtexbox
actual microsoft word window, stuck inside wpf application, , embed wpf controls in inlineuicontainer
, don't know how yet. i'll post if find out.
Comments
Post a Comment