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