Merge Celluls in FR3
Kellouche
Algeria
Hi
i would like realise a universel function for merging celluls, i have foud a part of code in FR4 forum, i have modified the code like this :
but the celluls were not merged ! someone has an idea ?
Edit : in the original code, the merge has effect on field's frame so i would like merge the shape's frame.
i would like realise a universel function for merging celluls, i have foud a part of code in FR4 forum, i have modified the code like this :
procedure MasterData3OnBeforePrint(Sender: TfrxComponent);
begin
  with Shape125.Frame do
    if LastUnite <> <FIBQ_Caract_Techniques."NOM_UNITE">
    then Typ := ftTop + ftLeft
    else Typ := ftLeft;
  LastUnite := <FIBQ_Caract_Techniques."NOM_UNITE">;
end;
but the celluls were not merged ! someone has an idea ?
Edit : in the original code, the merge has effect on field's frame so i would like merge the shape's frame.
Comments
I think "typ" has not efect on a shape ! does this a bug ?
But it doesn't work in FR4 as well. The same is when you try tu set DropShadow of Shape.
Yes, really it seems to be a bug.
Change you Shape for 4 separated lines and make them Visible or not according to your need.
Mick
is this a unique solution because i have a lot of reports with cells to be merged
2. create universal procedure which will receive Shape as parameter and
a. will hide this Shape (Visible := false)
b. will replace this Shape with 2-3 lines (left, bottom, etc) according to your need laying this lines in the same place as Shape.
3. create universal procedure which will receive Shape as parameter and
a. will hide this Shape (Visible := false)
b. will create a TfrxMemoView on-fly and will lay it down in the same place (Left,Top,...) as the Shape param and will set this memo Send Back
c. will operate on that MemoFrame.
Mick
okay, I'll do as you suggest, with some light modifications.