DocumentCollectionCreateDocLicensed(String, Boolean, Boolean, RuntimeLicenseCollection) Method |
Namespace: Easymap.AddInAssembly: EasyMap.AddIn (in EasyMap.AddIn.dll) Version: 12.3.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 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
Example
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