To format money values in the legends by respecting the formatting of the regional options ?
Starting from a page ASP and vbScript how to force TChart (V7.0) so that it formate in the legends of the money values by respecting the parameters of regional options of Windows?
US format : 1,000,000.00
French format : 1 000 000,00
I tried to pass the values by using the vbScript instruction formatnumber () :
Example:
but does that cause a TChart error!? TChart does not seem by supporting the preformatting of the values.…
xValue = 1000000
xLib = "my value"
xColor = RGB (71,250,52)
Set Chart = CreateObject ("TeeChart.TChart")
…
Chart .AddSeries (X)
…
Chart.Series (0) .Add formatnumber (xValue, 2), xLib, xColor
…
There is well a Legend.TextStyle property but it is impossible to act on the presentation of the values themselves by respecting the configured options of the regional parameters!!!
You could indicate the procedure to be followed to me to force TChart to use the regional parameters.
Cordially,