I have gone through Brian Jones posts and others but cant find what I want.
Here is what I want. I am using VSTO, VS2008, Office2007
1. I have a button on a custom ribbon called "Save To DB", installed via
add-in
2. When a client selects anything (pictures,tables anything) in the word
document and presses the button, the selection is saved in another Word
document called db.docx.
3. Yes, I am using a word document as a database, I know this seems funny,
but please dont laugh. Still new here!
4. And that db.docx, must have a custom tag such as below (example)
<w:customTag name="selectionID" value="someNumber1"/>
<w:p>
<What ever the client had selected>
</w:p>
<w:customTag name="selectionID" value="someNumber2"/>
<w:p>
<What ever the client had selected>
</w:p>
5. I am using the value of selectionID as a primary key. Why? so that I can
retrieve what ever that was saved for later on.
6. Is this a good way? Or a really bad idea? I need a direction friends,
please help!
Thanks
If you could explain *what* you want to do, instead of *how* you want to
do it, perhaps we can help.
///Peter