forward of a custom contact form

  • Thread starter Andrea Cacciarru
  • Start date
A

Andrea Cacciarru

Hi to all... I have created my custom contact form and I have publicized
this model. Now, when I try to forward (forwadAsVCard) this contact form
like an attachment in a mail Outlook throw a message "object not valid".
Why?

thank's in advance, Andrea
 
A

Andrea Cacciarru

Sorry, I don't explain sufficiently well what happens. I have an outlook
addin that create an item from a template (*.oft), then I publicize this
item form in contacts personal folder. Everything goes well, but when I go
to "Forward" (sorry, not forward as VsCard), from outlook popup menù
(otherwise, when outlook visualize all contacts, click on a contact, from
main menù go to Actions->Forward (CTRL+F)), outlook return an error message
(here I have to translate the italian sentence) "object not valid". If I
delete my custom form module from folder contacts properties, "forward"
action become again available and I can forward as an attachment my contacts
again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing on windows
registry on "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom
Forms\Compose" and "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom
Forms\Read" keys.

I hope that these steps are fair enough.

Best regards, Andrea.
 
S

Sue Mosher [MVP-Outlook]

On the .oft file, what form do you have set for use by the Forward action on
the (Actions) page?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

Andrea Cacciarru

Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea
 
S

Sue Mosher [MVP-Outlook]

I have one idea: You shouldn't use registry substitution to change the
default form unless that form is published in the Organizational Forms or
Personal Forms library. Does it work OK if you remove it from the Contacts
folder forms library and publish to Personal Forms instead?

Does it work if you publish manually, rather than programmatically?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea



Sue Mosher said:
On the .oft file, what form do you have set for use by the Forward action
on the (Actions) page?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
Sorry, I don't explain sufficiently well what happens. I have an outlook
addin that create an item from a template (*.oft), then I publicize this
item form in contacts personal folder. Everything goes well, but when I
go to "Forward" (sorry, not forward as VsCard), from outlook popup menù
(otherwise, when outlook visualize all contacts, click on a contact,
from main menù go to Actions->Forward (CTRL+F)), outlook return an error
message (here I have to translate the italian sentence) "object not
valid". If I delete my custom form module from folder contacts
properties, "forward" action become again available and I can forward as
an attachment my contacts again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing on
windows registry on "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom
Forms\Compose" and "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom
Forms\Read" keys.

I hope that these steps are fair enough.


"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio Show a code snippet?

Hi to all... I have created my custom contact form and I have
publicized this model. Now, when I try to forward (forwadAsVCard) this
contact form like an attachment in a mail Outlook throw a message
"object not valid". Why?

thank's in advance, Andrea
 
A

Andrea Cacciarru

I tryed to do not use registry substitution (I have deleted all registry
entries and I don'have write Compose and Read keys any more), but nothing
happens. Sorry I said an inaccuracy: I've published my custom contact form
in folder contacts itself:

CComQIPtr <Outlook::MAPIFolder> oContacts;
CustomFormDescription->PublishForm(ofr,varContacts); //publish form in
Contacts folder itself

I have noticed that if I open a custom contact from outlook (not
programmatically), re-publish this form and after save this contact, the
forward action become again available and I can forward as an attachment
this custom contact (but only this one!).
If i try to publish this form in Personal or Organizational form library not
work too. :eek:(

Andrea



Sue Mosher said:
I have one idea: You shouldn't use registry substitution to change the
default form unless that form is published in the Organizational Forms or
Personal Forms library. Does it work OK if you remove it from the Contacts
folder forms library and publish to Personal Forms instead?

Does it work if you publish manually, rather than programmatically?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea



Sue Mosher said:
On the .oft file, what form do you have set for use by the Forward
action on the (Actions) page?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sorry, I don't explain sufficiently well what happens. I have an
outlook addin that create an item from a template (*.oft), then I
publicize this item form in contacts personal folder. Everything goes
well, but when I go to "Forward" (sorry, not forward as VsCard), from
outlook popup menù (otherwise, when outlook visualize all contacts,
click on a contact, from main menù go to Actions->Forward (CTRL+F)),
outlook return an error message (here I have to translate the italian
sentence) "object not valid". If I delete my custom form module from
folder contacts properties, "forward" action become again available and
I can forward as an attachment my contacts again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing on
windows registry on "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom
Forms\Compose" and "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom
Forms\Read" keys.

I hope that these steps are fair enough.


"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio Show a code snippet?

message Hi to all... I have created my custom contact form and I have
publicized this model. Now, when I try to forward (forwadAsVCard)
this contact form like an attachment in a mail Outlook throw a
message "object not valid". Why?

thank's in advance, Andrea
 
A

Andrea Cacciarru

Doing some tests, I've seen that the forward action for my custom default
form, stop to be available when I change the form icons from form design
properties. I've decided from now to unchange form icons and I ignore what
is the cause of this behaviour. Some ideas?
Bye, Andrea



Andrea Cacciarru said:
I tryed to do not use registry substitution (I have deleted all registry
entries and I don'have write Compose and Read keys any more), but nothing
happens. Sorry I said an inaccuracy: I've published my custom contact form
in folder contacts itself:

CComQIPtr <Outlook::MAPIFolder> oContacts;
CustomFormDescription->PublishForm(ofr,varContacts); //publish form in
Contacts folder itself

I have noticed that if I open a custom contact from outlook (not
programmatically), re-publish this form and after save this contact, the
forward action become again available and I can forward as an attachment
this custom contact (but only this one!).
If i try to publish this form in Personal or Organizational form library
not work too. :eek:(

Andrea



Sue Mosher said:
I have one idea: You shouldn't use registry substitution to change the
default form unless that form is published in the Organizational Forms or
Personal Forms library. Does it work OK if you remove it from the Contacts
folder forms library and publish to Personal Forms instead?

Does it work if you publish manually, rather than programmatically?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea



"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio On the .oft file, what form do you have set for use by the Forward
action on the (Actions) page?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sorry, I don't explain sufficiently well what happens. I have an
outlook addin that create an item from a template (*.oft), then I
publicize this item form in contacts personal folder. Everything goes
well, but when I go to "Forward" (sorry, not forward as VsCard), from
outlook popup menù (otherwise, when outlook visualize all contacts,
click on a contact, from main menù go to Actions->Forward (CTRL+F)),
outlook return an error message (here I have to translate the italian
sentence) "object not valid". If I delete my custom form module from
folder contacts properties, "forward" action become again available
and I can forward as an attachment my contacts again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing on
windows registry on
"HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose" and
"HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Read" keys.

I hope that these steps are fair enough.


"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio Show a code snippet?

message Hi to all... I have created my custom contact form and I have
publicized this model. Now, when I try to forward (forwadAsVCard)
this contact form like an attachment in a mail Outlook throw a
message "object not valid". Why?

thank's in advance, Andrea
 
S

Sue Mosher [MVP-Outlook]

Changing the icons on the (Properties) page in form design mode doesn't have
any relation to the way the actions on the (Actions) page work. Maybe you're
also doing something else?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
Doing some tests, I've seen that the forward action for my custom default
form, stop to be available when I change the form icons from form design
properties. I've decided from now to unchange form icons and I ignore what
is the cause of this behaviour. Some ideas?
Bye, Andrea



Andrea Cacciarru said:
I tryed to do not use registry substitution (I have deleted all registry
entries and I don'have write Compose and Read keys any more), but nothing
happens. Sorry I said an inaccuracy: I've published my custom contact form
in folder contacts itself:

CComQIPtr <Outlook::MAPIFolder> oContacts;
CustomFormDescription->PublishForm(ofr,varContacts); //publish form in
Contacts folder itself

I have noticed that if I open a custom contact from outlook (not
programmatically), re-publish this form and after save this contact, the
forward action become again available and I can forward as an attachment
this custom contact (but only this one!).
If i try to publish this form in Personal or Organizational form library
not work too. :eek:(

Andrea



Sue Mosher said:
I have one idea: You shouldn't use registry substitution to change the
default form unless that form is published in the Organizational Forms or
Personal Forms library. Does it work OK if you remove it from the
Contacts folder forms library and publish to Personal Forms instead?

Does it work if you publish manually, rather than programmatically?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea



"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio On the .oft file, what form do you have set for use by the Forward
action on the (Actions) page?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



message Sorry, I don't explain sufficiently well what happens. I have an
outlook addin that create an item from a template (*.oft), then I
publicize this item form in contacts personal folder. Everything goes
well, but when I go to "Forward" (sorry, not forward as VsCard), from
outlook popup menù (otherwise, when outlook visualize all contacts,
click on a contact, from main menù go to Actions->Forward (CTRL+F)),
outlook return an error message (here I have to translate the italian
sentence) "object not valid". If I delete my custom form module from
folder contacts properties, "forward" action become again available
and I can forward as an attachment my contacts again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing on
windows registry on
"HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose"
and "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Read"
keys.

I hope that these steps are fair enough.


"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio Show a code snippet?

message Hi to all... I have created my custom contact form and I have
publicized this model. Now, when I try to forward (forwadAsVCard)
this contact form like an attachment in a mail Outlook throw a
message "object not valid". Why?

thank's in advance, Andrea
 
S

Sue Mosher [MVP-Outlook]

I'm afraid that I'm now completely confused as to the current state of your
form and the problem. Could you give us a quick synopsis?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
I tryed to do not use registry substitution (I have deleted all registry
entries and I don'have write Compose and Read keys any more), but nothing
happens. Sorry I said an inaccuracy: I've published my custom contact form
in folder contacts itself:

CComQIPtr <Outlook::MAPIFolder> oContacts;
CustomFormDescription->PublishForm(ofr,varContacts); //publish form in
Contacts folder itself

I have noticed that if I open a custom contact from outlook (not
programmatically), re-publish this form and after save this contact, the
forward action become again available and I can forward as an attachment
this custom contact (but only this one!).
If i try to publish this form in Personal or Organizational form library
not work too. :eek:(

Sue Mosher said:
I have one idea: You shouldn't use registry substitution to change the
default form unless that form is published in the Organizational Forms or
Personal Forms library. Does it work OK if you remove it from the Contacts
folder forms library and publish to Personal Forms instead?

Does it work if you publish manually, rather than programmatically?

Andrea Cacciarru said:
Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea



"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio On the .oft file, what form do you have set for use by the Forward
action on the (Actions) page?

Sorry, I don't explain sufficiently well what happens. I have an
outlook addin that create an item from a template (*.oft), then I
publicize this item form in contacts personal folder. Everything goes
well, but when I go to "Forward" (sorry, not forward as VsCard), from
outlook popup menù (otherwise, when outlook visualize all contacts,
click on a contact, from main menù go to Actions->Forward (CTRL+F)),
outlook return an error message (here I have to translate the italian
sentence) "object not valid". If I delete my custom form module from
folder contacts properties, "forward" action become again available
and I can forward as an attachment my contacts again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing on
windows registry on
"HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose" and
"HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Read" keys.

I hope that these steps are fair enough.


"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio Show a code snippet?

message Hi to all... I have created my custom contact form and I have
publicized this model. Now, when I try to forward (forwadAsVCard)
this contact form like an attachment in a mail Outlook throw a
message "object not valid". Why?
 
A

Andrea Cacciarru

I dont' know exactly what is the problem: independently from forms actions I
have noticed that before change icons Properties the forward action of
custom forms works fine, after icon change forward action is not more
available (only this action). The only thing that I do is to go in
Properties page and select new icon picture. I think that the problem issue
from the custom 16 x 16 icon tha I use in my form. With other icons this
problem do not occur.

Bye,
Andrea


Sue Mosher said:
Changing the icons on the (Properties) page in form design mode doesn't
have any relation to the way the actions on the (Actions) page work. Maybe
you're also doing something else?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
Doing some tests, I've seen that the forward action for my custom default
form, stop to be available when I change the form icons from form design
properties. I've decided from now to unchange form icons and I ignore
what is the cause of this behaviour. Some ideas?
Bye, Andrea



Andrea Cacciarru said:
I tryed to do not use registry substitution (I have deleted all registry
entries and I don'have write Compose and Read keys any more), but nothing
happens. Sorry I said an inaccuracy: I've published my custom contact
form in folder contacts itself:

CComQIPtr <Outlook::MAPIFolder> oContacts;
CustomFormDescription->PublishForm(ofr,varContacts); //publish form in
Contacts folder itself

I have noticed that if I open a custom contact from outlook (not
programmatically), re-publish this form and after save this contact, the
forward action become again available and I can forward as an attachment
this custom contact (but only this one!).
If i try to publish this form in Personal or Organizational form library
not work too. :eek:(

Andrea



"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio I have one idea: You shouldn't use registry substitution to change the
default form unless that form is published in the Organizational Forms
or Personal Forms library. Does it work OK if you remove it from the
Contacts folder forms library and publish to Personal Forms instead?

Does it work if you publish manually, rather than programmatically?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea



"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio On the .oft file, what form do you have set for use by the Forward
action on the (Actions) page?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



message Sorry, I don't explain sufficiently well what happens. I have an
outlook addin that create an item from a template (*.oft), then I
publicize this item form in contacts personal folder. Everything
goes well, but when I go to "Forward" (sorry, not forward as
VsCard), from outlook popup menù (otherwise, when outlook visualize
all contacts, click on a contact, from main menù go to
Actions->Forward (CTRL+F)), outlook return an error message (here I
have to translate the italian sentence) "object not valid". If I
delete my custom form module from folder contacts properties,
"forward" action become again available and I can forward as an
attachment my contacts again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing on
windows registry on
"HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose"
and "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Read"
keys.

I hope that these steps are fair enough.


"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio Show a code snippet?

message Hi to all... I have created my custom contact form and I have
publicized this model. Now, when I try to forward (forwadAsVCard)
this contact form like an attachment in a mail Outlook throw a
message "object not valid". Why?

thank's in advance, Andrea
 
S

Sue Mosher [MVP-Outlook]

All the icons need to be 32 x 32, even the small one.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
I dont' know exactly what is the problem: independently from forms actions
I have noticed that before change icons Properties the forward action of
custom forms works fine, after icon change forward action is not more
available (only this action). The only thing that I do is to go in
Properties page and select new icon picture. I think that the problem issue
from the custom 16 x 16 icon tha I use in my form. With other icons this
problem do not occur.

Bye,
Andrea


Sue Mosher said:
Changing the icons on the (Properties) page in form design mode doesn't
have any relation to the way the actions on the (Actions) page work.
Maybe you're also doing something else?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Andrea Cacciarru said:
Doing some tests, I've seen that the forward action for my custom
default form, stop to be available when I change the form icons from
form design properties. I've decided from now to unchange form icons and
I ignore what is the cause of this behaviour. Some ideas?
Bye, Andrea



"Andrea Cacciarru" <andrea.cacciarru@~NOSPAM~email.it> ha scritto nel
messaggio I tryed to do not use registry substitution (I have deleted all registry
entries and I don'have write Compose and Read keys any more), but
nothing happens. Sorry I said an inaccuracy: I've published my custom
contact form in folder contacts itself:

CComQIPtr <Outlook::MAPIFolder> oContacts;
CustomFormDescription->PublishForm(ofr,varContacts); //publish form in
Contacts folder itself

I have noticed that if I open a custom contact from outlook (not
programmatically), re-publish this form and after save this contact,
the forward action become again available and I can forward as an
attachment this custom contact (but only this one!).
If i try to publish this form in Personal or Organizational form
library not work too. :eek:(

Andrea



"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio I have one idea: You shouldn't use registry substitution to change the
default form unless that form is published in the Organizational Forms
or Personal Forms library. Does it work OK if you remove it from the
Contacts folder forms library and publish to Personal Forms instead?

Does it work if you publish manually, rather than programmatically?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



message Message form, that is the default Outlook Message form (IPM.Note).

Action Name: Forward
Form Name: Message
Message Class. IPM.Note
When responding: Attach original message
Address form like: Forward
Subject Prefix: FW

All values was setted by outlook itself.

Andrea



"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio On the .oft file, what form do you have set for use by the Forward
action on the (Actions) page?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



message Sorry, I don't explain sufficiently well what happens. I have an
outlook addin that create an item from a template (*.oft), then I
publicize this item form in contacts personal folder. Everything
goes well, but when I go to "Forward" (sorry, not forward as
VsCard), from outlook popup menù (otherwise, when outlook visualize
all contacts, click on a contact, from main menù go to
Actions->Forward (CTRL+F)), outlook return an error message (here I
have to translate the italian sentence) "object not valid". If I
delete my custom form module from folder contacts properties,
"forward" action become again available and I can forward as an
attachment my contacts again.
I publicize my custom form in this way:

//...
for (int n = 1; n<=spItems->get_Count(&ItemCount);++n){
//here I change Message Class of all contacts
}

CComPtr <Outlook::FormDescription> CustomFormDescription;
CComQIPtr <Outlook::MAPIFolder> oContacts;
//...
CComVariant varContacts (oContacts);
Outlook::OlFormRegistry ofr = olFolderRegistry;
CustomFormDescription->PublishForm(ofr,varContacts);

Then I also make my custom contact form the default form, writing
on windows registry on
"HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Compose"
and "HKCU\Software\Microsoft\Office\11.0\Outlook\Custom Forms\Read"
keys.

I hope that these steps are fair enough.


"Sue Mosher [MVP-Outlook]" <[email protected]> ha scritto nel
messaggio Show a code snippet?

message Hi to all... I have created my custom contact form and I have
publicized this model. Now, when I try to forward (forwadAsVCard)
this contact form like an attachment in a mail Outlook throw a
message "object not valid". Why?

thank's in advance, Andrea
 

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