I am looking for some help on loading an Excel attachment into memory, and then process the excel document. The main issue im having is using EWS to load the attachment into memory and then processing the document. The end result is to load the attachment, read the excel document line by line and store the data into an object to match the excel layout. I already have the code storing the attachment property of the EWS Mail Object. I then need to do the processing here...
Public Function ParseEmails(ByVal emails As List(Of MailDT)) As List(Of PriceInjectionDT)
Dim ParsedEmails As New List(Of PriceInjectionDT)
For Each email As MailDT In emails
For Each a As Microsoft.Exchange.WebServices.Data.Attachment In email.Attachment
a.Load()
Next
Next
End Function
This loads the attachment into memory using the .Load but doesnt give me access to the excel properties :( Help!!!