Mail merge using Winword
Posted: Mon Jan 14, 2013 11:16 am
One of my users has asked if I can set up some standard letters in Winword, and have a button on my nu record form to fire off an automatic mailmerge using that nu record's fields as merge source.
I started thinking about Javascript, as I can kick word off with some local code, but then don't think I can force a mailmerge to happen that way. (thinks - if I could start word with some parameters maybe I might be able to ?)
Or, I could use php to write a temporary mailmerge source file to the server and arrange for the local users machine to see that folder so they can get it that way.
Or I could write a temp mysql record and let that be a merge source via a word macro.
These all involve a bit of work and was wondering if any one else had done anything similar before I dive in too deep?
Thanks
Martin
I started thinking about Javascript, as I can kick word off with some local code, but then don't think I can force a mailmerge to happen that way. (thinks - if I could start word with some parameters maybe I might be able to ?)
Or, I could use php to write a temporary mailmerge source file to the server and arrange for the local users machine to see that folder so they can get it that way.
Or I could write a temp mysql record and let that be a merge source via a word macro.
These all involve a bit of work and was wondering if any one else had done anything similar before I dive in too deep?
Thanks
Martin