string Bold on AX 2009 sentence

758 views Asked by At

I would like to print the following sentence in BOLD in an AX 2009 report.

_ret += element.design().lookupLabel(literalstr("aaa")) + ": " +  strfmt("%1 ", CustPackingSlipTrans.xxx) + "\n";

Help me please?

2

There are 2 answers

0
CatchPokemon On

Maybe try this:

section.addControl(custTableId, fieldnum(Address, Name)).AOTsetProperties('PROPERTIES\n LeftMargin #10\n Bold #Bold\n FontSize #14\n Top #1\n ENDPROPERTIES\n');

Through this code you are able to set the properties of a Reportsection.

Source:

http://blogs.msdn.com/b/davidferguson/archive/2007/06/01/creating-a-report-in-x-code-and-running.aspx

0
Neti On

May be create control in report. Set BOLD in properties of control and display in control.