Save a copy of a specified version of a WorkSite document to a specified path and filename.
Namespace: Mocom_WorkSite_Library
Assembly: Mocom WorkSite Library (in Mocom WorkSite Library.dll) Version: 1.0.8.0 (1.0.8)
Syntax
public string CopyDocument( string path, int documentNumber, int documentVer, WorkSitePathCreationOption option, string copiedDocumentName, WorkSiteDocumentFileExtensionOptions fileExtensionOption )
Parameters
- path
- Type: SystemString
The folder path (without filename) to copy the document to. - documentNumber
- Type: SystemInt32
The document number of the file you want to copy. - documentVer
- Type: SystemInt32
The version number of the file to be copied. - option
- Type: Mocom_WorkSite_LibraryWorkSitePathCreationOption
Specify the PathCreationOption to - copiedDocumentName
- Type: SystemString
The filename to call the copied document. - fileExtensionOption
- Type: Mocom_WorkSite_LibraryWorkSiteDocumentFileExtensionOptions
The option for automatically adding a file extension to the supplied filename.
Return Value
Type: StringThe full path and filename of the copied document.
See Also