PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Re: Run a program within outlook

Reply

Re: Run a program within outlook

 
Thread Tools Rate Thread
Old 09-07-2003, 05:08 PM   #1
jadams
Guest
 
Posts: n/a
Default Re: Run a program within outlook


I've managed to load the Addin template from the office 2000 CD and it
seems to work OK (i.e. I have a new toolbar button that brings up a
window) but before I get any further, I just wanted to confirm what I
meant in my original post and whether it is possible.

Rather than having a window that pops up with my program, I would like
to actually embed it into the explorer window. So just as when you
click on inbox in the folder view you get a list of e-mails in the
right hand side, when you click on timesheet in the folder view, I
want my program to appear within Outlook on the right hand side of the
window. Is this possible? Does the ItemsCB do this? If so, which
function should I look in? Otherwise, are there any other examples
about that would show me this?

Thanks,

Jonathan

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message news:<ubv373#ODHA.2768@tk2msftngp13.phx.gbl>...
> Please post some of the preceding thread when you post, otherwise it's
> impossible to follow a thread. Thanks.
>
> If you use the template ItemsCB I pointed you to then adding your code
> to that shouldn't be very hard. In your case if you want something to
> happen when you click on a folder you would be trapping the
> NewExplorer event and doing whatever you want to do when the
> ActiveExplorer is your folder.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Lead Author, Beginning VB 6 Application Development, Wrox Press
> Attachment Options
> http://www.slovaktech.com/attachmentoptions.htm
> Extended Reminders
> http://www.slovaktech.com/extendedreminders.htm
>
>
> "jadams" <junkaddress10@hotmail.com> wrote in message
> news:213b8522.0306250907.5c3b95f4@posting.google.com...
> > Thanks for the response.
> >
> > Do you think it would take much work to take the current application
> > and turn it into a COM addin?
> >
> > The objective is to have an extra folder in Outlook saying something
> > like 'Timesheet' and when you click it, it loads our program within
> > Outlook.
> >
> > Not particularly useful I know (just as easy to open it from the

> start
> > menu) but it would look quite impressive.
> >
> > Jonathan

  Reply With Quote
Old 09-07-2003, 07:28 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Run a program within outlook

If you want to replace one of the panes in Outlook you can't do it. By
folder view do you mean the Folder List? The only thing that can go in
the Folder List is a folder, and they are listed alphabetically. You
could make a folder and use a folder home page to display an HTML
page.

I'm still not clear on what you want to do. If when your folder is
selected as the ActiveExplorer you want to start some EXE you can do
that. Just use the BeforeFolderSwitch event and see if it's your
folder that is being switched to. You can then run your app using a
Shell command or Windows scripting.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


"jadams" <junkaddress10@hotmail.com> wrote in message
news:213b8522.0307090908.6a8c5f3a@posting.google.com...
> I've managed to load the Addin template from the office 2000 CD and

it
> seems to work OK (i.e. I have a new toolbar button that brings up a
> window) but before I get any further, I just wanted to confirm what

I
> meant in my original post and whether it is possible.
>
> Rather than having a window that pops up with my program, I would

like
> to actually embed it into the explorer window. So just as when you
> click on inbox in the folder view you get a list of e-mails in the
> right hand side, when you click on timesheet in the folder view, I
> want my program to appear within Outlook on the right hand side of

the
> window. Is this possible? Does the ItemsCB do this? If so, which
> function should I look in? Otherwise, are there any other examples
> about that would show me this?
>
> Thanks,
>
> Jonathan



  Reply With Quote
Old 10-07-2003, 08:25 AM   #3
jadams
Guest
 
Posts: n/a
Default Re: Run a program within outlook

I mean when Timesheet is selected in the folder list (it would appear,
say, below the tasks folder item), my program appears embedded in the
right hand pane (i.e. where you get the lists of e-mails, contacts,
tasks etc), not as a seperate window.

If you can't directly run a program in a pane, would another way of
doing it be to turn the program into an activex document dll (I've
seen a wizard for doing this) and making it the home page for an
Outlook folder?

Thanks for your help,

Jonathan

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message news:<ePbfzElRDHA.632@TK2MSFTNGP12.phx.gbl>...
> If you want to replace one of the panes in Outlook you can't do it. By
> folder view do you mean the Folder List? The only thing that can go in
> the Folder List is a folder, and they are listed alphabetically. You
> could make a folder and use a folder home page to display an HTML
> page.
>
> I'm still not clear on what you want to do. If when your folder is
> selected as the ActiveExplorer you want to start some EXE you can do
> that. Just use the BeforeFolderSwitch event and see if it's your
> folder that is being switched to. You can then run your app using a
> Shell command or Windows scripting.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Lead Author, Beginning VB 6 Application Development, Wrox Press
> Attachment Options
> http://www.slovaktech.com/attachmentoptions.htm
> Extended Reminders
> http://www.slovaktech.com/extendedreminders.htm
>
>

  Reply With Quote
Old 10-07-2003, 01:04 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Run a program within outlook

A home page for an Outlook folder has to be a Web page or the
equivalent. An ActiveX control would not do it.

You also could just start your program and display a form, say a VB
form. It wouldn't be in the Outlook pane but it would show a UI when
your program was run.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm

"jadams" <junkaddress10@hotmail.com> wrote in message
news:213b8522.0307100025.56463a0e@posting.google.com...
> I mean when Timesheet is selected in the folder list (it would

appear,
> say, below the tasks folder item), my program appears embedded in

the
> right hand pane (i.e. where you get the lists of e-mails, contacts,
> tasks etc), not as a seperate window.
>
> If you can't directly run a program in a pane, would another way of
> doing it be to turn the program into an activex document dll (I've
> seen a wizard for doing this) and making it the home page for an
> Outlook folder?
>
> Thanks for your help,
>
> Jonathan



  Reply With Quote
Old 17-07-2003, 11:40 AM   #5
jadams
Guest
 
Posts: n/a
Default Re: Run a program within outlook

OK, it looks like this is not going to work then.

Still, I have learned something about Outlook addins by now.

Thanks very much for all of your help.

Jonathan Adams

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message news:<Ok3QDQuRDHA.1720@TK2MSFTNGP10.phx.gbl>...
> A home page for an Outlook folder has to be a Web page or the
> equivalent. An ActiveX control would not do it.
>
> You also could just start your program and display a form, say a VB
> form. It wouldn't be in the Outlook pane but it would show a UI when
> your program was run.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Lead Author, Professional Outlook 2000 Programming, Wrox Press
> Lead Author, Beginning VB 6 Application Development, Wrox Press
> Attachment Options
> http://www.slovaktech.com/attachmentoptions.htm
> Extended Reminders
> http://www.slovaktech.com/extendedreminders.htm
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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