Click or drag to resize

DocumentCollectionCreateDocLicensed(String, Boolean, Boolean, RuntimeLicenseCollection) Method

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

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

Parameters

filename  String
show  Boolean
True to show the main window of the document
createAlways  Boolean
If True the document will be always created
licenses  RuntimeLicenseCollection
Collection of runtime licenses

Return Value

Document
Remarks
The RuntimeLicenseCollection contains a list of optional runtime licenses. Use CreateRuntimeLicenseCollection to create a new instance.
Example
Loads a workbook which contains specially licensed maps.
C#
'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