DocumentCollectionCreateDocLicensed Method (String, Boolean, Boolean, RuntimeLicenseCollection) | 
  
    Namespace: 
   Easymap.AddIn
    Assembly:
   EasyMap.AddIn (in EasyMap.AddIn.dll) Version: 12.0.0.0
Syntaxpublic Document CreateDocLicensed(
	string filename,
	bool show,
	bool createAlways,
	RuntimeLicenseCollection licenses
)
Public Function CreateDocLicensed ( 
	filename As String,
	show As Boolean,
	createAlways As Boolean,
	licenses As RuntimeLicenseCollection
) As Document
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