Excel APp in VB.net VS2008 -
i creating excel application in vb.net using visualstudio 2008.
while adding reference microsoft.office.interop.excel have both managed ( on .net tab) , unmanaged (on com tab).
currently referencing com tab not showing errors properly.
can use excel interop on .net tab?
which 1 better way reference , difference between two?
yes, use .net
interop library create namespace 'microsoft.office.interop.excel'
then define application object
private app microsoft.office.interop.excel.application
and either a) connect running excel application with
app = ctype(getobject([class]:="excel.application"), microsoft.office.interop.excel.application)
or b) create new excel application with
app = ctype(createobject(progid:="excel.application"), microsoft.office.interop.excel.application)
good luck!
Comments
Post a Comment