In a QScript module this works
Qt Code:
  1. page. drawText ( ps. x + fr.col_offset, y, fr.col_width, h, CReportPage.AlignLeft | CReportPage.AlignVCenter, fr.txttoprint );
To copy to clipboard, switch view to plain text mode 
However I need to be able to build the alignment requirement sperately, much simplified
Qt Code:
  1. fr.valign = CReportPage.AlignVCenter;
  2. fr.halign = CReportPage.Alignleft;
  3. page. drawText ( ps. x + fr.col_offset, y, fr.col_width, h, fr.valign | fr.halign, fr.txttoprint );
To copy to clipboard, switch view to plain text mode 
and this doesn't work.

Please can someone advise how I can get it to work.

Many Thanks

Allan