ActiveX - Drawing a Daisy Chart
One of the typical applications for Daisy working in conjunction with another program is to draw a Daisy Chart of a user selected or generated database.
Consider say a telephone switch or exchange that needs to have Daisy Charts drawn of its performance every day :-
The files should be named something like PC20012702.csv, where the figures are the date as yyyymmdd. More...
The various charts would all be defined by templates.
In this and many applications of Daisy, the procedure is in three stages :-
This can be performed directly by just two calls to Daisy after creating the 'Daisy' object.
Dim wrkError as String
Dim wrkPath as String
Dim wrkTemplate as String
...
wrkPath = ...
if (Daisy.LoadDatabaseCSV(wrkPath, wrkError) = False) Then
Daisy.MessageError wrkError
Exit Sub
End If
wrkTemplate = ...
If (Daisy.LoadTemplate(wrkTemplate, True, wrkError) = False) Then
Daisy.MessageError wrkError
Exit Sub
End If
...
Note :-
See Opening Databases for more details.
Another way is to use the various Menu ... methods.
...
Daisy.DirectoryDatabase = ...
Daisy.MenuOpenCSV
if (Daisy.TestDatabaseOpen = False) Then
Daisy.MessageInfo "No database opened!"
Exit Sub
End If
MenuGetTemplate
...
Note :-
See Opening Databases for more details.