To clean up the files from HTML code
To clean up the files from HTML code
Hi fwh's,
to clean up the files from HTML code,
exists some function?
to clean up the files from HTML code,
exists some function?
Ciao, best regards,
Ugo
Ugo
Friend
I recomend to you ASP. Use the FSO object to manipulate files on server.
Here some examples with this functions:
Web Explorer
FileMan. The best.
I recomend to you ASP. Use the FSO object to manipulate files on server.
Here some examples with this functions:
Web Explorer
FileMan. The best.
Rochinha,Rochinha wrote:Friend
I recomend to you ASP. Use the FSO object to manipulate files on server.
Here some examples with this functions:
Web Explorer
FileMan. The best.
thank you for your answer.
I am searching one simple function in order to remove the code from HTML files directly from xHarbour - Fivewin.
Ciao, best regards,
Ugo
Ugo
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Ugo,
Perhaps you can use IE and OLE.
http://msdn.microsoft.com/library/defau ... plorer.asp
There is a command to "selectall" and another for "removeformat." So, you could open IE and load the HTML file, then use these commands, then copy to the clipboard, then paste from the clipboard (using FWH) and save to a file.
James
Perhaps you can use IE and OLE.
http://msdn.microsoft.com/library/defau ... plorer.asp
There is a command to "selectall" and another for "removeformat." So, you could open IE and load the HTML file, then use these commands, then copy to the clipboard, then paste from the clipboard (using FWH) and save to a file.
James
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Try this:
EMG
Code: Select all
FUNCTION MAIN()
LOCAL oExplorer := CREATEOBJECT( "InternetExplorer.Application" )
oExplorer:Navigate2( "www.emagsoftware.it/gratis.htm" )
WHILE oExplorer:ReadyState <> 4
HB_IDLESLEEP( 1 )
ENDDO
? oExplorer:Document:Body:InnerText
oExplorer:Quit()
INKEY( 0 )
RETURN NIL
Dear James,James Bott wrote:Ugo,
Perhaps you can use IE and OLE.
http://msdn.microsoft.com/library/defau ... plorer.asp
There is a command to "selectall" and another for "removeformat." So, you could open IE and load the HTML file, then use these commands, then copy to the clipboard, then paste from the clipboard (using FWH) and save to a file.
this solution is interesting, tries it!
Thanks.
Ciao, best regards,
Ugo
Ugo
Enrico,EnricoMaria wrote:Try this:
Code: Select all
FUNCTION MAIN() LOCAL oExplorer := CREATEOBJECT( "InternetExplorer.Application" ) oExplorer:Navigate2( "www.emagsoftware.it/gratis.htm" ) WHILE oExplorer:ReadyState <> 4 HB_IDLESLEEP( 1 ) ENDDO ? oExplorer:Document:Body:InnerText oExplorer:Quit() INKEY( 0 ) RETURN NIL
it is perfect!
Many thanks.
Ciao, best regards,
Ugo
Ugo
Dear Enrico,EnricoMaria wrote:Try this:
EMGCode: Select all
FUNCTION MAIN() LOCAL oExplorer := CREATEOBJECT( "InternetExplorer.Application" ) oExplorer:Navigate2( "www.emagsoftware.it/gratis.htm" ) WHILE oExplorer:ReadyState <> 4 HB_IDLESLEEP( 1 ) ENDDO ? oExplorer:Document:Body:InnerText oExplorer:Quit() INKEY( 0 ) RETURN NIL
this function on Vista Business and IE7 return this error:
"Error InternetExplorer.Application/1722 Unknown error: READYSTATE"
i do not know on ther O.S.
can you confirm and help me to fix?
Ciao, best regards,
Ugo
Ugo
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: To clean up the files from HTML code
look at this tool:Ugo wrote:Hi fwh's,
to clean up the files from HTML code,
exists some function?
http://www.baccan.it/opensource/html2txt201.zip
Regards, Norbert
Re: To clean up the files from HTML code
Norbert,
thanks but the problem now is to receive the html page!
Ciao, best regards,
Ugo
Ugo
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: