Hi,in .NET version I could control the number format setting it to Custom and Format Mask= {myVariableFormat} then from the code I could set report variable myVariableFormat to desired values like #0.0000 or #0.00...
Code: Select all
Dim wRp As New StiReport
wRp("myVariableFormat") = "#0.00"
...
the same I've tried in Js version
....
Code: Select all
report.loadFile('reports/myreport.mrt');
report.dictionary.variables.getByName("myVariableFormat").valueObject = "#0.00";
but in preview instead of formated value I see the text: {myVariableFormat}
any clue?
thanks