if i use
Code: Select all
...
var
...
rveMail : TRichViewEdit;
sPath1, sPath2 : String;
...
begin
...
sPath1 := 'C:\MyApp\Data\';
sPath2 := '\\server\MyApp\Data\';
...
rveMail.SaveHtml(
sPath1 + 'temp.html',
'EMailEditorRv-Design',
sPath1,
[rvsoOverrideImages, rvsoUTF8]
);
...
end;
doesn't work.
When I change CRVData TCustomRVData.GetNextFileName
from
Code: Select all
function TCustomRVData.GetNextFileName(const ImagesPrefix, Path, Ext: String;
var imgSaveNo: Integer; OverrideFiles: Boolean): String;
var FullPath: String;
begin
if {$IFDEF RICHVIEWCBDEF3}AnsiPos{$ELSE}Pos{$ENDIF}(':',ImagesPrefix)>0 then
FullPath := ImagesPrefix
else
FullPath := Path+ImagesPrefix;
while True do begin
inc(imgSaveNo);
Result := FullPath+IntToStr(imgSaveNo)+Ext;
if not FileExists(Result) then
exit;
{$WARNINGS OFF}
if OverrideFiles and ((FileGetAttr(Result) and faReadOnly)=0) then
exit;
{$WARNINGS ON}
end;
end;
Code: Select all
function TCustomRVData.GetNextFileName(const ImagesPrefix, Path, Ext: String;
var imgSaveNo: Integer; OverrideFiles: Boolean): String;
var FullPath: String;
begin
if ({$IFDEF RICHVIEWCBDEF3}AnsiPos{$ELSE}Pos{$ENDIF}(':',ImagesPrefix)>0) OR
(copy(ImagesPrefix, 1, 2) = '\\') then
FullPath := ImagesPrefix
else
FullPath := Path+ImagesPrefix;
while True do begin
inc(imgSaveNo);
Result := FullPath+IntToStr(imgSaveNo)+Ext;
if not FileExists(Result) then
exit;
{$WARNINGS OFF}
if OverrideFiles and ((FileGetAttr(Result) and faReadOnly)=0) then
exit;
{$WARNINGS ON}
end;
end;
Is there a other way to do saving so that the complete Path for the
embedded images would be written in the HTML, or can you do
the change I do for everyone? Or in another way,
so that I can use "SaveHTML" for an UNC-Path correctly?
I hope the change I do is a good idea and
can be found his way into the next update!
Greetings from Germany
Hillebrandt