S
Shiv Kotagal
Hi !
I have an outlook VB COM Add-In which seems to be failing due to hidden attachments.
Whenever myMailItem has hidden attachments i.e the 'PR_ATTACHMENT_HIDDEN'
for the attachment is true, the 'Response.Save' fails and sometimes crashes outlook.
sometimes it works fine. Can I detect the hidden attachments in VB and avoid saving ?
Can anyone please help ?....................any clue will be greatly appreciated. here is the code
i am using..
Private Sub myMailItem_Reply(ByVal Response As Object, Cancel As Boolean)
On Error GoTo errHandler
Dim TrustedResponse As Outlook.MailItem
' save reponse item to get a trusted reference
Response.Save 'This fails when the myMailItem has hidden attachments
Set TrustedResponse = myNameSpace.GetItemFromID(Response.EntryID, _
Response.Parent.StoreID)
'now we can access the recipients and modify without getting security prompts
....
...
...
End Sub
I have an outlook VB COM Add-In which seems to be failing due to hidden attachments.
Whenever myMailItem has hidden attachments i.e the 'PR_ATTACHMENT_HIDDEN'
for the attachment is true, the 'Response.Save' fails and sometimes crashes outlook.
sometimes it works fine. Can I detect the hidden attachments in VB and avoid saving ?
Can anyone please help ?....................any clue will be greatly appreciated. here is the code
i am using..
Private Sub myMailItem_Reply(ByVal Response As Object, Cancel As Boolean)
On Error GoTo errHandler
Dim TrustedResponse As Outlook.MailItem
' save reponse item to get a trusted reference
Response.Save 'This fails when the myMailItem has hidden attachments
Set TrustedResponse = myNameSpace.GetItemFromID(Response.EntryID, _
Response.Parent.StoreID)
'now we can access the recipients and modify without getting security prompts
....
...
...
End Sub