By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Mail merge to Word from ASP

P: n/a
Does anyone know whether it is possible to effect a mail merge to MSWord
using VBScript in an asp file? I know it is possible to produce a doc
file and force a download using

Response.ContentType = "application/msword"
Response.AddHeader content-disposition","attachment;filename=myfile.doc"

but can I interate through a bunch of records and produce, say, a
separate invoice for each one by merging? I know how to iterate through
the records and write them out, btw.

TIA

Morris
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
<<
Does anyone know whether it is possible to effect a mail merge to MSWord
using VBScript in an asp file? I know it is possible to produce a doc
file and force a download using

Response.ContentType = "application/msword"
Response.AddHeader content-disposition","attachment;filename=myfile.doc"

but can I interate through a bunch of records and produce, say, a
separate invoice for each one by merging? I know how to iterate through
the records and write them out, btw.


I don't even think a Word mail merge of invoices would even be at all
simple even with just straight Access because each invoice record also
contains multiple invoice detail line records.

My sample invoice database on the Web just shows all the invoices asked
for but doesn't try to make a Word mail merge out of it.

You already know aobut Response.ContentType = "application/msword"

And also of course a user could do File | Save As from the browser to
save the invoices to disk (as an html file) and then open the html file
in Word although I'm not really sure how seemless that would be with all
the files involved such as images files...

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.