Include form from reference project in FormManager

Add-in Express™ Support Service
That's what is more important than anything else

Include form from reference project in FormManager
 
Christian Beach




Posts: 7
Joined: 2007-05-15
I have a set of forms of type ADXOlForm that are included in a project completely seperate from the AddinModule for Outlook 2007. What I need to do is programmatically add one of those forms to a FormManager in the AddinModule. I can get this to work with forms that exist within the same project as the AddinModule but not from forms that exist within a reference. Below is what I am trying but it returns an error that the "VRO360Forms.CallReportForm" form has not been created:
-----------------
AddinExpress.OL.ADXOlFormsCollectionItem newForm = new AddinExpress.OL.ADXOlFormsCollectionItem();

newForm.InspectorItemTypes = AddinExpress.OL.ADXOlInspectorItemTypes.olTask;

newForm.InspectorLayout = AddinExpress.OL.ADXOlInspectorLayout.BottomSubpane;
newForm.FormClassName = "VRO360Forms.CallReportForm";
newForm.Splitter = AddinExpress.OL.ADXOlSplitterBehavior.None;

formManager.Items.Add(newForm);
-----------------
Is there something I must do to register the form so that the FormManager will recognize it?

Christian
Posted 14 Jun, 2007 13:10:33 Top
Fedor Shihantsov


Guest


Is VRO360Forms.CallReportForm inherited from AddinExpress.OL.ADXOlForm?

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 14 Jun, 2007 13:34:52 Top
Christian Beach




Posts: 7
Joined: 2007-05-15
Yes. The exact same form copied into the project along with the AddinModule works perfectly.

Christian
Posted 14 Jun, 2007 13:40:22 Top
Fedor Shihantsov


Guest


Christian,

The point is: an ADXOlForm is created in the following way FormsManager.CallingAssembly.CreateInstance(AssemblyFormClassName);
That is, your form must be placed in the same assembly with ADXOlFormsManager.
Posted 14 Jun, 2007 13:56:23 Top