IExportEngineCOMEvents Interface |
Namespace: Vovin.CmcLibNet.Export
The IExportEngineCOMEvents type exposes the following members.
| Name | Description | |
|---|---|---|
| ExportCompleted |
Export completed
| |
| ExportProgressChanged |
Represents a batch of rows read from Commence.
|
'Create a class module called 'Class1' 'Declare the assembly using the WithEvents keyword. Private WithEvents cmclibnet as Vovin_CmcLibNet.ExportEngine Sub DoExport ' have a method that performs export Set cmclibnet = New Vovin_CmcLibNet.ExportEngine 'do something 'cmclibnet.ExportView(..) .. 'cmclibnet.ExportCategory(..) .. cmclibnet.Close End Sub 'Subscribe to the event 'The sender argument has to be of type Variant, not Object. 'Also, do not leave ByVal out, and do not use ByRef. Private Sub cmclibnet_ExportProgressChanged(ByVal sender As Variant, ByVal args As ExportProgressChangedArgs) Debug.Print args.CurrentRow End Sub
In a regular module, you would use this as:
Sub Test Dim x As New Class1 Call x.DoExport End Sub