Obtaining the selcted text and popping of a dialogue box

A

archana

Hi,

I am new to this domain of COM. My problem is as follows:

1.I have created a button in word. Took the help of the ComAddin.ex
example which explains how the adding of buttons is supposed to b
done, using the following link.

http://support.microsoft.com/?id=230689

I have selected some text in my word document using the cursor. No
after I click on this button, I want to access the text I selected.
I think it has something to do with the ISelection inteface.
But I am not sure how this is done.

Can you tell me how to go about it, by illustrating it through a cod
snippet or something. That would be of immense help.

2. Also, there is another button, which I have created, but on clickin
that, I want a dialog box to pop up, which asks the user to select th
file in which he wants to store the data..( that is it the box which
pops up when you choose the save option..that kind of a dialog box)
Can you give me pointers on how to do that also. code snippets would b
of help.

I am using VC++ platform.

Thank you,
Archana
 

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