PC Review


Reply
Thread Tools Rate Thread

CreateDocumentFromUrl

 
 
=?Utf-8?B?SmFjayBDbGlmdA==?=
Guest
Posts: n/a
 
      20th Dec 2006
I am writing an application that uses oMSHTML.createDocumentFromUrl to parse
a series of .html files located on my local disk drive (not the web).

It appears that even though the files are found locally, this instruction is
trying to download the web resources referenced in the file (say images or
the like) - the reason for the file being on the local disk in the first
place is that the internet connection is slow at best and may or may not be
live.

Is there anyway to use this (or similar instructions) that do not attempt to
download items from to the web?

All that I want from the parsing exercise is information that is in the file
(in a table). My only option appears to be to write a routine that deletes
all text in the html file that is not between a "<table " and "</table tags.
Crude to say the least.

thanks

JC
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      20th Dec 2006
Jack,
You can open HTML in Excel. That will give you the data.
Maybe using a web query through a local web server would work also, as it
does not appear to work if you just point the browser to the local file.

NickHK

"Jack Clift" <(E-Mail Removed)> wrote in message
news:4BC0B020-E454-492D-AF98-(E-Mail Removed)...
> I am writing an application that uses oMSHTML.createDocumentFromUrl to

parse
> a series of .html files located on my local disk drive (not the web).
>
> It appears that even though the files are found locally, this instruction

is
> trying to download the web resources referenced in the file (say images or
> the like) - the reason for the file being on the local disk in the first
> place is that the internet connection is slow at best and may or may not

be
> live.
>
> Is there anyway to use this (or similar instructions) that do not attempt

to
> download items from to the web?
>
> All that I want from the parsing exercise is information that is in the

file
> (in a table). My only option appears to be to write a routine that

deletes
> all text in the html file that is not between a "<table " and "</table

tags.
> Crude to say the least.
>
> thanks
>
> JC



 
Reply With Quote
 
=?Utf-8?B?TWFydGluIEZpc2hsb2Nr?=
Guest
Posts: n/a
 
      20th Dec 2006
Jack,

You could try opening the file as text and getting the table information
like that, it is much the same idea that you had.



--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Jack Clift" wrote:

> I am writing an application that uses oMSHTML.createDocumentFromUrl to parse
> a series of .html files located on my local disk drive (not the web).
>
> It appears that even though the files are found locally, this instruction is
> trying to download the web resources referenced in the file (say images or
> the like) - the reason for the file being on the local disk in the first
> place is that the internet connection is slow at best and may or may not be
> live.
>
> Is there anyway to use this (or similar instructions) that do not attempt to
> download items from to the web?
>
> All that I want from the parsing exercise is information that is in the file
> (in a table). My only option appears to be to write a routine that deletes
> all text in the html file that is not between a "<table " and "</table tags.
> Crude to say the least.
>
> thanks
>
> JC

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
createDocumentFromURL =?Utf-8?B?SmFjayBDbGlmdA==?= Microsoft Excel Programming 12 8th Sep 2008 03:31 PM
How to use createDocumentFromUrl()? Brett Microsoft C# .NET 1 3rd Jun 2005 02:18 PM
createDocumentFromUrl =?Utf-8?B?SmFjayBDbGlmdA==?= Microsoft VB .NET 0 28th Feb 2005 12:09 AM
createDocumentFromUrl usage in VB.NET Vibhu Microsoft VB .NET 1 27th Jan 2005 10:43 AM
getting createDocumentFromUrl() to work Pat Mac Microsoft VB .NET 1 11th Nov 2003 08:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 AM.