Document Generation ProcessBackground

Generating a Word document via a web-based platform is complex.  The diagram to the right identifies visually the six steps required. 

1.  Request the Document

When you choose a document to generate, the browser will request a web page called documentGenerate-Client.asp from the server.  This active server page expects you to identify the document identified of the document you wish to generate, as well as the matter, matter process (if applicable), and matter task (if applicable) that you want the document generated for.  These parameters are determine for you as you navigate through the Workflow system.

Troubleshooting tips:

2.  Receive the Document Location and Merge Data

Rather than containing HTML code to view, this web page will contain instructions on where to retrieve the document template and what data fields to merge with the document.  These instructions are in a programming language called Visual Basic Script (VBScript).  VBScript is not supported by Netscape Navigator (without third-party plug-in software), so this merge technique will not work with Netscape.

Troubleshooting tips:

3.  Create and Save the Merge File

Upon receiving the document location and merge data, Internet Explorer must save the merge data into a file that Word will later use for its mail merge.  This means that IE must have permission to save a file to the client hard disk, and it must have Window's Scripting Host installed to save the file.  Please refer to Help - Document - Trusted Sites for more information.

Troubleshooting tips:

4.  Open Word and Retrieve the Document Template

Once the merge file has been created on the client PC, IE will then open MS Word and send a command to Word to open the document template.  This means that the client PC must have Microsoft Word (97 or later) installed, and the server must be set up as a trusted site.  (Normally, IE will not let any random web site send commands to open other software, like MS Word.  This is why a trusted site connection is required.)

Troubleshooting tips:

5.  Retrieve the Document Template

When IE opens Word, it sends a command to Word to open the document template.  The location that IE specifies comes from Admin - Documents in the PathURL field.  There are three ways to identify the document location:  HTTP, FTP, or UNC. 

  1. HTTP means Word will as a web server for the document. 
    Pros: works over the web. 
    Cons:  does not allow Word save changes back to the web server.
    Example:  http://demo.aspengrove.net/document/example.doc
  2. FTP means Word will ask and FTP server for the document. 
    Pros:  works over the web, allows saving back to the server. 
    Cons:  Word 97 does not remember FTP usernames and passwords, so this information needs to be typed in repeatedly.
    Example:  ftp://demo.aspengrove.net/document/example.doc
  3. UNC means Word will ask the file system for the document.
    Pros:  fastest for intranets, allows saving of the document.
    Cons:  does not work over the web, dependent on physical paths.

Any PathURL can be tested by opening Word, choosing File - Open, and entering the PathURL in the Open dialog box.  If that works, then step 5 will work.  If not, step 5 will fail.

6.  Perform the Mail Merge

Once Word retrieves the document template, IE will issue a command to Word to connect to the newly created merge data source (c:\tempdatasource.doc) and perform the mail merge.  The resulting file will be a new file in Word, ready for editing, printing, emailing, faxing or saving by the Client PC.

Troubleshooting tips: