By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,375 Members | 1,095 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,375 IT Pros & Developers. It's quick & easy.

View a WinWord Doc in a WinForm

P: n/a
Does anyone know how I could view a WinWord Doc in a WinForm (other than
convert to RTF or HTML)? I cannot convert it to RTF because I have drawn
lines and they will not come through when converted to RTF. I would rather
not convert to HTML because of the ease in changing the format (doc will
change).
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
John,

If you host the webbrowser control, and call the Navigate method on it,
passing a path to the Word document, then it will use Word in the web
browser control to display it.

Also, in the next release of .NET, there will be an Active Document Host
control, which you can use to show word documents, excel documents, etc,
etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Mark Howell" <jm*********@hotmail.com> wrote in message
news:eP*************@tk2msftngp13.phx.gbl...
Does anyone know how I could view a WinWord Doc in a WinForm (other than
convert to RTF or HTML)? I cannot convert it to RTF because I have drawn
lines and they will not come through when converted to RTF. I would rather not convert to HTML because of the ease in changing the format (doc will
change).

Nov 16 '05 #2

P: n/a
It does help some and I greatly appreciate the tip. However, there are a
couple of drawbacks. First, the time it takes to load (or refresh if the
doc changes); second, the WinWord document view is whatever the user has set
(ex. if the user has zoom level 200, the doc window will automatically zoom
to that level).

On the new Active Document Host Control, will we be able to minipulate the
hosted document or is it view only? Will it be able to sense changes in the
stored document and refresh automatically? And finally, when would we even
be able to begin to expect it?

TIA.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uP**************@TK2MSFTNGP12.phx.gbl...
John,

If you host the webbrowser control, and call the Navigate method on it, passing a path to the Word document, then it will use Word in the web
browser control to display it.

Also, in the next release of .NET, there will be an Active Document Host control, which you can use to show word documents, excel documents, etc,
etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Mark Howell" <jm*********@hotmail.com> wrote in message
news:eP*************@tk2msftngp13.phx.gbl...
Does anyone know how I could view a WinWord Doc in a WinForm (other than
convert to RTF or HTML)? I cannot convert it to RTF because I have drawn lines and they will not come through when converted to RTF. I would

rather
not convert to HTML because of the ease in changing the format (doc will
change).


Nov 16 '05 #3

P: n/a
John,

You could expect it in the next release of .NET, which is at least six
months away (it's not called VS.NET 2005 for nothing, hehe).

As for the questions about the host control, I think you will be able to
edit it as well. I don't know about the refresh capabilities (that would be
a problem if you have edits in it already).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Mark Howell" <jm*********@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
It does help some and I greatly appreciate the tip. However, there are a
couple of drawbacks. First, the time it takes to load (or refresh if the
doc changes); second, the WinWord document view is whatever the user has set (ex. if the user has zoom level 200, the doc window will automatically zoom to that level).

On the new Active Document Host Control, will we be able to minipulate the
hosted document or is it view only? Will it be able to sense changes in the stored document and refresh automatically? And finally, when would we even be able to begin to expect it?

TIA.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:uP**************@TK2MSFTNGP12.phx.gbl...
John,

If you host the webbrowser control, and call the Navigate method on

it,
passing a path to the Word document, then it will use Word in the web
browser control to display it.

Also, in the next release of .NET, there will be an Active Document

Host
control, which you can use to show word documents, excel documents, etc,
etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Mark Howell" <jm*********@hotmail.com> wrote in message
news:eP*************@tk2msftngp13.phx.gbl...
Does anyone know how I could view a WinWord Doc in a WinForm (other than convert to RTF or HTML)? I cannot convert it to RTF because I have drawn lines and they will not come through when converted to RTF. I would

rather
not convert to HTML because of the ease in changing the format (doc will change).



Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.