Click or drag to resize

DocumentCollectionCreateDocLicensed Method (String, Boolean, Boolean, RuntimeLicenseCollection)

Loads a Document from the specified filename with specified runtime licenses.

Namespace:  Easymap.AddIn
Assembly:  Easymap.AddIn (in Easymap.AddIn.dll) Version: 11.2.0.0
Syntax
public Document CreateDocLicensed(
	string filename,
	bool show,
	bool createAlways,
	RuntimeLicenseCollection licenses
)

Parameters

filename
Type: SystemString
show
Type: SystemBoolean
True to show the main window of the document
createAlways
Type: SystemBoolean
If True the document will be always created
licenses
Type: Easymap.AddInRuntimeLicenseCollection
Collection of runtime licenses

Return Value

Type: Document
Remarks
Examples
Loads a workbook which contains specially licensed maps.
'Create the Application Object
set app = CreateObject("EasyMap.Application.3")

'Add runtime licenses
set lics = app.Documents.CreateRuntimeLicenseCollection
lics.Add "EasyMap 10.0 Standard Edition", "xxxxx", "xxxxx"
lics.Add "Map", "xxxxx", "xxxxx"

'Load the workbook
app.Documents.CreateDocLicensed "filename...", true, true, lics
See Also