QrCode centered

edited 4:42AM 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 4:42AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.