![](../icons/Help.png) | CDOCUSetFile Method |
Set the document from a file source.
Available since Oasis montaj version: 5.1.1
License: Available to anyone.
Namespace: Geosoft.Desktop.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
Document types are normally identified by their extension. If you
leave the document type blank, the extension of the document file
will be used as the document type.
To resolve conflicting types, you can define your own unique type
by entering your own type "extension" string.
The following types are pre-defined (as are any normal Geosoft
file types):
"htm" HTML
"html" HTML
"txt" ASCII text file
"doc" Word for Windows document
"pdf" Adobe PDF
"map" Geosoft map file
"mmap" Mapinfo map file (real extension "map")
"grd" Geosoft grid file
"gdb" Geosoft database
URL Document Links
The document name can be a URL link to the document using one of
the supported protocols. The following protocols are supported:
http://www.mywebserver.com/MyFile.doc - HTTP
dap://my.dap.server.com/dcs?DatasetName?MyFile.doc - DAP (DAP Document Access)
ftp://my.ftp.server.com/Dir1/MyFile.doc - FTP protocol
The full file name will be stored but no data will be stored with
the DOCU class and the document can be retrieved using the sGetFile_DOCU
method.
Syntaxpublic void SetFile(
string type,
string name,
string file
)
Public Sub SetFile (
type As String,
name As String,
file As String
)
public:
void SetFile(
String^ type,
String^ name,
String^ file
)
member SetFile :
type : string *
name : string *
file : string -> unit
Parameters
- type
- Type: SystemString
Document type - name
- Type: SystemString
Document name, if "" file name will be used - file
- Type: SystemString
Document file, must exist
See Also