Click or drag to resize
CPROJiAddDocumentWithoutOpening Method
Adds (and opens) a document file in the current project.

Available since Oasis montaj version: 8.5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
The passed file name must be a valid file name complete with an extension and qualifiers (if applicable). The type string can be one of the following: Database Save and close only databases. Map Save and close only maps. Grid Save and close only grids. Voxel Voxel file.
Syntax
public static int iAddDocumentWithoutOpening(
	string str1,
	string str2
)

Parameters

str1
Type: SystemString
Document name
str2
Type: SystemString
Type of document to add

Return Value

Type: Int32
0 - Ok 1 - Error
See Also