A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Deploying custom code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 17th 07, 02:21 AM posted to microsoft.public.outlook.program_vba
Markus
external usenet poster
 
Posts: 28
Default Deploying custom code

I am putting together some code to write out the entryids for selected email
to a file (thanks to Michael Bauer for the help) where my app can read the
ids. I want this code to run from a custom button in OUtlook.

My question concerns deploying this capabilty. That is, I need to deliver
this to multiple clients who are running my app now. This means I can have
at least 2 problems -- I need a way to have my client easily install the
custom button and associate it to the code for their site. Is there a way to
do this short of forcing them to do it manually thru outlook menus? And
secondly, will I run into security issues in OL that will prevent them from
running the code?

I am new to OL programming. Truly appreciate any help on this,
Mark
Ads
  #2  
Old August 17th 07, 05:16 AM posted to microsoft.public.outlook.program_vba
Markus
external usenet poster
 
Posts: 28
Default Deploying custom code

Eric,

Thanks. Yes, COM add in is probably what I need to do.

Am new to creating COM add ins. If I were to do so, I would want the COM
add in to load a table (Access or Dbase), allow the user to select a record
in the table, then write out the value of the id field in that table along
with the entryID of the currently selected emails to a text file.

My question is whether, if I did so, I can deploy this DLL with Windows
Installer to my clients or would Outlook security features prevent such a
program from loading the table and displaying the records when run from
inside OL. Just not sure what is and is not blocked when running a DLL from
inside OL.

Thanks in advance for any advice you can give,
Mark



"Eric Legault [MVP - Outlook]" wrote:

Macros are not easy to distribute. The professional approach is to develop
your solution as a COM Add-In and deploy it as Windows Installer packages.

See the VBAProject.otm section he

Writing VBA code for Microsoft Outlook:
http://www.outlookcode.com/article.aspx?id=40

But if this is only two users, you might as well just copy over the macros
and manually create a button linking it to the code - it'll take far less
time than writing a COM Add-In (especially if you've never built one before).
But keep it in mind for future projects!

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Markus" wrote:

I am putting together some code to write out the entryids for selected email
to a file (thanks to Michael Bauer for the help) where my app can read the
ids. I want this code to run from a custom button in OUtlook.

My question concerns deploying this capabilty. That is, I need to deliver
this to multiple clients who are running my app now. This means I can have
at least 2 problems -- I need a way to have my client easily install the
custom button and associate it to the code for their site. Is there a way to
do this short of forcing them to do it manually thru outlook menus? And
secondly, will I run into security issues in OL that will prevent them from
running the code?

I am new to OL programming. Truly appreciate any help on this,
Mark

  #3  
Old August 17th 07, 04:10 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Deploying custom code

If you are using Outlook 2003, COM Add-Ins are trusted and won't generate any
security dialogs if you derive all Outlook.Application objects from those
provided by any of the IDTExtensibility2 events.

Note that the security prompts are specific to accessing certain features in
Outlook. You'll never generate one if you automate other Object Models like
Access, or other data access .dlls like ADO or DAO.

There's some great resources he

Developing COM Add-ins for Microsoft Outlook:
http://outlookcode.com/article.aspx?id=36

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Markus" wrote:

Eric,

Thanks. Yes, COM add in is probably what I need to do.

Am new to creating COM add ins. If I were to do so, I would want the COM
add in to load a table (Access or Dbase), allow the user to select a record
in the table, then write out the value of the id field in that table along
with the entryID of the currently selected emails to a text file.

My question is whether, if I did so, I can deploy this DLL with Windows
Installer to my clients or would Outlook security features prevent such a
program from loading the table and displaying the records when run from
inside OL. Just not sure what is and is not blocked when running a DLL from
inside OL.

Thanks in advance for any advice you can give,
Mark



"Eric Legault [MVP - Outlook]" wrote:

Macros are not easy to distribute. The professional approach is to develop
your solution as a COM Add-In and deploy it as Windows Installer packages.

See the VBAProject.otm section he

Writing VBA code for Microsoft Outlook:
http://www.outlookcode.com/article.aspx?id=40

But if this is only two users, you might as well just copy over the macros
and manually create a button linking it to the code - it'll take far less
time than writing a COM Add-In (especially if you've never built one before).
But keep it in mind for future projects!

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Markus" wrote:

I am putting together some code to write out the entryids for selected email
to a file (thanks to Michael Bauer for the help) where my app can read the
ids. I want this code to run from a custom button in OUtlook.

My question concerns deploying this capabilty. That is, I need to deliver
this to multiple clients who are running my app now. This means I can have
at least 2 problems -- I need a way to have my client easily install the
custom button and associate it to the code for their site. Is there a way to
do this short of forcing them to do it manually thru outlook menus? And
secondly, will I run into security issues in OL that will prevent them from
running the code?

I am new to OL programming. Truly appreciate any help on this,
Mark

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploying custom code Eric Legault [MVP - Outlook] Outlook and VBA 0 August 17th 07 01:55 AM
Custom Form Code Joel Allen Outlook and VBA 5 August 15th 07 03:20 AM
How to run the custom Appointment form code ? DP Outlook - Using Forms 3 March 20th 07 02:48 PM
Evault custom form & preview pane code [email protected] Outlook and VBA 3 August 31st 06 06:51 PM
Custom Contact Card with some code Tom Foti Outlook - Using Contacts 3 May 24th 06 05:12 PM


All times are GMT +1. The time now is 03:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.