PC Review


Reply
Thread Tools Rate Thread

Adding new propertypages

 
 
JJ
Guest
Posts: n/a
 
      8th Mar 2010
Hello NG

Using Visual Studio Team System 2008 Development Edition i am creating a
VSTO Addin for Outlook 2007
The initial code looks like this:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Xml.Linq;

using Outlook = Microsoft.Office.Interop.Outlook;

using Office = Microsoft.Office.Core;

namespace OLMailJournalize2007

{

public partial class Journalize

{

Outlook.NameSpace nameSpace;

private void ThisAddIn_Startup(object sender, System.EventArgs e)

{


}

private void ThisAddIn_Shutdown(object sender, System.EventArgs e)

{

}

#region VSTO generated code

/// <summary>

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InternalStartup()

{

this.Startup += new System.EventHandler(ThisAddIn_Startup);

this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);

}


#endregion

}

}

Where do i add my property page. I have created a similary addin for Outlook
2003 where i could use the this.OptionPageAdd += bla... and then add the
property page in that method. but this way has change for OL 2007.

Can any one please guide me in the right direction.

Kind regards

Johnny E. Jensen



 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      8th Mar 2010
I'm not sure about the latest versions of VSTO, but I've always used an
override for RequestCOMAddInAutomationService when I've done property pages
for Outlook in VSTO

You might want to post your query at the VSTO forum where youi'd get the
most up to date information:
http://social.msdn.microsoft.com/Forums/en-US/vsto/

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"JJ" <(E-Mail Removed)> wrote in message
news:untL$(E-Mail Removed)...
> Hello NG
>
> Using Visual Studio Team System 2008 Development Edition i am creating a
> VSTO Addin for Outlook 2007
> The initial code looks like this:
>
> using System;
>
> using System.Collections.Generic;
>
> using System.Linq;
>
> using System.Text;
>
> using System.Xml.Linq;
>
> using Outlook = Microsoft.Office.Interop.Outlook;
>
> using Office = Microsoft.Office.Core;
>
> namespace OLMailJournalize2007
>
> {
>
> public partial class Journalize
>
> {
>
> Outlook.NameSpace nameSpace;
>
> private void ThisAddIn_Startup(object sender, System.EventArgs e)
>
> {
>
>
> }
>
> private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
>
> {
>
> }
>
> #region VSTO generated code
>
> /// <summary>
>
> /// Required method for Designer support - do not modify
>
> /// the contents of this method with the code editor.
>
> /// </summary>
>
> private void InternalStartup()
>
> {
>
> this.Startup += new System.EventHandler(ThisAddIn_Startup);
>
> this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
>
> }
>
>
> #endregion
>
> }
>
> }
>
> Where do i add my property page. I have created a similary addin for
> Outlook 2003 where i could use the this.OptionPageAdd += bla... and then
> add the property page in that method. but this way has change for OL 2007.
>
> Can any one please guide me in the right direction.
>
> Kind regards
>
> Johnny E. Jensen
>
>
>


 
Reply With Quote
 
J E Jensen
Guest
Posts: n/a
 
      12th Mar 2010
Hej Ken

Thanks for the link - it help
I forgot the [ComVisible(true)] on the class.

Kind regards
Johnny Jensen

"Ken Slovak - [MVP - Outlook]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm not sure about the latest versions of VSTO, but I've always used an
> override for RequestCOMAddInAutomationService when I've done property
> pages for Outlook in VSTO
>
> You might want to post your query at the VSTO forum where youi'd get the
> most up to date information:
> http://social.msdn.microsoft.com/Forums/en-US/vsto/
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "JJ" <(E-Mail Removed)> wrote in message
> news:untL$(E-Mail Removed)...
>> Hello NG
>>
>> Using Visual Studio Team System 2008 Development Edition i am creating a
>> VSTO Addin for Outlook 2007
>> The initial code looks like this:
>>
>> using System;
>>
>> using System.Collections.Generic;
>>
>> using System.Linq;
>>
>> using System.Text;
>>
>> using System.Xml.Linq;
>>
>> using Outlook = Microsoft.Office.Interop.Outlook;
>>
>> using Office = Microsoft.Office.Core;
>>
>> namespace OLMailJournalize2007
>>
>> {
>>
>> public partial class Journalize
>>
>> {
>>
>> Outlook.NameSpace nameSpace;
>>
>> private void ThisAddIn_Startup(object sender, System.EventArgs e)
>>
>> {
>>
>>
>> }
>>
>> private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
>>
>> {
>>
>> }
>>
>> #region VSTO generated code
>>
>> /// <summary>
>>
>> /// Required method for Designer support - do not modify
>>
>> /// the contents of this method with the code editor.
>>
>> /// </summary>
>>
>> private void InternalStartup()
>>
>> {
>>
>> this.Startup += new System.EventHandler(ThisAddIn_Startup);
>>
>> this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
>>
>> }
>>
>>
>> #endregion
>>
>> }
>>
>> }
>>
>> Where do i add my property page. I have created a similary addin for
>> Outlook 2003 where i could use the this.OptionPageAdd += bla... and then
>> add the property page in that method. but this way has change for OL
>> 2007.
>>
>> Can any one please guide me in the right direction.
>>
>> Kind regards
>>
>> Johnny E. Jensen
>>
>>
>>

>



 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help please, Having trouble finding/adding users for purpose of granting permissions or adding them to groups in a win 2k domain on an XP workstation. rmalph@happy.days Microsoft Windows 2000 New Users 1 12th Oct 2004 07:13 PM
Need help please, Having trouble finding/adding users for purpose of granting permissions or adding them to groups in a win 2k domain on an XP workstation. rmalph@happy.days Microsoft Windows 2000 Deployment 0 11th Oct 2004 11:39 PM
Need help please, Having trouble finding/adding users for purpose of granting permissions or adding them to groups in a win 2k domain on an XP workstation. rmalph@happy.days Microsoft Windows 2000 0 11th Oct 2004 11:37 PM
Need help please, Having trouble finding/adding users for purpose of granting permissions or adding them to groups in a win 2k domain on an XP workstation. rmalph@happy.days Microsoft Windows 2000 Deployment 0 11th Oct 2004 11:35 PM
propertypages.add does not change TITLE of propertytab joberoi Microsoft Outlook Program Addins 3 28th May 2004 02:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:04 AM.