CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Is this possible?



Jun 28, 2000, 7:06 AM

Post #1 of 2 (1474 views)
Is this possible? Can't Post

I'm wondering if this is possible. I have an online html forms legal questionnaire page but wish to have the data fields MERGED into a MS Word template file so you end up with a filled document ready for printing with all the fields inserted in the file. Can a script be set up so it can be merged into an HTML page if I set up the proper fields? Thanks for your help.

David Durose


Jun 28, 2000, 6:50 PM

Post #2 of 2 (1474 views)
Re: Is this possible? [In reply to] Can't Post

It can be done, but it's difficult. You need to be conversant with COM, how COM components are accessed through ASP (Active Server Pages on IIS), and the object model for Word.

The idea would be to have a server page that accepts a form, creates a COM object to modify a Word document (your template), stuffs the form data into the appropriate parts of the word document, and then returns the document (using whatever the correct MIME type is) instead of HTML.

I've seen this done for Excel, and assume that it can also be done with Word. The person who did it was moderately familiar with COM. It tooks them a day to get the basic ASP written, then four days to get the Word part working (and most of that was pouring over documentation).


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives