trichview.com

trichview.support




AV while loading html document


Return to index


Author

Message

manoj

Posted: 11/12/2003 17:13:10


I am trying to create pdf from HTML using the example (which you have made)

to convert RTF file. i am loading html to rvrh.richview using TRvHtmlImporter.


if I create a new application with only trichview and  TRvHtmlImporter, it

is able to load the html document properly but when I try loading it into

rvrh.richview (TRVReportHelper) then it gives AV.

i have just added the following code on another button click.

======

  rvrh.RichView.BiDiMode:=rvbdLeftToRight;

      RvHtmlImporter1.RichView:=rvrh.RichView;

        btnSave.Enabled := true;

    RvHtmlImporter1.LoadHtml(memo1.Text);

======

it gives AV at


procedure TFontInfo.Apply(Canvas: TCanvas; DefBiDiMode: TRVBiDiMode);

var LogFont: TLogFont;

    ppi: Integer;

    tm: TTextMetric;

begin

  if FCharScale=100 then begin

    Canvas.Font.Style := Style; //this line because canvas is nil

===

when i debug = its getting the nil cavas from

====

function TRectPtblRVData.GetCanvas: TCanvas;

begin

  Result := TCustomMainPtblRVData(TPrintableRV(FRichView).RVData).PrinterCanvas;

//

end;

===

the call before that is


TCellPtblRVData(Fmt.Rows[r]).Format(NoCaching);





Powered by ABC Amber Outlook Express Converter