sate to html

General TRichView support forum. Please post your questions here
Post Reply
RoniTevel
Posts: 8
Joined: Fri Mar 12, 2010 1:29 am

sate to html

Post by RoniTevel »

Hi Sergey
I have email application based on RVE editor.
I write some text and insert a signature image by using:
rve.LoadRTF(GlobalUserPrivateDir + '\signature.rtf');
rve.Format;
I save to html using:
rve.SaveHTML(EmailTempFile, '', 'img', [rvsoOverrideImages,
rvsoOverrideImages]);

what i get in the recipient inbox is this:
<html><head><title></title>

</head>
<body bgcolor="#ffffff" leftmargin=5 topmargin=5 rightmargin=5 bottommargin=5>
<font size=2 color="#000000" face="Arial">
<div dir=RTL>This is line 1</div>
<div dir=RTL>Roni Lev</div>
<div dir=RTL><img width=576 height=144 hspace=1 vspace=1 src="C:/Users/roni.TEVELSOFTWARE/tevel/TEMP/img158.gif"></div>
<div dir=RTL><font size=3 face="Times New Roman"><br></font></div>
</font>
</body></html>
<P><FONT SIZE=2 FACE="Arial">No virus found in this incoming message.<BR>
Checked by AVG - www.avg.com<BR>
Version: 9.0.930 / Virus Database: 2437.1.1/5161 - Release Date: 07/28/12 21:34:00<BR>
</FONT></P>


The image is not diplayed
any idea how to do ir right
Roni
Sergey Tkachenko
Site Admin
Posts: 17561
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Are you sure that you have only rvsoOverrideImages in Options of SaveHTML?
RoniTevel
Posts: 8
Joined: Fri Mar 12, 2010 1:29 am

Post by RoniTevel »

Yes..
this is the exact lie (taken from your samples)
rve.SaveHTML(EmailTempFile, '', 'img', [rvsoOverrideImages]);

this is the html in the file before i send it:

<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1255">
</head>
<body bgcolor="#ffffff" leftmargin=5 topmargin=5 rightmargin=5 bottommargin=5>
<font size=2 color="#000000" face="Arial">
<div align=right dir=LTR><br></div>
<div align=right dir=RTL><img width=576 height=144 hspace=1 vspace=1 src="C:/Users/roni.TEVELSOFTWARE/tevel/TEMP/img160.gif"></div>
<div align=right dir=RTL><font size=3 face="Times New Roman"><br></font></div>
</font>
</body></html>


Roni
Sergey Tkachenko
Site Admin
Posts: 17561
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This is very strange.
By default, images are saved with autogenerated names. With the parameters 'img' and [rvsoOverrideImages], TGifImage must be saved as <img src="img1.gif"> (assuming that you called RV_RegisterHTMLGraphicFormat(TGifImage) before saving), and img1.gif must be created in the same directory as HTML file.

But <img src="C:/Users/roni.TEVELSOFTWARE/tevel/TEMP/img160.gif"> looks like rvspImageFileName was used, and the image file itself is not created (it is assumed that it already exists). However, rvspImageFileName is used only if rvsoUseItemImageFileNames is included in the Options parameter of SaveHTML.

So I am puzzled.
Please send a sample project reproducing this problem to richviewgmailcom.
Post Reply