Click or drag to resize

IDatabaseImport Method

Perform unattended Import using an import description file created earlier. Returns true if the import succeeded.

The *.dsc file has information regarding the file mapping and what file should be imported (and where is it located).

There are 1 import description and 1 import text file available under \Examples\Import. Copy this to C:\Imp, and the example code will perform a successful import.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool Import(
	string DescFileName
)

Parameters

DescFileName
Type: SystemString
Full path to the description file

Return Value

Type: Boolean
True if the import was successful.
Examples

Import data

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
dim objdb
set objdb = CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
    objdb.login  "<username>", "<password>"
    if  (objdb.import("c:\imp\projmemb.dsc"))=true  then
        msgbox "import successful", vbinformation  + vbokonly, "supercom"
    end  if
else
    msgbox  "unable to connect to database"
end if
set objso = nothing

See Also