Publisher - Connect Not firing at all in VS2003 Addin?

J

Jamie Ayer

I am creating an add in that spans Outlook, Excel, Word, Visio, PowerPoint
and Publisher. Everything works great except that when I open Publisher,
the Add In is not loaded. The reg settings are automatically added by
VS.NET and I verified that they are correct:
--------------------------------------------------------------------
Microsoft -> Office -> Publisher -> AddIns -> (NAME).Connect

Description "name"
FriendlyName "name"
LoadBehavior 0x00000003(3)
---------------------------------------------------------------------

Even a simple Messagebox in the connect function will not fire. Has anyone
run into this issue or have any ideas?

I am using Publisher 2003, Visual Studio.NET 2003 and C# for the add-in.
 
E

Ed Bennett

Jamie Ayer said:
Even a simple Messagebox in the connect function will not fire. Has
anyone run into this issue or have any ideas?

I have run into this issue. It will occur if:
a) The PIAs for Publisher 2003 are not installed (you did install them,
right?)
or b) Macros are being blocked. Go to Tools > Macros > Security > Trusted
Publishers, and ensure that "Trust all installed templates and add-ins" is
checked.
 
J

Jamie Ayer

Thank you very much. If I install this app with a key and register it with
the CodeBase option, will I still have to force users to take that step with
the plug it, or will it be automatically trusted by office apps?
 
E

Ed Bennett

Jamie Ayer said:
Thank you very much. If I install this app with a key and register
it with the CodeBase option, will I still have to force users to take
that step with the plug it, or will it be automatically trusted by
office apps?

I have never used the CodeBase option, but I'm guessing that you'll get the
same options as you get when you install a commercial add-in - a dialog
asking whether to trust the vendor listed in the key.
If you choose to trust a particular add-in vendor, you don't need to trust
all installed add-ins in order to be able to use the add-ins from that
particular vendor.
 
J

Jamie Ayer

Actually, no. It works. If you strong name the project, all office
products seem to open the plug in regardless.
Publisher will load the plug in regardless of you checking off the trust
item or not. Thanks for giving me the help on this.

The real problem was that I couldn't apply a strong name key because of two
dll's I was including. As soon as I created the proper strongly typed
assemblies for those and recompiled the project everything came out
GOLDEN!!!

Thank for you helping me look in another direction.. I was getting
frustrated.

Jamie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top