QrCode centered

edited 7:27AM in FastReport VCL 5
I want to center a qrcode over a square box but width & height of the qrcode object i get is about the design time object so the new dimensions are note calculated of the actual data.
There is a way to get the real dimensions of the qrcode (so i can exaplctly place where i want)?
I also tried to force the qrcode.parent on the background box... do not works.
I tried each event but w&h are always of the designed qrcode.

Comments

  • gpigpi
    edited 7:27AM
    wrote:
    There is a way to get the real dimensions of the qrcode (so i can exaplctly place where i want)?
    var
      bc : TfrxBarCode2DView;
      r : TfrxRect;
    begin
        bc := TfrxBarCode2DView(frxReport1.FindObject('BarCode2D1'));
        bc.Text := '1234567890 test 1234567890 asdf 1234567890';
        r := bc.GetRealBounds;
    end;
    

Leave a Comment