Insert
Created by Bruce Fallen in 5/16/2009 4:20:07 PM

Inserts a sub document into a field location of a parent document

Syntax


Insert(fldlocation as String, filepath as String)

Insert(fldlocation as String, fileid as String)


Parameters

fldlocation
    
Location of the field where the sub document will be inserted
filepath
    
Path of the sub document to insert
fieldid
    
ID of the server document to insert

Return Value

NA

Remarks
Documents can be in .doc, docx, .dot, .dotx format

Example


In the following example an insert that inserts instructions for a single lawyer if one attorney is selected and instructions for multiple lawyers if more than one attorney is selected. This example also prmpts the user to select the number of attorneys from a choices control contained on the form if not selected.

Public Sub Form_OnAssemble ()

     if fld.No_of_Attorneys.Answered = false then

         MessageBox.Show("Please select number of attorneys")

     elseif fld.No_of_Attorneys.value >1 then

         Insert("INSERT_Attorney_Details", "C:\Program Files\Zumesoft\WordFusion\Samples\Inserts\Gen POA - Multi Att.doc")

     else

         Insert("INSERT_Attorney_Details", "C:\Program Files\Zumesoft\WordFusion\Samples\Inserts\Gen POA - 1 Att.doc")    

end if

End Sub

   

  

powered by metaPost



Print
Related Articles
InsertWithHeader

  Comments

Copyright 2009 by Zumesoft Pty Ltd
Privacy Statement | Terms Of Use