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

General TRichView support forum. Please post your questions here
Post Reply
delphix
Posts: 9
Joined: Sun Aug 03, 2008 4:20 pm

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

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
delphix
Posts: 9
Joined: Sun Aug 03, 2008 4:20 pm

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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;
delphix
Posts: 9
Joined: Sun Aug 03, 2008 4:20 pm

Post 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
Post Reply