I would personally go for a Visual Basic Macro or use Visual Basic to write the addin. But maybe this will help.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
It has been a long time since I wrote a macro, but if I remember correctly,
ThisDocument.Text gives you the text in the current document. Compile and see.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
Oh I just read the part where you say that you are working in the .NET environment. ThisDocument is a VBA thing I guess. Don't know if it is possible to use in the .NET environment. Will take some time to find that out. Sorry about that.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
maybe this will help. But this will be a great deal easier if you learn to use VB.NET -- you can mix and match VC++.net and VB.net functions.
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
I think you should research Microsoft Office Automation . This is not something that you can do in one evening, requires quite a bit of reading and studying. I don't think you will find easy answers to your questions. You may also want to search www.amazon.com for related books on M$ Office Automation.
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Is there any particular reason why you want to do it with ms word?
You can pull off a cheap and dirty way to change the font and style by piping your output to a .html file .... by using
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
>>It seems like a big problem
Yes, it is a lot more complex than what one might expect, and you probably won't find anybody willing to do all that for free. There is no easy solution to what you want. You are going to have to bite the bullet and do your own research.
you will also find some information at www.codeproject.com . When you get there, enter "Office Automation" in their search engine and it will give you links to a few articles and examples. like this one.
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Does anybody knows what comes instead of MESSAGE_MAPs within an addIn (beause it seems like message maps are not acceptables with addIns) ??
or may be no one is interested in this thread any more ...
I feel like im the only one how is interested in this thread :(
No replies doesn't mean nobody is interested -- it means nobody knows the answer to your question. When you start out by saying"Does anybody knows ..." more than likely the slience means No and I don't have time to do your research for you.
BEGIN_MESSAGE_MAP is an MFC thingy -- why would you expect to be able to use it in non-MFC projects???
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343