First step add Reference COM AVRDataImporter.AVR to your project. It is importante target CPU x86. Public AVRDATA As New AVRDataImporter.AVR Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'Clipboard.SetText(SaveImageConversion(My.Resources.Energy)) If AVRDATA.AVRSQLConnect("localhost\konsys", "sa", "Password") = True Then If AVRDATA.AVRDataImport("fromVBNET", "ImportDevice", "ImportType", "TestQuantity", "TestUnit", 100, False, "2012-12-15 20:00") = True Then MsgBox("OK.") Else MsgBox("Error!") End If AVRDATA.AVRSQLClose() End If End Sub
Important!!! If you run import in VB application after that run RefreshLoggedItems in AVRConnection Center.