#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 600
#End Region
#MergeLibraries: True
#AdditionalJar: jacob.jar
#AdditionalJar: commons-collections4-4.1
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private ocx As activeXComponent
Private Button1 As Button
Private Label1 As Label
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
ocx.Initialize("Excel.Application")
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
Sub Button1_Click
Label1.Text=ocx.getProperty("Version")
End Sub