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). 3 5585
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).
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).
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).
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bhavya Shah |
last post by:
Hello there,
I am facing a strange problem. I use office converters for converting
Microsoft Word documents to html in my application. I use office automation
for the entire process. I open the...
|
by: Just D. |
last post by:
Guys,
I'm writing the Windows Application and one of the ideas is to use a
RichText field to store/show some formatted text, probably with pictures.
The problem is that this RichEdit control is...
|
by: Richard Loupatty |
last post by:
I tried to start winword.exe from an aspx (after granting things with
dcomcnfg)
and i can see winword.exe showing up in the taskmanager,
but i don't see the word-application itself.
I did set...
|
by: Robin Tucker |
last post by:
Hi,
I am diligently releasing (Marshal.ReleaseComObject (o) ) all references I
pick up while generating a report using VB.NET in my software. At least, I
*think* I am. However, when I have...
|
by: Dean Slindee |
last post by:
The code below is being used to launch WinWord.exe from a VB.NET program.
Word launches, but displays this error message:
"Word has experienced an error trying to open the file. Try these...
|
by: Dean Slindee |
last post by:
The code below is being used to launch WinWord.exe from a VB.NET program.
Word launches, but displays this error message:
"Word has experienced an error trying to open the file. Try these...
|
by: tvjraman |
last post by:
Visual Basic 6
I use Getobject() to get the object of Word application.
I always get the first instance of Winword.exe
I have a macro in another instance of Winword.exe
I need to get the...
|
by: Dean Slindee |
last post by:
Using this statement to utilize the spell checker in WinWord:
WinOffice.clsWord.SpellChecker(txtNote.Text)
'this does not work because no main window is displayed
'Dim proc =...
|
by: ajester |
last post by:
I need WinWord to look like it's being executed from the correct path: C:\Program Files\Microsoft Office\Office12\WinWord.exe when in reality it's being launch from a Java app using the path...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |