SetParent for Word 2007

S

Sachya

I want to open the office document word 2007 document inside my windows form,
and I am using SetParent api to achieve this. This makes sure that word
document comes within my windows form but i am not able to access its tool
bar and when i minimize or close the word document it closes my main windows
form. I tried using webcontrol to display office documents inside web control
but it doesn't open document inside the webcontrol where as it opens it
outside my windows form.
Any suggestion to open word 2007 document inside windows form?
Why SetParent is misbehaving for word 2007, it works fine for other
application and office 2003.
Thanks in advance
 
C

Cindy M.

Hi =?Utf-8?B?U2FjaHlh?=,
I want to open the office document word 2007 document inside my windows form,
and I am using SetParent api to achieve this. This makes sure that word
document comes within my windows form but i am not able to access its tool
bar
Since Office 2007 no longer has toolbars that's not surprising. With the new
Ribbon interface you're not going to be able to affect the menus/tools that come
in with the Office application as you could in earlier versions.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
S

Sachya

Thanks Cindy,
But then how do I achieve this displaying a word 2007 document display
within a windows form, and work on the word document normally.
 
C

Cindy M.

Hi =?Utf-8?B?U2FjaHlh?=,
But then how do I achieve this displaying a word 2007 document display
within a windows form, and work on the word document normally.
Keep in mind that this is a VBA newsgroup and not a .NET newsgroup.
You're WAY off-topic, here.

You might get some action in the office.developer.automation forum. From
what I've seen, if you want to affect the Ribbon, you need to first open
the docx file Package (http://openxmldeveloper.org/default.aspx) and
create the XML for the Ribbon (pschmid.not). Then when you open the
document in the embedded control you should see your Ribbon, not Word's
default.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top