ActiveX.saveDoc()


 

Availability

 

Windows

 

Usage

 

ActiveXinstance.saveDoc(fileName:String):Void

 

Parameters

 

fileName:String value which contains a File Path/Name

 

Returns

 

Nothing

 

Description

 

Saves the document contained within an ActiveX/OLE Object.

 

Notes

 

For use after an ActiveX Object has been instantiated. Only applicable to Objects that support this function.

 

For loading a file into the object you have to use the OPEN verb first, and instruct the user to load the desired document, and then "update" in order to get the information into the embedded object. Alternatively you could use the objects own methods (if they exist) for loading and saving files.

 

Example

 

If a "Word.Document" Object was loaded (as myActiveX ), then by specifying the filename "C:\\myFile.doc" a word document would be saved to the hard disk, containing the contents of the document in the object:

 

myActiveX.saveDoc("C:\\myFile.doc")