AddCustomMetric Text align

Is there a way to left align the text then the below option? I can live with this but theres gottta be a better way.

trade.AddCustomMetric( "Instr_Name_Reg", StrFormat("%-" + strlen(instr_Name_Reg) +0 + "s", instr_Name_Reg));	

@Tomasz Any suggestion wizard? :grinning:

Generally speaking, alignment by adding spaces is not viable idea because majority of fonts are variable-spaced, so each letter has different width and width of space will almost never be equal to width of any letter. Only mono-space fonts like Courier can be aligned that way, but monospace font is not used in the report.

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.