473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Parsing .eml file

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

Nov 22 '05 #1
2 5143
_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.

"Pauravi" wrote:
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

Nov 22 '05 #2
Thanks a lot

"Jakob Christensen" wrote:
_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.

"Pauravi" wrote:
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

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Willem Ligtenberg | last post by:
I decided to use SAX to parse my xml file. But the parser crashes on: File "/usr/lib/python2.3/site-packages/_xmlplus/sax/handler.py", line 38, in fatalError raise exception...
2
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
3
by: Pir8 | last post by:
I have a complex xml file, which contains stories within a magazine. The structure of the xml file is as follows: <?xml version="1.0" encoding="ISO-8859-1" ?> <magazine> <story>...
1
by: Christoph Bisping | last post by:
Hello! Maybe someone is able to give me a little hint on this: I've written a vb.net app which is mainly an interpreter for specialized CAD/CAM files. These files mainly contain simple movement...
4
by: Rick Walsh | last post by:
I have an HTML table in the following format: <table> <tr><td>Header 1</td><td>Header 2</td></tr> <tr><td>1</td><td>2</td></tr> <tr><td>3</td><td>4</td></tr> <tr><td>5</td><td>6</td></tr>...
3
by: toton | last post by:
Hi, I have some ascii files, which are having some formatted text. I want to read some section only from the total file. For that what I am doing is indexing the sections (denoted by .START in...
9
by: Paulers | last post by:
Hello, I have a log file that contains many multi-line messages. What is the best approach to take for extracting data out of each message and populating object properties to be stored in an...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
13
by: charliefortune | last post by:
I am fetching some product feeds with PHP like this $merch = substr($key,1); $feed = file_get_contents($_POST); $fp = fopen("./feeds/feed".$merch.".txt","w+"); fwrite ($fp,$feed); fclose...
2
by: Felipe De Bene | last post by:
I'm having problems parsing an HTML file with the following syntax : <TABLE cellspacing=0 cellpadding=0 ALIGN=CENTER BORDER=1 width='100%'> <TH BGCOLOR='#c0c0c0' Width='3%'>User ID</TH> <TH...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.