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

Forms breaking automatic rules?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 4th 07, 12:58 AM posted to microsoft.public.outlook.program_forms
Rajesh K
external usenet poster
 
Posts: 11
Default Forms breaking automatic rules?

Hi,
I created a form based off "New Message.oft" and used it outlook 2003. I
found out that when I used the derived form instead of the original form, the
following things break:

1. Rules that auto-forward broken: these rules do not. i.e., if I create
a rule that automatically forwards some of the email received in the inbox,
the rule does not fire.

2. Blue forwarded arrow missing. When I manually forward an email, the
inspector says that the email has been forwarded but the blue arrow icon on
the exporer is missing.

Any ideas what is going on? My customers need to know.

I do have a tiny amount of vb cpode in the forms.

RK
Ads
  #2  
Old August 4th 07, 01:07 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Forms breaking automatic rules?

I presume you published this form and are not creating items from the ..oft file. (Code runs only on published forms.)

1) Don't know why what would happen. Might not be related to the form at all.

2) Sounds perfectly normal. Custom form items can show only one icon, the one set on the (Properties) page.

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


"Rajesh K" wrote in message ...
Hi,
I created a form based off "New Message.oft" and used it outlook 2003. I
found out that when I used the derived form instead of the original form, the
following things break:

1. Rules that auto-forward broken: these rules do not. i.e., if I create
a rule that automatically forwards some of the email received in the inbox,
the rule does not fire.

2. Blue forwarded arrow missing. When I manually forward an email, the
inspector says that the email has been forwarded but the blue arrow icon on
the exporer is missing.

Any ideas what is going on? My customers need to know.

I do have a tiny amount of vb cpode in the forms.

RK

  #3  
Old August 10th 07, 09:52 AM posted to microsoft.public.outlook.program_forms
Rajesh K
external usenet poster
 
Posts: 11
Default Forms breaking automatic rules?

Hi Sue,

I do publish the form. My form is named MyNewMessage.oft. The steps I
take a

1. Set HKCU\Software\Microsoft\Office\[version]\Outlook\Custom
Forms\Compose , IPM.Note = IPM.Note.MyNewMessage

2. I then publish the form calling MyPublishForm [code shown at the end].

3. Set HKLM\Software\Microsoft\Office\[version]\Outlook\, value of
ForceFormReload = 1

That should do it, I guess ...

Any ideas ?

Thanks
RK
Code for publishing a form:

DWORD __stdcall MyPublishForm(LPSTR pszFormFileName, LPSTR pszName)
{
DWORD dwStatus;
Outlook::_ApplicationPtr spApp("Outlook.Application");

if (spApp == NULL)
{
return -1;
}
Outlook::_NameSpacePtr pMAPI = spApp-GetNamespace("MAPI");

if (pMAPI == NULL)
return -1;

dwStatus = pMAPI-Logon("","",false,false);

if (dwStatus != 0)
return dwStatus;

Outlook::_MailItemPtr pItem =
spApp-CreateItemFromTemplate(pszFormFileName, vtMissing);

if (pItem == NULL)
return -1;

Outlook::FormDescriptionPtr pFormDescr = pItem-FormDescription;

pFormDescr-Name= pszName;

dwStatus = pFormDescr-PublishForm(Outlook:lPersonalRegistry, vtMissing);

return dwStatus;
}
=== Code end.

"Sue Mosher [MVP-Outlook]" wrote:

I presume you published this form and are not creating items from the ..oft file. (Code runs only on published forms.)

1) Don't know why what would happen. Might not be related to the form at all.

2) Sounds perfectly normal. Custom form items can show only one icon, the one set on the (Properties) page.

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


"Rajesh K" wrote in message ...
Hi,
I created a form based off "New Message.oft" and used it outlook 2003. I
found out that when I used the derived form instead of the original form, the
following things break:

1. Rules that auto-forward broken: these rules do not. i.e., if I create
a rule that automatically forwards some of the email received in the inbox,
the rule does not fire.

2. Blue forwarded arrow missing. When I manually forward an email, the
inspector says that the email has been forwarded but the blue arrow icon on
the exporer is missing.

Any ideas what is going on? My customers need to know.

I do have a tiny amount of vb cpode in the forms.

RK


  #4  
Old August 10th 07, 01:54 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Forms breaking automatic rules?

Using a published custom form as the default form for new messages is a very bad idea, all the way around. I don't know if that's related to the rules problem, but I would strongly suggest that you consider other solutions to whatever it is you're trying to accomplish with that custom form.

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


"Rajesh K" wrote in message ...
Hi Sue,

I do publish the form. My form is named MyNewMessage.oft. The steps I
take a

1. Set HKCU\Software\Microsoft\Office\[version]\Outlook\Custom
Forms\Compose , IPM.Note = IPM.Note.MyNewMessage

2. I then publish the form calling MyPublishForm [code shown at the end].

3. Set HKLM\Software\Microsoft\Office\[version]\Outlook\, value of
ForceFormReload = 1

That should do it, I guess ...

Any ideas ?

Thanks
RK
Code for publishing a form:

DWORD __stdcall MyPublishForm(LPSTR pszFormFileName, LPSTR pszName)
{
DWORD dwStatus;
Outlook::_ApplicationPtr spApp("Outlook.Application");

if (spApp == NULL)
{
return -1;
}
Outlook::_NameSpacePtr pMAPI = spApp-GetNamespace("MAPI");

if (pMAPI == NULL)
return -1;

dwStatus = pMAPI-Logon("","",false,false);

if (dwStatus != 0)
return dwStatus;

Outlook::_MailItemPtr pItem =
spApp-CreateItemFromTemplate(pszFormFileName, vtMissing);

if (pItem == NULL)
return -1;

Outlook::FormDescriptionPtr pFormDescr = pItem-FormDescription;

pFormDescr-Name= pszName;

dwStatus = pFormDescr-PublishForm(Outlook:lPersonalRegistry, vtMissing);

return dwStatus;
}
=== Code end.

"Sue Mosher [MVP-Outlook]" wrote:

I presume you published this form and are not creating items from the ...oft file. (Code runs only on published forms.)

1) Don't know why what would happen. Might not be related to the form at all.

2) Sounds perfectly normal. Custom form items can show only one icon, the one set on the (Properties) page.

"Rajesh K" wrote in message ...
Hi,
I created a form based off "New Message.oft" and used it outlook 2003. I
found out that when I used the derived form instead of the original form, the
following things break:

1. Rules that auto-forward broken: these rules do not. i.e., if I create
a rule that automatically forwards some of the email received in the inbox,
the rule does not fire.

2. Blue forwarded arrow missing. When I manually forward an email, the
inspector says that the email has been forwarded but the blue arrow icon on
the exporer is missing.

Any ideas what is going on? My customers need to know.

I do have a tiny amount of vb cpode in the forms.

RK


  #5  
Old August 10th 07, 09:36 PM posted to microsoft.public.outlook.program_forms
Rajesh K
external usenet poster
 
Posts: 11
Default Forms breaking automatic rules?

Agreed. I am using "other mechanisms" O2K7. In the older versions there were
interaction issues with other companies' addins and toolbars and we had
customers complain about it. Being the smaller vendor, we were forced to use
the suboptimal forms method for pre-o2k7. It works beautifully for most
customers ... Except for the two issues

Sigh ..
Rajesh

"Sue Mosher [MVP-Outlook]" wrote:

Using a published custom form as the default form for new messages is a very bad idea, all the way around. I don't know if that's related to the rules problem, but I would strongly suggest that you consider other solutions to whatever it is you're trying to accomplish with that custom form.

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


"Rajesh K" wrote in message ...
Hi Sue,

I do publish the form. My form is named MyNewMessage.oft. The steps I
take a

1. Set HKCU\Software\Microsoft\Office\[version]\Outlook\Custom
Forms\Compose , IPM.Note = IPM.Note.MyNewMessage

2. I then publish the form calling MyPublishForm [code shown at the end].

3. Set HKLM\Software\Microsoft\Office\[version]\Outlook\, value of
ForceFormReload = 1

That should do it, I guess ...

Any ideas ?

Thanks
RK
Code for publishing a form:

DWORD __stdcall MyPublishForm(LPSTR pszFormFileName, LPSTR pszName)
{
DWORD dwStatus;
Outlook::_ApplicationPtr spApp("Outlook.Application");

if (spApp == NULL)
{
return -1;
}
Outlook::_NameSpacePtr pMAPI = spApp-GetNamespace("MAPI");

if (pMAPI == NULL)
return -1;

dwStatus = pMAPI-Logon("","",false,false);

if (dwStatus != 0)
return dwStatus;

Outlook::_MailItemPtr pItem =
spApp-CreateItemFromTemplate(pszFormFileName, vtMissing);

if (pItem == NULL)
return -1;

Outlook::FormDescriptionPtr pFormDescr = pItem-FormDescription;

pFormDescr-Name= pszName;

dwStatus = pFormDescr-PublishForm(Outlook:lPersonalRegistry, vtMissing);

return dwStatus;
}
=== Code end.

"Sue Mosher [MVP-Outlook]" wrote:

I presume you published this form and are not creating items from the ...oft file. (Code runs only on published forms.)

1) Don't know why what would happen. Might not be related to the form at all.

2) Sounds perfectly normal. Custom form items can show only one icon, the one set on the (Properties) page.

"Rajesh K" wrote in message ...
Hi,
I created a form based off "New Message.oft" and used it outlook 2003. I
found out that when I used the derived form instead of the original form, the
following things break:

1. Rules that auto-forward broken: these rules do not. i.e., if I create
a rule that automatically forwards some of the email received in the inbox,
the rule does not fire.

2. Blue forwarded arrow missing. When I manually forward an email, the
inspector says that the email has been forwarded but the blue arrow icon on
the exporer is missing.

Any ideas what is going on? My customers need to know.

I do have a tiny amount of vb cpode in the forms.

RK


 




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
Setting automatic formatting and rules for a public calendar fourmv Outlook - Calandaring 7 July 26th 10 11:14 PM
Transfer calander automatic formating rules between computers. RWGT Outlook - Calandaring 6 February 28th 07 03:12 AM
Rules: No Forms to Choose Texas Father Outlook - Using Forms 1 October 20th 06 07:45 PM
Calendar coloring automatic formatting rules disappear Rick O Outlook - Calandaring 1 May 24th 06 05:27 AM
Automatic Formating for Custom Forms CC Outlook - Using Contacts 1 April 27th 06 08:15 AM


All times are GMT +1. The time now is 10:58 PM.


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.