can't see EmailAttachmentType property

R

rodchar

hey all,
i'm in vs2005 and infopath2003 in the click event of a button. i'm using
MailEnvelope class and according to msdn example i should be able to set a
property called EmailAttachmentType but it is not showing this property in
Intellisense drop down list?
any ideas?

thanks,
rodchar
 
R

rodchar

then if i'm using MailEnvelope class in Visual Studio 2005 how do i tell it
that i don't want the attachment?
 
S

S.Y.M. Wong-A-Ton

If an object model does not support a property, then you cannot force it to
support it; you have to find an alternative solution. Like I've said in a
previous post, you can use System.Net.Mail.MailMessage instead. However,
there is an AttachmentType property supported on the MailEnvelope2 interface.
So try casting the MailEnvelope to MailEnvelope2 and set its AttachmentType
to xdNone.
 
R

rodchar

thank you for the help.
rod.

S.Y.M. Wong-A-Ton said:
If an object model does not support a property, then you cannot force it to
support it; you have to find an alternative solution. Like I've said in a
previous post, you can use System.Net.Mail.MailMessage instead. However,
there is an AttachmentType property supported on the MailEnvelope2 interface.
So try casting the MailEnvelope to MailEnvelope2 and set its AttachmentType
to xdNone.
 

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