Access Methods and Properties from Outlook Forms

Add-in Express™ Support Service
That's what is more important than anything else

Access Methods and Properties from Outlook Forms
 
Jack Bretcher




Posts: 189
Joined: 2006-06-30
I am attempting to access my public propreties and methods from Outlook forms and having no success. I have done the following.

Converted my project to use the loader from the shim (ADX version 3.3.1867.2005).
Create a reference to the addin as "Set PPcore = Application.COMAddIns.Item("PPCore.AddinModule")"

Attempt to access the properties directly with:
ppcore.CalledFrom = "Value", where CalledFrom is a public writeonly property in ppcore.
and tried to access it via the setproperty call
ppcore.setproperty "CalledFrom","Value"

Both fail with a Object does not support this property or method.
Posted 21 Jul, 2007 12:06:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jack.

When you use adxloader, you get an instance of the proxy object in the Object property of the COMAddin interface. So, please use proxy methods to communicate with the addinmodule from the Visual Basic module.
You can download an example here:
http://www.add-in-express.com/projects/vbaexample-cs.dll


P.S. We always do our best to answer your forum requests as soon as possible. However, we apply the rule "first in first out" with Premium Support Service subscribers taking priority. Please understand it may take us some time to do research on the issue. Please be assured we will let you know as soon as the best possible solution is found.
Posted 23 Jul, 2007 09:47:33 Top
Jack Bretcher




Posts: 189
Joined: 2006-06-30
Sergey,

The link (http://www.add-in-express.com/projects/vbaexample-cs.dll) takes me to the site map ( I assume your 404 page). Could you re-post the url?

Thanks,

Jack
Posted 23 Jul, 2007 09:55:15 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Posted 23 Jul, 2007 10:13:19 Top
Jack Bretcher




Posts: 189
Joined: 2006-06-30
Got it thanks!
Posted 23 Jul, 2007 13:26:46 Top