trichview.com

trichview.support




Re: AV when load RTF file


Return to index


Author

Message

Neal

Posted: 02/12/2003 0:48:52


"Sergey Tkachenko" <svt@trichview.com> wrote:

>You need to link RichView with some RVStyle object:

>

>Example, creating a temporal RichView and converting RTF to HTML:

>

>var

>  InvisibleRichView: TRichView;

>  RVStyle: TRVStyle;

>begin

>  InvisibleRichView := TRichView.Create(nil);

>  RVStyle := TRVStyle.Create;

>  try

>    InvisibleRichView.Visible := False;

>    InvisibleRichView.Parent := RTFForm;

>    InvisibleRichView.Style := RVStyle;

>    InvisibleRichView.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;

>    InvisibleRichView.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;

>    InvisibleRichView.LoadRTF('aaa.rtf');

>    // InvisibleRichView.Format; // <- not required in this example;

>    InvisibleRichView.SaveHmlEx('aaa.html', 'aaa', 'img', '', '', '', []);

>  finally

>    InvisibleRichView.Free;

>    RVStyle.Free;

>  end;

>



Thanks.


What side effects can I expect if I don't set Parent?


InvisibleRichView.Parent := nil;


So far a sample Apache shared object (with no visual forms at all) behaves

ok...





Powered by ABC Amber Outlook Express Converter