浏览代码

* Convert barcode (parent needs to be set)

git-svn-id: trunk@38932 -
michael 7 年之前
父节点
当前提交
af938981b3
共有 1 个文件被更改,包括 2 次插入1 次删除
  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);