bbeaucage
New Member
- Joined
- Apr 29, 2020
- Messages
- 2
- Office Version
- 365
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
I created a COM enabled class in VB.Net.
...
<ComVisible(True)>
<ClassInterface(ClassInterfaceType.None)>
<ProgId("Integration.PostInvoice")>
Public Class PostInvoice
Public Property InvoiceNumber As String
Public Property FileName As String
Public Property TransType As String
Public Property CustomerName As String
Public Property JournalDate As Date
Public Property ErrorMessage As String
Public Property DetailLines As New List(Of InvoiceDetail)
....
In Excel, I can create a new instance of the PostInvoice class, and I can see all of the properties, except for DetailLines.
The DetailLines property doesn't show, so I cannot .Add an item to that collection. In VB.Net, the DetailLines property is accessible.
Any suggestions would be greatly appreciated.
...
<ComVisible(True)>
<ClassInterface(ClassInterfaceType.None)>
<ProgId("Integration.PostInvoice")>
Public Class PostInvoice
Public Property InvoiceNumber As String
Public Property FileName As String
Public Property TransType As String
Public Property CustomerName As String
Public Property JournalDate As Date
Public Property ErrorMessage As String
Public Property DetailLines As New List(Of InvoiceDetail)
....
In Excel, I can create a new instance of the PostInvoice class, and I can see all of the properties, except for DetailLines.
The DetailLines property doesn't show, so I cannot .Add an item to that collection. In VB.Net, the DetailLines property is accessible.
Any suggestions would be greatly appreciated.