Click here to Skip to main content
15,913,610 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questioncalling of dll from another dll when both are in same folder Pin
vikas shukla17-Nov-09 0:01
vikas shukla17-Nov-09 0:01 
AnswerRe: calling of dll from another dll when both are in same folder Pin
Luc Pattyn17-Nov-09 1:33
sitebuilderLuc Pattyn17-Nov-09 1:33 
AnswerRe: calling of dll from another dll when both are in same folder Pin
Shameel17-Nov-09 2:39
professionalShameel17-Nov-09 2:39 
Questionseparating the messages received in socket communication Pin
k3rkiran16-Nov-09 22:21
k3rkiran16-Nov-09 22:21 
AnswerRe: separating the messages received in socket communication Pin
Richard MacCutchan17-Nov-09 2:59
mveRichard MacCutchan17-Nov-09 2:59 
AnswerRe: separating the messages received in socket communication Pin
Mark Salsbery17-Nov-09 12:25
Mark Salsbery17-Nov-09 12:25 
QuestionWebBrowser component av hooking events Pin
invictus316-Nov-09 20:27
invictus316-Nov-09 20:27 
QuestionFailed to add attachment to Mailitem Pin
jsturma16-Nov-09 14:17
jsturma16-Nov-09 14:17 
Hi all,

In VB.NET project, I'm trying to add an attachment to MailItem. Visual Studio 2008 timeout after around 60 seconds
A fatal error has occured.....please see Microsoft.....HRESULT=0x80131C8 ErrorCode=0x0

My code is failing at myMailItem.Attachments.Add line. it seems that i cannot add any attachment.

Failing SUB

Sub AddAttachment(ByVal MailId As String)

Dim myOlApp As Olk.Application
Dim myOlkNS As Olk.NameSpace
Dim myMailItem As Olk.MailItem
Dim myAttachments As Olk.Attachments
Dim myAttachment As Olk.Attachment
Const OlkCatExt As String = ".OlkCat"
myOlApp = New Olk.Application
myOlkNS = myOlApp.GetNamespace("MAPI")
myMailItem = myOlkNS.GetItemFromID(MailId, PSTStoreID)
Debug.WriteLine(myMailItem.Subject)
Debug.WriteLine(myMailItem.ReceivedTime)
Dim MyOlCat() As String = Split(myMailItem.Categories, ";")
If MyOlCat Is Nothing Then
'
'
'
Else
For Each OlkCat In MyOlCat
myAttachment = myMailItem.Attachments.Add((OlkCat + OlkCatExt), Olk.OlAttachmentType.olByValue)
myAttachment.DisplayName = OlkCat
'myMailItem.Save()
Next
End If
End Sub


All ideas are welcome
Best
Jean
QuestionSet PDF->Document Properties->Security->Signing With iTextSharp Pin
Polymorpher16-Nov-09 13:55
Polymorpher16-Nov-09 13:55 
AnswerRe: Set PDF->Document Properties->Security->Signing With iTextSharp Pin
junaid1096-Jan-11 18:10
junaid1096-Jan-11 18:10 
QuestionCreare report Word in C# .NET 2005 Pin
dv377316-Nov-09 6:24
dv377316-Nov-09 6:24 
AnswerRe: Creare report Word in C# .NET 2005 Pin
Dave Kreskowiak16-Nov-09 6:32
mveDave Kreskowiak16-Nov-09 6:32 
GeneralRe: Creare report Word in C# .NET 2005 Pin
Richard MacCutchan16-Nov-09 7:31
mveRichard MacCutchan16-Nov-09 7:31 
AnswerRe: Creare report Word in C# .NET 2005 Pin
CPallini16-Nov-09 9:25
mveCPallini16-Nov-09 9:25 
AnswerRe: Creare report Word in C# .NET 2005 Pin
Pete O'Hanlon16-Nov-09 9:37
mvePete O'Hanlon16-Nov-09 9:37 
AnswerRe: Creare report Word in C# .NET 2005 Pin
Luc Pattyn16-Nov-09 9:54
sitebuilderLuc Pattyn16-Nov-09 9:54 
AnswerRe: Creare report Word in C# .NET 2005 Pin
dv377317-Nov-09 3:08
dv377317-Nov-09 3:08 
GeneralRe: Creare report Word in C# .NET 2005 Pin
dv377317-Nov-09 13:31
dv377317-Nov-09 13:31 
QuestionWhat is F# Pin
anishkannan16-Nov-09 1:07
anishkannan16-Nov-09 1:07 
AnswerRe: What is F# Pin
Simon P Stevens16-Nov-09 1:39
Simon P Stevens16-Nov-09 1:39 
AnswerRe: What is F# Pin
salkad200716-Nov-09 2:42
salkad200716-Nov-09 2:42 
Questionsimultaneous multiple socket connexions Pin
Crisleelee16-Nov-09 0:06
Crisleelee16-Nov-09 0:06 
QuestionFramework Dependancy Pin
Gjm15-Nov-09 13:00
Gjm15-Nov-09 13:00 
AnswerRe: Framework Dependancy [modified] Pin
Luc Pattyn15-Nov-09 13:43
sitebuilderLuc Pattyn15-Nov-09 13:43 
AnswerRe: Framework Dependancy Pin
freakyit15-Nov-09 23:58
freakyit15-Nov-09 23:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.