PC Review


Reply
Thread Tools Rate Thread

How do I get a COM Addin and VB .NET form to talk to each other?

 
 
emmett
Guest
Posts: n/a
 
      16th Dec 2003
i've created a COM addin for several office applications
(word,excel,ppt) and have put a commandbarbutton into
each. Clicking this button calls a form. This form acts
as a user interface to the current documents document
properties so that the user only need click onto
menuitems in several context menu boxes, selected a
couple of keywords and they are set as properties
(builtin and custom) for that document. The only problem
is that I keep getting an object reference not set. I
just don't know how to pass the document type detected in
the com addin e.g.
if typeof (application) is word.application then
dim docType as word.document
wordApp = CType(application, word.application)
excelApp = nothing
pptApp = nothing
else if ...

to the form! The form uses oCustomProperties =
docType.BuiltInDocumentProperties
etc to get anything usefule done so the addin needs to
pass the docType to the form ByVal. I just don't know how
to do this. Please help!

Eternally indebted,

neuralSea



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Talk Talk broadband free for one year ! Abarbarian General 6 13th Feb 2009 03:14 PM
Opinions requested - Talk Talk Broadband cguil_uk General 5 28th Mar 2008 09:10 AM
2 subforms in one form, how to make them talk? =?Utf-8?B?THVuYSBTYWlzaG8=?= Microsoft Access Form Coding 19 10th Jul 2006 10:51 PM
How can u talk images from a movie and change them to JPG form =?Utf-8?B?ZHZyMTQ0?= Windows XP Video 1 17th Jan 2005 05:49 PM
how can form in class lib write/talk to EXE form? Ron Microsoft VB .NET 1 21st Oct 2004 06:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:11 PM.