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

forward event of Custom form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 8th 07, 02:41 AM posted to microsoft.public.outlook.program_forms
cynthia
external usenet poster
 
Posts: 23
Default forward event of Custom form

I developed a custom form in VSTO. And when forwarding the custom form, the
showing form is also the custom form. But I want to use the default message
form when forwarding.
The coding like following:
Dim oMsg As Outlook.MailItem
oMsg = Me.CreateItemFromTemplate(strPath + "test.oft")

oMsg.MessageClass and oMsg.Forward().MessageClass are the same which is
"IPM.Note".

oMsg.FormDescription.MessageClass and
oMsg.Forward().FormDescription.MessageClass are the same which is
"IPM.Note.CustomForm".

Further more, I have set the action property "forward" to the default
message form in test.oft mail template design. But its
formdescription.messageclass is the customform class.

How could I modify the forward() to use the default messageclass, and its
formdescription also use the default messageclass.

Thanks
  #2  
Old March 8th 07, 11:33 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default forward event of Custom form

A forwarded message always uses the custom form associated with original message. The only workaround I know is to use the Forward event to create a new item using Application.CreateItem and then populate its properties and send it.

--
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

"Cynthia" wrote in message ...
I developed a custom form in VSTO. And when forwarding the custom form, the
showing form is also the custom form. But I want to use the default message
form when forwarding.
The coding like following:
Dim oMsg As Outlook.MailItem
oMsg = Me.CreateItemFromTemplate(strPath + "test.oft")

oMsg.MessageClass and oMsg.Forward().MessageClass are the same which is
"IPM.Note".

oMsg.FormDescription.MessageClass and
oMsg.Forward().FormDescription.MessageClass are the same which is
"IPM.Note.CustomForm".

Further more, I have set the action property "forward" to the default
message form in test.oft mail template design. But its
formdescription.messageclass is the customform class.

How could I modify the forward() to use the default messageclass, and its
formdescription also use the default messageclass.

Thanks

  #3  
Old March 8th 07, 03:14 PM posted to microsoft.public.outlook.program_forms
cynthia
external usenet poster
 
Posts: 23
Default forward event of Custom form

Thanks for your quickly reply

But could you tell me how to get the forward event? Or some examples.

Thank you very much

"Sue Mosher [MVP-Outlook]" wrote:

A forwarded message always uses the custom form associated with original message. The only workaround I know is to use the Forward event to create a new item using Application.CreateItem and then populate its properties and send it.

--
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

"Cynthia" wrote in message ...
I developed a custom form in VSTO. And when forwarding the custom form, the
showing form is also the custom form. But I want to use the default message
form when forwarding.
The coding like following:
Dim oMsg As Outlook.MailItem
oMsg = Me.CreateItemFromTemplate(strPath + "test.oft")

oMsg.MessageClass and oMsg.Forward().MessageClass are the same which is
"IPM.Note".

oMsg.FormDescription.MessageClass and
oMsg.Forward().FormDescription.MessageClass are the same which is
"IPM.Note.CustomForm".

Further more, I have set the action property "forward" to the default
message form in test.oft mail template design. But its
formdescription.messageclass is the customform class.

How could I modify the forward() to use the default messageclass, and its
formdescription also use the default messageclass.

Thanks


  #4  
Old March 8th 07, 03:22 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default forward event of Custom form

Use the Script | Event Handler command in the form's code window to insert the procedure signatu

Function Item_Forward(ByVal ForwardItem)

End Function

ForwardItem is the new item that the Forward command creates.

--
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

"Cynthia" wrote in message ...
Thanks for your quickly reply

But could you tell me how to get the forward event? Or some examples.

Thank you very much

"Sue Mosher [MVP-Outlook]" wrote:

A forwarded message always uses the custom form associated with original message. The only workaround I know is to use the Forward event to create a new item using Application.CreateItem and then populate its properties and send it.

"Cynthia" wrote in message ...
I developed a custom form in VSTO. And when forwarding the custom form, the
showing form is also the custom form. But I want to use the default message
form when forwarding.
The coding like following:
Dim oMsg As Outlook.MailItem
oMsg = Me.CreateItemFromTemplate(strPath + "test.oft")

oMsg.MessageClass and oMsg.Forward().MessageClass are the same which is
"IPM.Note".

oMsg.FormDescription.MessageClass and
oMsg.Forward().FormDescription.MessageClass are the same which is
"IPM.Note.CustomForm".

Further more, I have set the action property "forward" to the default
message form in test.oft mail template design. But its
formdescription.messageclass is the customform class.

How could I modify the forward() to use the default messageclass, and its
formdescription also use the default messageclass.

Thanks


  #5  
Old March 9th 07, 02:43 AM posted to microsoft.public.outlook.program_forms
cynthia
external usenet poster
 
Posts: 23
Default forward event of Custom form

I have tried to insert the script in form's code.

But there is a problem with preview panel. If I put some script in form's
code, there will be an alert like "This item contains active content that
cannot be displayed in the reading pane. Open the item to read its contents."

So I think I should add code in VSTO. But could you tell me how to get the
mailitem forward event in VSTO.

Thanks


"Sue Mosher [MVP-Outlook]" wrote:

Use the Script | Event Handler command in the form's code window to insert the procedure signatu

Function Item_Forward(ByVal ForwardItem)

End Function

ForwardItem is the new item that the Forward command creates.

--
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

"Cynthia" wrote in message ...
Thanks for your quickly reply

But could you tell me how to get the forward event? Or some examples.

Thank you very much

"Sue Mosher [MVP-Outlook]" wrote:

A forwarded message always uses the custom form associated with original message. The only workaround I know is to use the Forward event to create a new item using Application.CreateItem and then populate its properties and send it.

"Cynthia" wrote in message ...
I developed a custom form in VSTO. And when forwarding the custom form, the
showing form is also the custom form. But I want to use the default message
form when forwarding.
The coding like following:
Dim oMsg As Outlook.MailItem
oMsg = Me.CreateItemFromTemplate(strPath + "test.oft")

oMsg.MessageClass and oMsg.Forward().MessageClass are the same which is
"IPM.Note".

oMsg.FormDescription.MessageClass and
oMsg.Forward().FormDescription.MessageClass are the same which is
"IPM.Note.CustomForm".

Further more, I have set the action property "forward" to the default
message form in test.oft mail template design. But its
formdescription.messageclass is the customform class.

How could I modify the forward() to use the default messageclass, and its
formdescription also use the default messageclass.

Thanks


  #6  
Old March 9th 07, 03:37 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default forward event of Custom form

That's normal behavior for forms with script behind them.

To handle item-level events with VSTO, you should use a wrapper class. See http://www.outlookcode.com/d/vb.htm#wrapper.htm

--
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

"Cynthia" wrote in message ...
I have tried to insert the script in form's code.

But there is a problem with preview panel. If I put some script in form's
code, there will be an alert like "This item contains active content that
cannot be displayed in the reading pane. Open the item to read its contents."

So I think I should add code in VSTO. But could you tell me how to get the
mailitem forward event in VSTO.

Thanks


"Sue Mosher [MVP-Outlook]" wrote:

Use the Script | Event Handler command in the form's code window to insert the procedure signatu

Function Item_Forward(ByVal ForwardItem)

End Function

ForwardItem is the new item that the Forward command creates.

--
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

"Cynthia" wrote in message ...
Thanks for your quickly reply

But could you tell me how to get the forward event? Or some examples.

Thank you very much

"Sue Mosher [MVP-Outlook]" wrote:

A forwarded message always uses the custom form associated with original message. The only workaround I know is to use the Forward event to create a new item using Application.CreateItem and then populate its properties and send it.

"Cynthia" wrote in message ...
I developed a custom form in VSTO. And when forwarding the custom form, the
showing form is also the custom form. But I want to use the default message
form when forwarding.
The coding like following:
Dim oMsg As Outlook.MailItem
oMsg = Me.CreateItemFromTemplate(strPath + "test.oft")

oMsg.MessageClass and oMsg.Forward().MessageClass are the same which is
"IPM.Note".

oMsg.FormDescription.MessageClass and
oMsg.Forward().FormDescription.MessageClass are the same which is
"IPM.Note.CustomForm".

Further more, I have set the action property "forward" to the default
message form in test.oft mail template design. But its
formdescription.messageclass is the customform class.

How could I modify the forward() to use the default messageclass, and its
formdescription also use the default messageclass.

Thanks


 




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
ou2007 custom form icon change on event fileman Outlook - Using Forms 5 March 29th 07 01:22 PM
No permission for "forward" event in Outlook Form movalgirl Outlook - Using Forms 0 February 28th 07 11:33 AM
Custom Event Form Anne Outlook - Using Forms 0 August 25th 06 10:59 PM
Adding/Using a custom form during the NewInspector event Tom at GSD Add-ins for Outlook 3 July 12th 06 11:21 PM
How to handling Custom Form Control Event in VB Com Add-In? Raphaël ZHOU \(Jadiam\) Outlook - Using Forms 1 January 11th 06 08:31 AM


All times are GMT +1. The time now is 08:18 AM.


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.