Programming of the ActiveX component is very simple.
The example here refers to Visual Basic but as there are only a few lines of code, it should be easy to adopt to another programming language.
Visual Basic Test Project
If you are using Visual Basic open the project called Daisy Print HTML Test, which is stored in the SourceFiles sub-directory of where the Daisy Web Tools were installed. Typically this will be :-
C:\Program Files\Daisy Analysis\SourceFiles
This is a very simple program that just prints the same file, DaisyPrintHTML.html.
Look at the code below which prints the file in the form, frmDaisyPrintHTML :-
Private Sub cmdPrint_Click() Dim wrkError As String Dim wrkPath As String On Error Resume Next wrkPath = Daisy2006WebPrint1.BuildPath(App.Path, "DaisyPrintHTML.html") Daisy2006WebPrint1.ProgramName = "Daisy" Daisy2006WebPrint1.NoHeaders = True Daisy2006WebPrint1.NoLinks = True If (Daisy2006WebPrint1.PrintPageFormatted(wrkPath, wrkError) = False) Then Daisy2006WebPrint1.MessageError wrkError End If End Sub
Unlocking the Control
The code shown here can be used freely, but it will produce a rather annoying message every time it is used.
If you register the control, then you will be supplied with an appropriate method of unlocking the control.
Events, Methods and Properties
A lot of these have been added, so that Daisy Analysis can write special purpose print programs without using any other controls.