Also this looks like the variable is declared wrong as though the actual interface types have been chosen and this is why you can not create instance of type interface IInvoice.
If anything I would expect to see the variable declared as NavisionInvoice.Invoice
Comments
If anything I would expect to see the variable declared as NavisionInvoice.Invoice
The interface is called IInvoice.
Hanen TALBI
Is this similar to the problem you were getting with this post?
viewtopic.php?f=23&t=42270
Your variable should not be declared of type IInvoice...
Can you post a screenshot of the variable definition in NAV so we can see what is exposed by the automation...