![]() |
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
|
|||
|
|||
![]()
How can i add code to the this page the compose page code works but
when i`m sending the mail and read it no code is being run cqan someone help me? I`m sending the test mail on the same exchange server address |
#2
|
|||
|
|||
![]()
If the form doesn't run code after you have sent or saved an item using the published form, you probably have done something to "one-off" the form. Outlook 2003, Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.outlookcode.com/d/secforms.htm for more information on this issue.
To ensure that a form does not one-off: -- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1] -- For in-house corporate use with Exchange Server, publish the form to the Organization Forms library or a public folder's forms library, as appropriate for your application. -- For collaboration via the Internet, publish your form to your Personal Forms library. Save it as an .oft file and send it to other people who need to use it with instructions to publish it with the same form name that you used. Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.outlookcode.com/d/formpub.htm#oneoff for other possible causes. [1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it unless your form has no code behind 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 "MeMatthew" wrote in message oups.com... How can i add code to the this page the compose page code works but when i`m sending the mail and read it no code is being run cqan someone help me? I`m sending the test mail on the same exchange server address |
#3
|
|||
|
|||
![]()
Every think seems to be good, Were running Exchange 2000, are there
specific security updates that can block the code from running? bdw i`m trying to run this code and no msg box is dispayed on reading. Function Item_Read() ComposeMode = False End Function Function Item_Open() set objApp = CreateObject("Outlook.Application") set objItem = objApp.ActiveInspector.CurrentItem msgbox objItem.Body if ComposeMode = True then msgbox("True ") else msgbox("False") end if End Function Sue Mosher [MVP-Outlook] wrote: If the form doesn't run code after you have sent or saved an item using the published form, you probably have done something to "one-off" the form. Outlook 2003, Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.outlookcode.com/d/secforms.htm for more information on this issue. To ensure that a form does not one-off: -- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1] -- For in-house corporate use with Exchange Server, publish the form to the Organization Forms library or a public folder's forms library, as appropriate for your application. -- For collaboration via the Internet, publish your form to your Personal Forms library. Save it as an .oft file and send it to other people who need to use it with instructions to publish it with the same form name that you used. Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.outlookcode.com/d/formpub.htm#oneoff for other possible causes. [1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it unless your form has no code behind 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 "MeMatthew" wrote in message oups.com... How can i add code to the this page the compose page code works but when i`m sending the mail and read it no code is being run cqan someone help me? I`m sending the test mail on the same exchange server address |
#4
|
|||
|
|||
![]()
The version of Exchange has no bearing on whether a form's code will run.
The value of the MessageClass and Size properties should tell you whether an item has one-offed. What is the MessageClass of the received test item? Where did you publish the form? Outlook form code should never use statements like this: set objApp = CreateObject("Outlook.Application") set objItem = objApp.ActiveInspector.CurrentItem The item where the code is running is the intrinsic Item object, thus: MsgBox Item.Subject Form code also supports an intrinsic Application object. -- 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 "MeMatthew" wrote in message ups.com... Every think seems to be good, Were running Exchange 2000, are there specific security updates that can block the code from running? bdw i`m trying to run this code and no msg box is dispayed on reading. Function Item_Read() ComposeMode = False End Function Function Item_Open() set objApp = CreateObject("Outlook.Application") set objItem = objApp.ActiveInspector.CurrentItem msgbox objItem.Body if ComposeMode = True then msgbox("True ") else msgbox("False") end if End Function Sue Mosher [MVP-Outlook] wrote: If the form doesn't run code after you have sent or saved an item using the published form, you probably have done something to "one-off" the form. Outlook 2003, Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.outlookcode.com/d/secforms.htm for more information on this issue. To ensure that a form does not one-off: -- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1] -- For in-house corporate use with Exchange Server, publish the form to the Organization Forms library or a public folder's forms library, as appropriate for your application. -- For collaboration via the Internet, publish your form to your Personal Forms library. Save it as an .oft file and send it to other people who need to use it with instructions to publish it with the same form name that you used. Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.outlookcode.com/d/formpub.htm#oneoff for other possible causes. [1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it unless your form has no code behind it. "MeMatthew" wrote in message oups.com... How can i add code to the this page the compose page code works but when i`m sending the mail and read it no code is being run cqan someone help me? I`m sending the test mail on the same exchange server address |
#5
|
|||
|
|||
![]()
The size of the recieved email is 31kb so the mail is oki, i published
themin the personal forms library. I modified the code to Function Item_Read() ComposeMode = False End Function Function Item_Open() if ComposeMode = True then msgbox("True ?") else msgbox("False?") end if End Function Still nothing no msg box is being shown, What do you mean by message class is it a propiety that i have to assign to the form? Sue Mosher [MVP-Outlook] wrote: The version of Exchange has no bearing on whether a form's code will run. The value of the MessageClass and Size properties should tell you whether an item has one-offed. What is the MessageClass of the received test item? Where did you publish the form? Outlook form code should never use statements like this: set objApp = CreateObject("Outlook.Application") set objItem = objApp.ActiveInspector.CurrentItem The item where the code is running is the intrinsic Item object, thus: MsgBox Item.Subject Form code also supports an intrinsic Application object. -- 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 "MeMatthew" wrote in message ups.com... Every think seems to be good, Were running Exchange 2000, are there specific security updates that can block the code from running? bdw i`m trying to run this code and no msg box is dispayed on reading. Function Item_Read() ComposeMode = False End Function Function Item_Open() set objApp = CreateObject("Outlook.Application") set objItem = objApp.ActiveInspector.CurrentItem msgbox objItem.Body if ComposeMode = True then msgbox("True ") else msgbox("False") end if End Function Sue Mosher [MVP-Outlook] wrote: If the form doesn't run code after you have sent or saved an item using the published form, you probably have done something to "one-off" the form. Outlook 2003, Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.outlookcode.com/d/secforms.htm for more information on this issue. To ensure that a form does not one-off: -- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1] -- For in-house corporate use with Exchange Server, publish the form to the Organization Forms library or a public folder's forms library, as appropriate for your application. -- For collaboration via the Internet, publish your form to your Personal Forms library. Save it as an .oft file and send it to other people who need to use it with instructions to publish it with the same form name that you used. Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.outlookcode.com/d/formpub.htm#oneoff for other possible causes. [1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it unless your form has no code behind it. "MeMatthew" wrote in message oups.com... How can i add code to the this page the compose page code works but when i`m sending the mail and read it no code is being run cqan someone help me? I`m sending the test mail on the same exchange server address |
#6
|
|||
|
|||
![]()
MessageClass is a property just like Size, that you can add to any Outlook view. You assign a form a message class, such as IPM.Note.MyForm when you publish it.
31kb by itself doesn't tell you much. Compare it with a non-custom form item containing similar text. -- 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 "MeMatthew" wrote in message ups.com... The size of the recieved email is 31kb so the mail is oki, i published themin the personal forms library. I modified the code to Function Item_Read() ComposeMode = False End Function Function Item_Open() if ComposeMode = True then msgbox("True ?") else msgbox("False?") end if End Function Still nothing no msg box is being shown, What do you mean by message class is it a propiety that i have to assign to the form? Sue Mosher [MVP-Outlook] wrote: The version of Exchange has no bearing on whether a form's code will run. The value of the MessageClass and Size properties should tell you whether an item has one-offed. What is the MessageClass of the received test item? Where did you publish the form? Outlook form code should never use statements like this: set objApp = CreateObject("Outlook.Application") set objItem = objApp.ActiveInspector.CurrentItem The item where the code is running is the intrinsic Item object, thus: MsgBox Item.Subject Form code also supports an intrinsic Application object. "MeMatthew" wrote in message ups.com... Every think seems to be good, Were running Exchange 2000, are there specific security updates that can block the code from running? bdw i`m trying to run this code and no msg box is dispayed on reading. Function Item_Read() ComposeMode = False End Function Function Item_Open() set objApp = CreateObject("Outlook.Application") set objItem = objApp.ActiveInspector.CurrentItem msgbox objItem.Body if ComposeMode = True then msgbox("True ") else msgbox("False") end if End Function Sue Mosher [MVP-Outlook] wrote: If the form doesn't run code after you have sent or saved an item using the published form, you probably have done something to "one-off" the form. Outlook 2003, Outlook 2002, Outlook 2000 SP2 and Outlook 2000 or 98 with the Email Security Update will not run code on one-off forms; see http://www.outlookcode.com/d/secforms.htm for more information on this issue. To ensure that a form does not one-off: -- Make sure the "Send form definition with item" box on the (Properties) tab of the form is *not* checked. [1] -- For in-house corporate use with Exchange Server, publish the form to the Organization Forms library or a public folder's forms library, as appropriate for your application. -- For collaboration via the Internet, publish your form to your Personal Forms library. Save it as an .oft file and send it to other people who need to use it with instructions to publish it with the same form name that you used. Many other things can cause one-off forms. If the above steps don't work on a new item created with your form, see http://www.outlookcode.com/d/formpub.htm#oneoff for other possible causes. [1] Whenever you publish a message form, Outlook will suggest that you may want to check the "Send form definition with item" box to ensure that the recipient will have the form, especially if you're sending to someone via the Internet. In the current Outlook security environment, this suggestion is obsolete. Ignore it unless your form has no code behind it. "MeMatthew" wrote in message oups.com... How can i add code to the this page the compose page code works but when i`m sending the mail and read it no code is being run cqan someone help me? I`m sending the test mail on the same exchange server address |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Value not displaying on Read Page after form is sent? | Rhino | Outlook - Using Forms | 8 | June 21st 06 05:27 PM |
Create or Edit a Page Style | Jim McGowan | Outlook - Using Contacts | 1 | May 24th 06 06:10 PM |
Read contents of web page | Pierre Scerri | Outlook and VBA | 7 | February 10th 06 08:35 AM |
Viewing the Read Page | Teelions | Outlook - Using Forms | 3 | January 30th 06 04:20 PM |
Command button not working on read page | jbtempe | Outlook - Using Forms | 2 | January 14th 06 12:25 AM |