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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

only one instance of form region is displayed



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 6th 06, 01:11 PM posted to microsoft.public.outlook.program_forms
Nikolas
external usenet poster
 
Posts: 34
Default only one instance of form region is displayed

Hi,

I have created an Outlook 2007 form region with a managed add-in using the
sample in Microsoft's technical articles:

http://msdn2.microsoft.com/en-us/library/ms788695.aspx

Everything works fine. However, when I use VSTO 2005 SE to do exactly the
same thing I come across a problem. First instance of the form appears fine
but the when trying to display another form (of the same add-in) an error msg
comes up:

"The form region "TestRegion" cannot be opened. Outlook will use the default
Outlook form instead. The form region manifest specifies an add-in that is
not installed."

If I restart Outlook again the first instance comes up fine and the 2nd
brings up the error msg.

Any help welcome

Nikolas
  #2  
Old October 6th 06, 03:00 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default only one instance of form region is displayed

Can you put in a breakpoint and step through the code to find the procedure where the error is occurring? I've been add-ins using Ryan's techniques without any problem.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Nikolas" wrote in message ...
Hi,

I have created an Outlook 2007 form region with a managed add-in using the
sample in Microsoft's technical articles:

http://msdn2.microsoft.com/en-us/library/ms788695.aspx

Everything works fine. However, when I use VSTO 2005 SE to do exactly the
same thing I come across a problem. First instance of the form appears fine
but the when trying to display another form (of the same add-in) an error msg
comes up:

"The form region "TestRegion" cannot be opened. Outlook will use the default
Outlook form instead. The form region manifest specifies an add-in that is
not installed."

If I restart Outlook again the first instance comes up fine and the 2nd
brings up the error msg.

Any help welcome

Nikolas

  #3  
Old October 6th 06, 03:29 PM posted to microsoft.public.outlook.program_forms
Nikolas
external usenet poster
 
Posts: 34
Default only one instance of form region is displayed

Thanks for the quick reply.

I have tried to step through but it seems that the "problem" is in Outlook
code. I create a new mail item (olMailItem) with my custom message class and
I just use the mailItem.Display(false) function.
In the first instance everything goes fine, my form region class gets
initialised and all the functions of the FormRegionStartup interface get
called normally.
In the second instance, after the mailItem.Display(false) function my form
region class never gets initialised.

Nikolas

"Sue Mosher [MVP-Outlook]" wrote:

Can you put in a breakpoint and step through the code to find the procedure where the error is occurring? I've been add-ins using Ryan's techniques without any problem.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Nikolas" wrote in message ...
Hi,

I have created an Outlook 2007 form region with a managed add-in using the
sample in Microsoft's technical articles:

http://msdn2.microsoft.com/en-us/library/ms788695.aspx

Everything works fine. However, when I use VSTO 2005 SE to do exactly the
same thing I come across a problem. First instance of the form appears fine
but the when trying to display another form (of the same add-in) an error msg
comes up:

"The form region "TestRegion" cannot be opened. Outlook will use the default
Outlook form instead. The form region manifest specifies an add-in that is
not installed."

If I restart Outlook again the first instance comes up fine and the 2nd
brings up the error msg.

Any help welcome

Nikolas


  #4  
Old October 6th 06, 04:01 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default only one instance of form region is displayed

So you're saying that GetFormRegionStorage is not being called for the second item? Did you follow Ryan's complete instructions, including the state-handling class and a Region.Close event handler? DId you also follow the instructions in the VS 2005 SE documentation (the .doc that came with the download) to add a RequestService procedure? Is that also not getting called?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Nikolas" wrote in message ...
Thanks for the quick reply.

I have tried to step through but it seems that the "problem" is in Outlook
code. I create a new mail item (olMailItem) with my custom message class and
I just use the mailItem.Display(false) function.
In the first instance everything goes fine, my form region class gets
initialised and all the functions of the FormRegionStartup interface get
called normally.
In the second instance, after the mailItem.Display(false) function my form
region class never gets initialised.

Nikolas

"Sue Mosher [MVP-Outlook]" wrote:

Can you put in a breakpoint and step through the code to find the procedure where the error is occurring? I've been add-ins using Ryan's techniques without any problem.

"Nikolas" wrote in message ...
Hi,

I have created an Outlook 2007 form region with a managed add-in using the
sample in Microsoft's technical articles:

http://msdn2.microsoft.com/en-us/library/ms788695.aspx

Everything works fine. However, when I use VSTO 2005 SE to do exactly the
same thing I come across a problem. First instance of the form appears fine
but the when trying to display another form (of the same add-in) an error msg
comes up:

"The form region "TestRegion" cannot be opened. Outlook will use the default
Outlook form instead. The form region manifest specifies an add-in that is
not installed."

If I restart Outlook again the first instance comes up fine and the 2nd
brings up the error msg.

Any help welcome

Nikolas


  #5  
Old October 6th 06, 04:37 PM posted to microsoft.public.outlook.program_forms
Nikolas
external usenet poster
 
Posts: 34
Default only one instance of form region is displayed

Well the trick was in the RequestService procedure. I just wasnt returning
the proper serviceGuid the 2nd time.

Thanks for the help, much appreciated.

"Sue Mosher [MVP-Outlook]" wrote:

So you're saying that GetFormRegionStorage is not being called for the second item? Did you follow Ryan's complete instructions, including the state-handling class and a Region.Close event handler? DId you also follow the instructions in the VS 2005 SE documentation (the .doc that came with the download) to add a RequestService procedure? Is that also not getting called?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Nikolas" wrote in message ...
Thanks for the quick reply.

I have tried to step through but it seems that the "problem" is in Outlook
code. I create a new mail item (olMailItem) with my custom message class and
I just use the mailItem.Display(false) function.
In the first instance everything goes fine, my form region class gets
initialised and all the functions of the FormRegionStartup interface get
called normally.
In the second instance, after the mailItem.Display(false) function my form
region class never gets initialised.

Nikolas

"Sue Mosher [MVP-Outlook]" wrote:

Can you put in a breakpoint and step through the code to find the procedure where the error is occurring? I've been add-ins using Ryan's techniques without any problem.

"Nikolas" wrote in message ...
Hi,

I have created an Outlook 2007 form region with a managed add-in using the
sample in Microsoft's technical articles:

http://msdn2.microsoft.com/en-us/library/ms788695.aspx

Everything works fine. However, when I use VSTO 2005 SE to do exactly the
same thing I come across a problem. First instance of the form appears fine
but the when trying to display another form (of the same add-in) an error msg
comes up:

"The form region "TestRegion" cannot be opened. Outlook will use the default
Outlook form instead. The form region manifest specifies an add-in that is
not installed."

If I restart Outlook again the first instance comes up fine and the 2nd
brings up the error msg.

Any help welcome

Nikolas


 




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
Custom form cannot be displayed. Contact your administrator. Sonya Outlook - Using Forms 1 October 2nd 06 05:39 PM
'The Operation Failed' Displayed When Opening a Custom Form Chris Bingham Outlook - Using Forms 3 July 29th 06 12:28 AM
OL 2007 - Set custom form region as default Fidget Brain Outlook - Using Forms 8 July 6th 06 04:36 PM
Error message - form can't be displayed Allison Wonderland Outlook - Using Contacts 0 April 27th 06 05:26 PM
The Form Required to View this Message Can Not Be Displayed..somet Angyl Outlook - Using Forms 4 March 4th 06 01:23 AM


All times are GMT +1. The time now is 09:02 PM.


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.