Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2007

Tip: Looking for answers? Try searching our database.

How to call functions from external programs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GaetanoG - 06 Aug 2007 14:26 GMT
Hi all,

I build a com add-in for word 2003/2007 using c# and it works well. Now I
need
to set variable values and run funcions from an external .net program. How
can I do? I tried to access the add-in via object model but with no results..
Is it possible to intercept the add-in events?  

Thanks

GaetanoG
Jonathan West - 07 Aug 2007 09:51 GMT
> Hi all,
>
[quoted text clipped - 4 lines]
> results..
> Is it possible to intercept the add-in events?

The problem here is that you may be creating different instances of your COM
add-in when calling from Word, and when calling from the external program,
and the different instances don't share data.

Since your problem is between your .NET external program and your add-in
written in C#, I suspect that Word has little to do with the issue, and
experts able to help are more likely to be found in the C# groups.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

GaetanoG - 07 Aug 2007 23:26 GMT
Hi
I solve the problem.. now I can call a function in the add-in and set some
variables.. From word I can call the com object (the add-in) and use the
variables set before from external program and call function which can
operate in the program directly. I will publish the solution in my blog in a
few days..
Thanks for your suggestion

Regards
GaetanoG

> > Hi all,
> >
[quoted text clipped - 12 lines]
> written in C#, I suspect that Word has little to do with the issue, and
> experts able to help are more likely to be found in the C# groups.
hav - 13 Aug 2007 13:39 GMT
Hi - I am interested in how you do this - what is the location of your
blog?
H.
FR - 20 Sep 2007 19:54 GMT
Hi GaetanoG,

I am having the same issue in which i have to set some vaues in the Custom
Task Pane programmatically.  I'll appreciate if you guide me the way you
handle this. Saves a alot of my time. Thanks in Advance!!!!
-Syed

> Hi
> I solve the problem.. now I can call a function in the add-in and set some
[quoted text clipped - 23 lines]
> > written in C#, I suspect that Word has little to do with the issue, and
> > experts able to help are more likely to be found in the C# groups.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.