Extract selective info from Word doc using VB
Posted on 2004-09-09
I have this problem on hand that I'm not sure what should I do with it.
I have a user who use MS Word to mail merge in large quantities, contents are some medical information about each individual clients.
While mail merging them, then print out in hardcopy is fine, now the clients wants a PDF version of their medical information and to make distribution easy, the user decides to save each file using the id and name of the client.
But saving page by page is just too much for them, and they look to automation to help them.
After studying the possibilities, i thought maybe I will do this:
1. User mail merge into a document, run a program that will take this document(let's say sample.doc) as the input.
2. User specify how pages does the template has.
3. I will run the document into one of those virtual printer that can convert the print into PDF files. If the user specify the template has 2 pages, then I will pass in to print page 1, 2 as doc1, print page 3,4 as doc2 until the end of sample.doc
The plan sounded ok for me, but I have a problem here: how to extract the name and id of the client from each print?
Can someone help me? Or maybe the plan above will never work and I should look for some other ways?