 | CDOCUSetFile Method |
Set the document from a file source.
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic void SetFile(
string type,
string name,
string file
)
public void SetFile(
string type,
string name,
string file
)
Public Sub SetFile (
type As String,
name As String,
file As String
)
Public Sub SetFile (
type As String,
name As String,
file As String
)
public:
void SetFile(
String^ type,
String^ name,
String^ file
)
public:
void SetFile(
String^ type,
String^ name,
String^ file
)
member SetFile :
type : string *
name : string *
file : string -> unit
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
Remarks
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.
See Also