Is there a way to embed a Microsoft Word document to a Windows form?<p align=left><font face=Arial size=2></font> </p>Hi there.  I was wondering about how you would embed a Microsoft Word document in a Windows form.  I was using RichTextBox to load it in RTF, but I don't like the way the RichTextBox loads some of Word's Tables.  Additionally, I like the selection tool better in Word than the RichTextbox on Word Tables as well.© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Z5b6e25d3-75e0-4f77-9483-82cc8fc79e9dhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/5b6e25d3-75e0-4f77-9483-82cc8fc79e9d#5b6e25d3-75e0-4f77-9483-82cc8fc79e9dhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/5b6e25d3-75e0-4f77-9483-82cc8fc79e9d#5b6e25d3-75e0-4f77-9483-82cc8fc79e9dDavid Reynolds in Cincinnatihttp://social.msdn.microsoft.com/Profile/en-US/?user=David%20Reynolds%20in%20CincinnatiIs there a way to embed a Microsoft Word document to a Windows form?<p align=left><font face=Arial size=2></font> </p>Hi there.  I was wondering about how you would embed a Microsoft Word document in a Windows form.  I was using RichTextBox to load it in RTF, but I don't like the way the RichTextBox loads some of Word's Tables.  Additionally, I like the selection tool better in Word than the RichTextbox on Word Tables as well.Thu, 13 Mar 2008 18:57:02 Z2008-03-19T11:06:05Zhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/5b6e25d3-75e0-4f77-9483-82cc8fc79e9d#83161fa3-2785-4102-8691-c05c798f31c1http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/5b6e25d3-75e0-4f77-9483-82cc8fc79e9d#83161fa3-2785-4102-8691-c05c798f31c1Martin Xie - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Martin%20Xie%20-%20MSFTIs there a way to embed a Microsoft Word document to a Windows form?<p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> <div class=quote> <table width="85%"> <tbody> <tr> <td class=txt4> <strong>David Reynolds in Cincinnati wrote:</strong></td></tr> <tr> <td class=quoteTable> <table width="100%"> <tbody> <tr> <td class=txt4 valign=top width="100%"></span> <p></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">I was wondering about <span style="color:blue">how you would embed a Microsoft Word document in a Windows form</span>.</span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span></p></td></tr></tbody></table></td></tr></tbody></table></div></span> <p></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Hi <span style="color:blue">David</span>,</span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Here are two approaches to opening word document inside a Winfodws form.</span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">1. Using </span><span style="font-size:10pt;font-family:'Verdana','sans-serif'">WebBrowser control to open (but without menubar and toolbar).</span><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span></p> <p class=MsoNormal style="margin:0in 0in 10pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">WebBrowser1.Navigate(<span style="color:#a31515">&quot;C:\myDocment.doc&quot;</span>)</span><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">2. Using third-part component <b>winwordcontrol</b><span style=""> to open </span>(with menubar and toolbar)<span style="">.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"><a title="http://www.codeproject.com/KB/office/WordInDotnet.aspx" href="http://www.codeproject.com/KB/office/WordInDotnet.aspx"><span style="color:#013da4">http://www.codeproject.com/KB/office/WordInDotnet.aspx</span></a></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">This article including demo project and C# source code, explains how you can <span style="color:blue">integrate Microsoft Word (including Menubar and Toolbar) in your .NET applications</span>.</span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"><img src="http://www.codeproject.com/KB/office/WordInDotnet/WordInDotnet.jpg" border=0></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;color:black;font-family:'Verdana','sans-serif'">By the way, here are two helpful tools:</span><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;color:black;font-family:'Verdana','sans-serif'">1) <a title="http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_VB.htm" href="http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_VB.htm"><span style="color:#013da4">Instant VB: C# to VB converter</span></a></span><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;color:black;font-family:'Verdana','sans-serif'">The tool can convert entire C# project to corresponding VB.NET project, also can convert code snippet.</span><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;color:black;font-family:'Verdana','sans-serif'">2) Convert C# code to VB.NET code by means of this <a title="http://www.carlosag.net/Tools/CodeTranslator/Default.aspx" href="http://www.carlosag.net/Tools/CodeTranslator/Default.aspx"><span style="color:#013da4">Code Translator tool</span></a>.</span><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Also try this approach to open word document inside a Panel control.</span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"><a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2616199&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2616199&amp;SiteID=1"><span style="color:blue">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2616199&amp;SiteID=1</span></a></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"><img src="http://images13.51.com/117/a/98/9c/karty2000/1199172113_19294900.jpg" border=0></span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span> </p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal" align=left><span style="font-size:10pt;font-family:'Verdana','sans-serif'"></span> </p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Regards,</span></p> <p class=MsoNormal style="margin:0in 0in 0.75pt;line-height:normal"><span style="font-size:10pt;font-family:'Verdana','sans-serif'">Martin</span></p>Wed, 19 Mar 2008 11:05:57 Z2008-03-19T11:06:05Z