Direct link error on html!!

General TRichView support forum. Please post your questions here
Post Reply
Diablomus
Posts: 6
Joined: Sun Sep 09, 2007 4:44 am

Direct link error on html!!

Post by Diablomus »

Hi all.

"<html><head><title>asd.htm</title>
</head>
<body bgcolor="#ffffff" leftmargin=5 topmargin=5 rightmargin=5 bottommargin=5>
<font size=2 color="#000000" face="Arial">
<div><img width=140 height=182 hspace=1 vspace=1 src="C:\12345\12345.jpg"></div>
</font>
</body></html>"

I am using htmlimporter and i am loading this html file and no problem.Because this pic file in local computer.


"<html><head><title>asd.htm</title>
</head>
<body bgcolor="#ffffff" leftmargin=5 topmargin=5 rightmargin=5 bottommargin=5>
<font size=2 color="#000000" face="Arial">
<div><img width=140 height=182 hspace=1 vspace=1 src="http://mish.info/msn.jpg"></div>
</font>
</body></html>"

But i am loading this file and i cant see this pic because this is in server computer.

Is there any solution??
I am waiting your answer.
Thanks for everything...
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If you use RichViewActions, they can do it automatically with Indy.

If not, you should process RvHtmlImporter.OnImageRequired2 event (or, better, RichView.OnImportPicture) to download images from the remote comuter. There are two demos using Indy components:
1) http://www.trichview.com/resources/html/rvhtml_indy.zip - downloads images one by one, as soon as they appear in HTML file
2) http://www.trichview.com/resources/html ... hreads.zip - downloads images in threads. This demo allows already to display document while not all pictures are downloaded yet, but has some limitations.
Post Reply