Is there a way to publish a form witout using outlook object model?

J

Julia

Hello.
Is it possible to publish form without using outlook object model?
If not,what should i do when user have more than one profile?

10x.
 
S

Sue Mosher [MVP]

Forms are hidden items, which can be accessed with CDO, but you'd have to
figure out how to to set all the necessary properties, many of which are
binary and undocumented. Not worth the effort IMO.

If the user has multiple profiles, use a COM addin to ensure that each
profile has the form available, publishing it to Personal Forms as needed.
 
J

Julia

I am not sure i understand you.
i am using COM ADD IN,and i have a custom form.
When should i publish the form?
In my installtion package?

10x
 
K

Ken Slovak - [MVP - Outlook]

If you have CDO installed it's actually not that hard to publish a
form. If Outlook is running in the desired profile you can just use a
piggy-back login to CDO to access that profile. To handle multiple
profiles you'd need separate logins of course.

Sig's FormPropertyViewer sample at
http://www.cdolive.com/formpropertyviewer.htm shows what you need to
access with forms and it shouldn't be too hard to modify that code to
publish a form.

Of course it's much easier and more direct to use Outlook code for
that and start up Outlook using automation.
 
S

Sue Mosher [MVP]

When your COM add-in starts, it should check for the presence of the form in
the location where you usually publish it. (Use CDO or Redemption methods,
as Ken suggests.) If the published form is not present, publish it.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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