FAQ TBarCode OCX
Microsoft Excel - Licenza Durante l’Apertura
Microsoft Excel - Licenza Durante l’Apertura
La licenza avviene durante l’avvio del documento che contiene il controllo ActiveX®.
- Aprite l’editor Microsoft VBA con Alt+F11.
- Nel Project Explorer selezionate This Workbook.
- Inserite ora il seguente codice per l’evento Workbook-Open (esempio per TBarCode OCX V11):
Private Sub Workbook_Open()
Dim tbc As TBarCode11
Set tbc = CreateObject ("TBarCode11.TBarCode11")
tbc.LicenseMe "Mem:Licensee", eLicKindDeveloper, 1, "Key", TBarCode11Lib.eLicProd1D
Set tbc = Nothing
End Sub
Si consiglia di proteggere con password il codice VBA nella finestra delle proprietà del progetto.