R
Ratnesh Raval
hi all,
i am writing word 2003 com add-in using visual studio 2003 vb.net. i m very
new to word or any add-in. so i m very confused.
1. i created a shared add-in using the article
http://support.microsoft.com/default.aspx?scid=kb;en-us;302901 . first i was
not able to debug it, but excluding office.dll from setup project did the
trick. and now if i include it again i m still able to debug it. its good
but can anyone throw some light.
2 also, in many articles and posts discuss PIAs , i m not sure why its
needed in here. coz creatig default add-in project doesnt need any.
3. the default project uses application as object. so i m not able to use
properties/methos/etc of word. can anyone show how can u change it
Public Sub OnConnection(ByVal application As Object, ByVal connectMode
As Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom
As System.Array) Implements Extensibility.IDTExtensibility2.OnConnection
applicationObject = application
addInInstance = addInInst
' If you aren't in startup, manually call OnStartupComplete.
If (connectMode <> Extensibility.ext_ConnectMode.ext_cm_Startup)
Then _
Call OnStartupComplete(custom)
End Sub
also links to some startup articles and help will be appriciated. more
confusions on shim and some other things later on....
thnx
i am writing word 2003 com add-in using visual studio 2003 vb.net. i m very
new to word or any add-in. so i m very confused.
1. i created a shared add-in using the article
http://support.microsoft.com/default.aspx?scid=kb;en-us;302901 . first i was
not able to debug it, but excluding office.dll from setup project did the
trick. and now if i include it again i m still able to debug it. its good
but can anyone throw some light.
2 also, in many articles and posts discuss PIAs , i m not sure why its
needed in here. coz creatig default add-in project doesnt need any.
3. the default project uses application as object. so i m not able to use
properties/methos/etc of word. can anyone show how can u change it
Public Sub OnConnection(ByVal application As Object, ByVal connectMode
As Extensibility.ext_ConnectMode, ByVal addInInst As Object, ByRef custom
As System.Array) Implements Extensibility.IDTExtensibility2.OnConnection
applicationObject = application
addInInstance = addInInst
' If you aren't in startup, manually call OnStartupComplete.
If (connectMode <> Extensibility.ext_ConnectMode.ext_cm_Startup)
Then _
Call OnStartupComplete(custom)
End Sub
also links to some startup articles and help will be appriciated. more
confusions on shim and some other things later on....
thnx