Complex document problem

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
hypercube
Posts: 14
Joined: Thu Jun 07, 2007 10:56 am
Location: Moscow
Contact:

Complex document problem

Post by hypercube »

Hi.

We used SRichViewEdit component as editor. When document http://www.oganer.info/u.rvf opens it raise an exception. Problem is reproduced in ActionTest demo.

In demo application of TRichView problem is absent.

Have you any idea how to solve this problem?

Thanx.
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

replace:

Code: Select all

    function getHeaderTable : Integer;
    var
         r, c : Integer;
    begin
      Result := 0;
      if Item.HeadingRowCount > 0 then
        begin
          Item.Rows.GetMainCell(Item.HeadingRowCount-1, 0, r, c);
          Result := Item.Cells[r, c].Top + Item.Cells[r, c].Height;
          Result := Result + Item.CellBorderWidth shl 1;
          if Item.HeadingRowCount < Item.Rows.Count then
            Result := Result + Item.CellVSpacing;
        end;
    end;
hypercube
Posts: 14
Joined: Thu Jun 07, 2007 10:56 am
Location: Moscow
Contact:

Post by hypercube »

Thank you, Ilya.
Post Reply