On the click of a button, I need to save two HTML files to disk from the same rvf document and in one go. The first file must have active HTML links and not the second file.
I know how to do that separately with SaveHTMLEx using or not using the OnWriteHyperLink event. However I don't know how to avoid triggering the OnWriteHyperLink when the second file (no active links) is written to disk. I don't really find my way through all the params and options of OnWriteHyperLink.
Thanks in advance for any help.
HTML with/without active hyperlinks?
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Thanks, the de-assigning works. I reassign it like this :Sergey Tkachenko wrote:You may assign RichViewEdit1.OnWriteHyperlink := nil before saving the-no hyperlink file, and reassign it to the proper procedure when saving file with links.
RichViewEdit1.OnWriteHyperlink := RichViewEdit1.OnWriteHyperLink;
Is this the proper way to do it?
Hi Vega,
That last bit of code does not make much sense.
something like
would seem to be more useful
That last bit of code does not make much sense.
something like
Code: Select all
oldEvent:=RichViewEdit1.OnWriteHyperlink;
RichViewEdit1.OnWriteHyperlink:=nil;
save stuff....
RichViewEdit1.OnWriteHyperlink :=oldEvent
Thanks dave novo. That did it.dave novo wrote:Hi Vega,
That last bit of code does not make much sense.
something like
would seem to be more usefulCode: Select all
oldEvent:=RichViewEdit1.OnWriteHyperlink; RichViewEdit1.OnWriteHyperlink:=nil; save stuff.... RichViewEdit1.OnWriteHyperlink :=oldEvent