page17 RLBN PageHeader1 ShapeItem5 PageHeader1 ShapeItem4 PageHeader1 ShapeItem7 PageHeader1 ShapeItem8 PageHeader1 TextItem3 PageHeader1 Tank Capacity Table TextItem33 PageHeader1 $D{tanklist.TankName} TextItem37 PageHeader1 $V{ShipNameC} TextItem4 PageHeader1 $V{shipcert} HorizontalLayout2 TextItem9 HorizontalLayout2 * * * * TextItem10 HorizontalLayout2 $V{GB1} TextItem16 HorizontalLayout2 <br> Capacity <br>(m<sup>3</sup>) TextItem17 HorizontalLayout2 <br> Diff<br> (m<sup>3</sup>/cm) TextItem18 HorizontalLayout2 * * * * TextItem19 HorizontalLayout2 * * * * TextItem20 HorizontalLayout2 $V{GB1} TextItem21 HorizontalLayout2 <br> Capacity <br>(m<sup>3</sup>) TextItem22 HorizontalLayout2 <br> Diff<br> (m<sup>3</sup>/cm) TextItem23 HorizontalLayout2 * * * * PageHeader1 RLBN DataBand14 TextItem41 DataBand14 $D{tanklist.TankNo} RLBN tanklist SubDetailBand15 TextItem34 SubDetailBand15 * TextItem35 SubDetailBand15 * HorizontalLayout1 TextItem36 HorizontalLayout1 * TextItem38 HorizontalLayout1 $V{RLBG1} TextItem39 HorizontalLayout1 $S{numberFormat($D{subrlbtable.capacity}/1000.0,'f',3)} TextItem40 HorizontalLayout1 $S{numberFormat($D{subrlbtable.diff}/1000.0,'f',3)} TextItem42 HorizontalLayout1 * SubDetailBand15 RLBN DataBand14 subrlbtable PageFooter15 ShapeItem42 PageFooter15 ShapeItem43 PageFooter15 HorizontalLayout3 TextItem5 HorizontalLayout3 $V{ZRQ} TextItem6 HorizontalLayout3 -$V{#PAGE}- TextItem7 HorizontalLayout3 $V{ZRQEN} PageFooter15 RLBN SubDetailFooterBand1 HorizontalLayout24 TextItem8 HorizontalLayout24 * TextItem11 HorizontalLayout24 - TextItem12 HorizontalLayout24 - TextItem13 HorizontalLayout24 - TextItem14 HorizontalLayout24 - TextItem15 HorizontalLayout24 * SubDetailFooterBand1 RLBN SubDetailBand15 datasources test QSQLITE C:/Users/ThinkPad/Desktop/test.db tanklist select * from TankList test subrlbtable select * from RLBTable where TankNo=$D{tanklist.TankNo} test tanklist // ******************************************** RLB var RLBliness=0; RLBN_DataBand14.beforeRender.connect(RLBAA) RLBN_SubDetailBand15.beforeRender.connect(RLBBB) function RLBAA(){ RLBN_TextItem41.isVisible=false; } // for each 5rows in subDetailBand15 will print a row " * *" as a gap // the height of row for data and gap is set 4mm // subDetailBand height is 216mm (50 rows data +4 rows gap) function RLBBB(){ RLBliness=line("SubDetailBand15"); var gapp=(RLBliness%10==0)&&(RLBliness%50!=0); RLBN_TextItem35.isVisible=gapp; RLBN_TextItem34.isVisible=gapp; } // end mark for each tank , if the data of last one is just 100 rows(just 1 page) then no need print the data end mark // if the last data is in the middle will need print the data end mark function RLBfooter(){ var footerv=(RLBliness%100!=0); RLBN_TextItem24.isVisible=footerv; RLBN_TextItem26.isVisible=footerv; RLBN_TextItem27.isVisible=footerv; RLBN_TextItem28.isVisible=footerv; RLBN_TextItem29.isVisible=footerv; }