Browse Source

* Convert barcode (parent needs to be set)

git-svn-id: trunk@38932 -
michael 7 năm trước cách đây
mục cha
commit
af938981b3
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      packages/fcl-report/src/fplazreport.pp

+ 2 - 1
packages/fcl-report/src/fplazreport.pp

@@ -537,12 +537,13 @@ function TFPLazReport.ConvertBarcode(ObjNode: TDOMNode; APage: TFPReportCustomPa
 
 Var
   aDataNode : TDomNode;
-  BT : String;
   cd : integer;
   D :double;
 
 begin
   Result:=TFPReportBarcode.Create(Self);
+  aDataNode:=ObjNode.FindNode('Size');
+  Result.Parent:=FindBand(APage,PixelsToMM(StrToFloatDef(GetProperty(aDataNode,'Top'),0)));
   Result.Encoding:=StringToEncoding(GetProperty(ObjNode,'BarCode','BarType'));
   if GetProperty(ObjNode,'BarCode','Angle')<>'0' then
     DoLog(SIgnoringAngleOnBarcode);