Context: |
Class Method (Function) |
Library/Class: |
FileExport Class |
Function FileExport.SaveWordDoc() As String
SaveWordDoc (stats As StaticVars, protect As Integer, tmpnam As Integer, forceRND As Integer)
This method saves the content of the in memory Word document to file. The filename used is either the one set in stats.filename (which in turn is eventually initialised with a filename defined in the Integra profile). If no filename has been defined (yet) or the parameter tmpnam is True, a random filename located in Integra's temporary directory (located in the root of the Notes data directory) is generated.
Parameters:
Handle to Integra's runtime object stats
True to enable Word document protection on the saved file)
True to indicate that the file has to be saved in a temporary file
forceRND (Integer)
True to force a random filename. By default Integra will generate a default filename overwriting any existing file with that same name. This parameter can be used to force a randomised filename that is not in use in Integra's temporary directory or any other predefined directory (location).
Return Value:
Filename under which the Word document was saved.
|