Custom Form and Active Content

  • Thread starter Thread starter Christie Sorenson
  • Start date Start date
C

Christie Sorenson

Hello,
I have a custom message form that has vbscript code
behind. I also have a COM Addin.

Everything in the custom form is needed before I send the
message so once I send the message, I set the MessageClass
back to IPM.Note.

However, I still get the "cannot display in preview pane
because of active content" message. I have tried deleting
the {0820060000000000C000000000000046}0x8510 property, but
it always gets put back in.

As I don't need or want to send the custom form, is there
anything I can do besides creating a new message to clear
the "active content" property?

Thank you!
Christie
 
Not really, just copy your custom form item to a new standard item. Once a
form has code in it or had code in it you can't view it in the preview pane.
 
Thank you for your quick response. I'm sure this is an
obvious question, but how do you copy your custom form
item to a new standard item through a COM addin? Do I
have to copy field by field?

Thank you again,
Christie
 
Hmm. This doesn't seem to work for me...it seems to copy
the entire thing including the script flag.
I feel I must be missing something huge here because I
would imagine I'm not the only person to want to have a
custom message form with code behind that displays in the
recievers preview pane...

Thank you for all your help,
Christie
 
I wasn't sure if it would also copy the form code. Then you'll have to copy
field by field into a new item.

Other people might want to see forms like that in the preview pane but it
isn't going to happen. Code read in preview will fire the Item_Read event
and if that event handler has malware code in it that code would run. It's a
security risk so MS is not going to allow it.
 
Back
Top