S
scorpion53061
Hello to all and hope everyone on holiday is enjoying themselves!!
I am studying this namespace and method. In the docs it says:
"Creates an instance of the COM object whose name is specified, using the
named assembly file and the constructor that best matches the specified
parameters."
The syntax is:
Public Overloads Shared Function CreateComInstanceFrom( _
ByVal assemblyName As String, _
ByVal typeName As String _
) As ObjectHandle
End Function
Is my understanding correct to say we could create an instance of say EXCEL
without add a reference in the project? Probably not but here is what I
tried to do. And yes I know it is easier to add a reference than to do it
this way. I am just the curious type.
CreateComInstanceFrom("EXCEL.EXE", "Microsoft.Office.Core")
No instance of EXCEL appeared in my Task List though. Any thoughts on this
method?
I am studying this namespace and method. In the docs it says:
"Creates an instance of the COM object whose name is specified, using the
named assembly file and the constructor that best matches the specified
parameters."
The syntax is:
Public Overloads Shared Function CreateComInstanceFrom( _
ByVal assemblyName As String, _
ByVal typeName As String _
) As ObjectHandle
End Function
Is my understanding correct to say we could create an instance of say EXCEL
without add a reference in the project? Probably not but here is what I
tried to do. And yes I know it is easier to add a reference than to do it
this way. I am just the curious type.
CreateComInstanceFrom("EXCEL.EXE", "Microsoft.Office.Core")
No instance of EXCEL appeared in my Task List though. Any thoughts on this
method?