VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Embed Micosoft Word in Vb.net Posted by prashugaonkar on 6 Jul 2010 at 3:57 AM
Hi!!

In my application, i need to add the different word documents. But when i open i want to open it in the word file. Instead of opeining in the Richtextbox control which opens only rtf file extension. How do i do it. Is there any control which embeds the word application as well as the excel appplication . So we can open and edit into it.

Please help me out in this.

Rgds
Prashanti
Report
Re: Embed Micosoft Word in Vb.net Posted by seancampbell on 7 Jul 2010 at 7:17 AM
These two articles discussing adding reference's to the Office packages in your Visual Studio project.

The vbdotnetheaven one has a downloadable sample.

http://www.vbdotnetheaven.com/Uploadfile/mgold/WordDocument04182005081441AM/WordDocument.aspx

http://www.builderau.com.au/program/dotnet/soa/Easily-utilise-Microsoft-Word-functionality-in-your-NET-application/0,339028399,339198903,00.htm

Hope this helps,
Sean C - forum mod
Report
Re: Embed Micosoft Word in Vb.net Posted by prashugaonkar on 7 Jul 2010 at 9:28 PM
This links i have gone through before. This opens the word document but its in read only mode. I would like to change the contents of it.. For that i needed it.
Report
Re: Embed Micosoft Word in Vb.net Posted by seancampbell on 8 Jul 2010 at 5:33 AM
http://www.java2s.com/Tutorial/VB/0440__Windows/EditWorddocument.htm
--In the above link, the poster demonstrates how to replace text inside of a word document and save those changes

You open the object the same way as the prior links, but he actually performs actions on the Document object to make changes.

http://msdn.microsoft.com/de-de/library/microsoft.office.interop.word._document_members%28office.11%29.aspx
--In the MSDN link, you have visibility into all of the available members and methods of the Document object

That's the best I can do for you.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.