Open Custom Form

N

Nir

Hi,

I need to design a set of custom forms which will open in a new separate inspector window.
I only succeed to open a custom form on an existing inspector such as Task.
How can I open my custom form in a new inspector window?

TIA.
 
N

Nir

I meant programmatically but I already succeed.

Outlook.MAPIFolder folder = application.ActiveExplorer).CurrentFolder;

Outlook.MailItem item = (Outlook.MailItem) folder.Items.Add("IPM.Note.CustomForm);

item.Display(true);

But now I have another problem :), How can I close the inspector which holds the form, when I tried ActiveInspector().close , it only closes the form and not the window.

Thanks.
 
S

Sue Mosher [MVP-Outlook]

I'm not sure what you mean. The form and the window are the same thing in this context: The window displays the form, which shows the data from the item.

Also, given that you have the MailItem object, why not use item.CLose?
 
G

Gene

How do I associate a custom form update to a specific Task folder in outlook.
I updated the custom form already assigned to the ITChanges task folder.
When I open a new task in ITChanges the new form does not come up.

I created a test folder to create & applied the new forms there.
I can't get them to save let alone come up as the default form for the folder.

I could realy use a hand.

Help!!
 
S

Sue Mosher [MVP-Outlook]

While in design mode, did you increment the version number on the (Properties) page of the task form and then republish the form using the same message class?

On the Properties dialog for the folder, is the published custom form set as the default form for the folder?
 
G

Gene

Thank you for the update.
I tried publish earlier but I did not know about the (Version) attribute on
the [Properties] tab. I incremented the version number & saved it to the
same name.
The updated form comes up as the default form now.

It (however) refuses to save to the folder when filled in.
I checked the permissions properties of the folder and I am listed as an
Owner.
What did I miss?
 
S

Sue Mosher [MVP-Outlook]

What happens when you try to save an item created with the form? On the folder's Properties dialog, is there a restriction on what forms can be used?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Gene said:
Thank you for the update.
I tried publish earlier but I did not know about the (Version) attribute on
the [Properties] tab. I incremented the version number & saved it to the
same name.
The updated form comes up as the default form now.

It (however) refuses to save to the folder when filled in.
I checked the permissions properties of the folder and I am listed as an
Owner.
What did I miss?

Sue Mosher said:
While in design mode, did you increment the version number on the (Properties) page of the task form and then republish the form using the same message class?

On the Properties dialog for the folder, is the published custom form set as the default form for the folder?
 
G

Gene

It's fixed now.
I revisited the [IT Changes] Task Folder Properties dialog again and spent
some more time on the other tabs.
* "When posting to this folder, use" Drop down box on the [General] tab was
blank
* I chose the form update from yesterday
* That action populated the "Forms associated with this folder:" Text Box
and actived the [Manage...] button on the [Forms] tab.
* The form update I did today then allowed itself to save.
* I (however) more form names than care to look at.

Multiple forms have been published to this folder.
How do I go about cleaning up?

Gene Townsend
Sue Mosher said:
What happens when you try to save an item created with the form? On the folder's Properties dialog, is there a restriction on what forms can be used?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Gene said:
Thank you for the update.
I tried publish earlier but I did not know about the (Version) attribute on
the [Properties] tab. I incremented the version number & saved it to the
same name.
The updated form comes up as the default form now.

It (however) refuses to save to the folder when filled in.
I checked the permissions properties of the folder and I am listed as an
Owner.
What did I miss?

Sue Mosher said:
While in design mode, did you increment the version number on the (Properties) page of the task form and then republish the form using the same message class?

On the Properties dialog for the folder, is the published custom form set as the default form for the folder?

How do I associate a custom form update to a specific Task folder in outlook.
I updated the custom form already assigned to the ITChanges task folder.
When I open a new task in ITChanges the new form does not come up.

I created a test folder to create & applied the new forms there.
I can't get them to save let alone come up as the default form for the folder.
 
S

Sue Mosher [MVP-Outlook]

On that same folder Properties dialog, on the Forms tab, click the Manage button.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Gene said:
It's fixed now.
I revisited the [IT Changes] Task Folder Properties dialog again and spent
some more time on the other tabs.
* "When posting to this folder, use" Drop down box on the [General] tab was
blank
* I chose the form update from yesterday
* That action populated the "Forms associated with this folder:" Text Box
and actived the [Manage...] button on the [Forms] tab.
* The form update I did today then allowed itself to save.
* I (however) more form names than care to look at.

Multiple forms have been published to this folder.
How do I go about cleaning up?

Gene Townsend
Sue Mosher said:
What happens when you try to save an item created with the form? On the folder's Properties dialog, is there a restriction on what forms can be used?

Gene said:
Thank you for the update.
I tried publish earlier but I did not know about the (Version) attribute on
the [Properties] tab. I incremented the version number & saved it to the
same name.
The updated form comes up as the default form now.

It (however) refuses to save to the folder when filled in.
I checked the permissions properties of the folder and I am listed as an
Owner.
What did I miss?

:

While in design mode, did you increment the version number on the (Properties) page of the task form and then republish the form using the same message class?

On the Properties dialog for the folder, is the published custom form set as the default form for the folder?

How do I associate a custom form update to a specific Task folder in outlook.
I updated the custom form already assigned to the ITChanges task folder.
When I open a new task in ITChanges the new form does not come up.

I created a test folder to create & applied the new forms there.
I can't get them to save let alone come up as the default form for the folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top