Browse Source

* Convert barcode (parent needs to be set)

git-svn-id: trunk@38932 -
michael 7 years ago
parent
commit
af938981b3
1 changed files with 2 additions and 1 deletions
  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
 Var
   aDataNode : TDomNode;
   aDataNode : TDomNode;
-  BT : String;
   cd : integer;
   cd : integer;
   D :double;
   D :double;
 
 
 begin
 begin
   Result:=TFPReportBarcode.Create(Self);
   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'));
   Result.Encoding:=StringToEncoding(GetProperty(ObjNode,'BarCode','BarType'));
   if GetProperty(ObjNode,'BarCode','Angle')<>'0' then
   if GetProperty(ObjNode,'BarCode','Angle')<>'0' then
     DoLog(SIgnoringAngleOnBarcode);
     DoLog(SIgnoringAngleOnBarcode);