WordML -> RTF

D

David Thielen

Hi;

I need to display a WordML document in a control of the form my Add-In pops
up (C#, not VSTO). For a rtf document, I use the rtf edit control and it
works good (doesn't show images).

So, is there a way to create an empty document, populate it with the WordML
image I have, save it to a temp file as a rtf document, then read that file -
without the user seeing anything (ie no Word document poping up on the
screen)?

Or is there any other way to display a WordML doc in a form?
 
W

Wei-Dong XU [MSFT]

Hi Dave,

Currently we are finding one support engineer for you on this issue. We
will update in this thread as soon as possbile.

Thanks for your understanding!

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Peter Huang [MSFT]

Hi David,

Have you tried to use a Webbrowser control as the container?
In Whidbey, we will have a Active Document container control to host Active
Document(e.g. Word document).
But so far we use the Webbrowser instead to host the word document in a
form.

For the first question, why not open the wordml directly and then save it
as a rtf file, in the meantime, you may try to set the visible to false.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

Hi;

I can't do the browser trick because some of our customers only have firefox
installed (mainly for security reasons I think).

I tried the Visible=false on the open/save but the screen blinked when it
happened.

This may just not be doable.
 
P

Peter Huang [MSFT]

Hi

If so, I think you may also try to set the windowstate to
wdWindowStateMinimize.
e.g.
If ActiveDocument.ActiveWindow _
.WindowState = wdWindowStateNormal Then _
ActiveDocument.ActiveWindow.WindowState = wdWindowStateMaximize

So far in .NET 1.1, we have not such an managed active document container
control, it is shipped in the next release.
Also based on my knowledge, the IE is shipped with windows, even if we are
using other webbrowser, so I think we can still use the webbrowser control
in the winform.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top