Word reports

D

Duxius

Can someone give me a hint on topic how to put data in word document based
on template and later, if user changes something, put that data back to
database?
I' working with office xp, SQL Server and C#.

Can i use xml? Maybe bookmark?

Thanks!
 
C

Cindy M -WordMVP-

Hi Duxius,
Can someone give me a hint on topic how to put data in word document based
on template and later, if user changes something, put that data back to
database?
I' working with office xp, SQL Server and C#.

Can i use xml? Maybe bookmark?
XML would only work with Word 2003. Probably what you'd really like are the
VSTO things currently being worked on for the next release of VS, they'd be
exactly what you need :)

In earlier versions of Word, bookmarks are certainly a possibility and
commonly used. The biggest problem is that they are so easily deleted.

Other possibilities would be form fields (document must be protected as a
form, i.e. mainly data-entry only); ActiveX controls embedded in the
document; table cells; drawing objects.

Another approach would be to have data entry work over some kind of form
interface, put the data into document VARIABLES or PROPERTIES; display in the
document using DocVariable or DocProperty fields. Tell the user these have to
be changed using your interface, then read these back out of the document.
DocProperties can even be handled when the file is closed.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
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 :)
 
D

Duxius

Cindy, thanks for your explanation.
Can you please tell me will the new VSTO work with office xp and office 2000?
Do you know any reference in the MSDN that concerns the previously mentioned
methods for data exchange?
 
C

Cindy M -WordMVP-

Hi Duxius,
Can you please tell me will the new VSTO work with office xp and office 2000?
Unfortunately, I don't know, no. But you might try asking in the
vsnet.vstools.office group. I got the information I gave you from Paul
Cornell's blog
http://weblogs.asp.net/vsto2/archive/2004/04/15/113905.aspx

You could also try asking there.
Do you know any reference in the MSDN that concerns the previously mentioned
methods for data exchange?
Not right off-hand, no. Some of it you'd probably find on word.mvps.org. I
actually wrote an article on this for the now-defunct MOD from Informant,
entitled something like "Beyond Mail Merge". Hmmm... I still have the Word doc
I submitted. If you want to drop me an email, I can send that to you. But be
sure to make it clear where your request is coming from so that I can
differentiate it from all the spam inundating my Inbox. Use my swissonline
account (see below, just put my name as it appears below before swissonline.ch,
with the @ between name and ISP)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
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 :)
 
J

Jonathan West

Duxius said:
Cindy, thanks for your explanation.
Can you please tell me will the new VSTO work with office xp and office
2000?

No, it only works with Word 2003 and Excel 2003.
 

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