Galoleins

I'm working in a Windows Project (using Visual Studio .Net 2003), the goal that I have to reach is to put data, (that is taked from database) and put them in a Word document.

The problem that I have is that I'm NOT working with Visual Studio Tools For Office, instead of that, I'm writing code.

A good example of what I'm trying to do is the following link: http://www.codeproject.com/csharp/Simple_Ms_Word_Automation.asp

I'm working with templates, and in the template, I have putted bookmarks in this way: Within Microsoft Word - Insert - Bookmark. Then I write a name for the bookmark and finally clik on Insert.

After that, the goal that I want to have is to put the data in those bookmarks....

Please can anyone tell me how can I solve this problem

Thank you ver much for any answer...

Galo




Re: Visual Studio Tools for Office How can I put data in Word Documents???

Douglas H. Troy

Well, as you may have guessed, this is a VSTO forum, so if you're not using VSTO, as you stated, this isn't the best place to be asking your question ...

Your question is more geared towards mail merge type of functionality and you can ask that over in the mail merge news group; I would search those forums for an answer to your question, however, before posting, because what you're asking isn't uncommon and I'm sure there's already an answer out there, if you just look.

word.mailmerge.fields newsgroup.


Good luck!





Re: Visual Studio Tools for Office How can I put data in Word Documents???

Galoleins

Thank you Douglas for your answer. Well I'm looking around internet for some information about that. I'm going to post my question in the place that you're telling me.




Re: Visual Studio Tools for Office How can I put data in Word Documents???

Cindy Meister

Hi Galo

Another (perhaps better) place to first search, then ask, would be the office.developer.automation newsgroup. You're more likely to find people there who "do" .NET than in the end-user/VBA targeted mail merge newsgroup. And a (Google) search of all the office.developer newsgroups should turn up some discussions and samples for populating bookmarks. If you have to ask, don't forget to mention which programming language you're using so that any code samples are "on target" for you :-)

Note: you'll find a list of newsgroups (for non-VSTO Office stuff) in the Please Read First message at the top of this forum.






Re: Visual Studio Tools for Office How can I put data in Word Documents???

Galoleins

Hi Cindy!

I did already your suggestions, I mean, I posted my question in the office.developer.automation newsgroup and I'm looking it in the Internet. I forgot to say that the language tha I'm using in this project is c#.

Hope you can give an idea how to solve this problem...

Thanks!

Galo






Re: Visual Studio Tools for Office How can I put data in Word Documents???

Cindy Meister

Hi Galo

I'm headed over to the newsgroups right now... :-)

-- Cindy