?
Solved

winforms embbed office documents for visualization

Posted on 2010-11-19
5
Medium Priority
?
675 Views
Last Modified: 2013-11-26
hello, i need help on how to show office documents embbed in a application..

all i managed to find was:

http://support.microsoft.com/kb/304662

that is to use webbrowser to show office documents.. but the problem is that i will be showing office 2007 documents, and in the article it says webbrowser doesnt support such.. (only if i modify the registry, and i cant).. the other solution link doesnt work..

does any1 how i can show office 2007/2010 documents in a .net application (basic i need to show word documents and office msg files)

thx
0
Comment
Question by:eguilherme
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Hairbrush
ID: 34186850
Take a look at http://www.west-wind.com/weblog/posts/1299.aspx - the author has written a good description of how to embed Word into a .NET winforms application.

Alternatively - have you thought of having links within your application that just open the appropriate application?
0
 
LVL 10

Author Comment

by:eguilherme
ID: 34206200
yes i saw that before Hairbrush.. the problem is his solution is the same the microsoft article says.. embbed in a internet explorer activex..

but as the article says it doesnt work in office 2007 documents.. you would have to create your own component or change the client registry to make ie open office 2007 doc.. but that is not an option..

and to just open the documents in a office app itselft isnt really that good because the app im workin on needs to show both the app window and its info and the office documents side by side.. (so i either embbed the office document within a form i made or somehow using windows api/etc rearrange the office window to be side by side with mine.. but doesnt look that viable solution either)
0
 
LVL 10

Accepted Solution

by:
eguilherme earned 0 total points
ID: 34212493
ok.. i gave up trying to add them to my program in a "normal" way..

im using now a combination of

http://www.pinvoke.net/default.aspx/user32/SetParent.html
http://www.pinvoke.net/default.aspx/user32/ShowWindow.html

to show the office application window inside my app.. well since i dont need to modify anything in the document but just show it in my application this solve my problems for now
0
 
LVL 12

Expert Comment

by:Hairbrush
ID: 34212976
Thanks for sharing your solution - I am sure someone else will end up finding it useful!
0
 
LVL 10

Author Closing Comment

by:eguilherme
ID: 34237133
found a solution myself
0

Featured Post

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question