Page 1 of 1

RvHtmlImporter does not import link tag <a> </a>

Posted: Sun Aug 30, 2009 12:59 pm
by delphix
Hi

my problem in RvHtmlImporter when i import any html code with link tags

<a> </a>

it's not loaded and replaced with
<font color="#0000ff"><u> My link </u></font>

i want it to be with out changes

i appreciate any help.

Posted: Sun Aug 30, 2009 5:36 pm
by Sergey Tkachenko
RvHtmlImporter supports both links <a href> and anchors <a name>.
If they are not imported from some specific HTML, give me a link to it or send by e-mail.

Posted: Wed Sep 02, 2009 11:06 am
by delphix
Hi
i mean when load html text by RvHtmlImporter and then save it to html by
Richviewedit the hyperlink was lost .

you can help me give the best way to import by RvHtmlImporter
and the best way to save to html by Richviewedit .
.
thanks

Posted: Wed Sep 02, 2009 6:43 pm
by Sergey Tkachenko
Process OnWriteHyperlink event (copy this code to your application):

Code: Select all

procedure TForm3.RichViewEdit1WriteHyperlink(Sender: TCustomRichView;
  id: Integer; RVData: TCustomRVData; ItemNo: Integer;
  SaveFormat: TRVSaveFormat; var Target, Extras: String);
begin
  Target := PChar(RVData.GetItemTag(ItemNo));
end;

Posted: Thu Sep 03, 2009 9:40 am
by delphix
Thank you for your help it's working now.
this was last problem in my application and solved now thank you again.

khaled