Parsing .eml file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I am using Cdo.Message to parse .eml files using VB.NET but its not working.
I get error as "The object does not support this type of datasource"

My code is as follows:

Imports Cdo
Imports ADODB

Dim objCdo as new Cdo.Message
Dim fs as new ADODB.Stream
fs.Open
fs.LoadFromFile("c:\test\test.eml")

try
objCdo.DataSource.OpenObject(fs,"_Ifs")
catch ex as exception
Response.write(ex.message)
end try

But the above same code works in ASP

Can anybody help me to solve this?

Thanks in advance

Regards,
Pauravi
 
_Ifs is not implemented by the ADODB.Stream object. My guess is that you
have to specify "_Stream" og "IStream" as the second parameter to OpenObject.

HTH, Jakob.
 
Thanks a lot

Jakob Christensen said:
_Ifs is not implemented by the ADODB.Stream object. My guess is that you
have to specify "_Stream" og "IStream" as the second parameter to OpenObject.

HTH, Jakob.
 
Back
Top