![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |