tsrplatelayer
7th March 2015, 13:45
In a QScript module this works
page. drawText ( ps. x + fr.col_offset, y, fr.col_width, h, CReportPage.AlignLeft | CReportPage.AlignVCenter, fr.txttoprint );
However I need to be able to build the alignment requirement sperately, much simplified
fr.valign = CReportPage.AlignVCenter;
fr.halign = CReportPage.Alignleft;
page. drawText ( ps. x + fr.col_offset, y, fr.col_width, h, fr.valign | fr.halign, fr.txttoprint );
and this doesn't work.:confused:
Please can someone advise how I can get it to work.
Many Thanks
Allan
page. drawText ( ps. x + fr.col_offset, y, fr.col_width, h, CReportPage.AlignLeft | CReportPage.AlignVCenter, fr.txttoprint );
However I need to be able to build the alignment requirement sperately, much simplified
fr.valign = CReportPage.AlignVCenter;
fr.halign = CReportPage.Alignleft;
page. drawText ( ps. x + fr.col_offset, y, fr.col_width, h, fr.valign | fr.halign, fr.txttoprint );
and this doesn't work.:confused:
Please can someone advise how I can get it to work.
Many Thanks
Allan