| CPROJiAddDocument Method |
Adds (and opens) a document file in the current project.
Available since Oasis montaj version: 5.0.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.GXNetAssembly: 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.
Syntax public static int iAddDocument(
string str1,
string str2,
int i3
)
Public Shared Function iAddDocument (
str1 As String,
str2 As String,
i3 As Integer
) As Integer
public:
static int iAddDocument(
String^ str1,
String^ str2,
int i3
)
static member iAddDocument :
str1 : string *
str2 : string *
i3 : int -> int
Parameters
- str1
- Type: SystemString
Document name - str2
- Type: SystemString
Type of document to add - i3
- Type: SystemInt32
See PROJ_DISPLAYConstant
Return Value
Type:
Int32
0 - Ok
1 - Error
See Also