|
|
|
start date: Wed, 22 Aug 2007 07:05:17 -0700,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
Andy
|
|
2
Ladislav Mrnka
|
Format Units on ReportViewer chart axis
Hi there, I have an asp.net 2 application, and created a local report
using MS ReportViewer. The report consists of a line chart, with date
intervals on the x axis, and amounts of money in the y axis.
It all works fine, but the amounts of money are high (in millions),
and so the y axis shows increments of 10000000 and has amounts showing
on the grid lines of 10000000, 20000000, 30000000, 40000000 etc.
I would like to format these to a currency amount, or at least have
some commas to make it more readable, but if I try using eg
=FormatCurrency(Fields!MyAmount.Value) the chart is not output
correctly.
Can anyone suggest any way to solve this? Hope this post makes sense.
Date:Wed, 22 Aug 2007 07:05:17 -0700
Author:
|
RE: Format Units on ReportViewer chart axis
Hi Andy,
I used Reporting Services only once and I have never used charts. But
tables allow to set up Format property for each column. I used it with Data
Time objects and it worked fine. You can set up this format in .net manner.
Just be sure your data are returning from query in correct type - currency =
Money in sql server otherwise formating will not occure (at least this
happend with datetime).
Regards,
Ladislav
"Andy" wrote:
> Hi there, I have an asp.net 2 application, and created a local report
> using MS ReportViewer. The report consists of a line chart, with date
> intervals on the x axis, and amounts of money in the y axis.
>
> It all works fine, but the amounts of money are high (in millions),
> and so the y axis shows increments of 10000000 and has amounts showing
> on the grid lines of 10000000, 20000000, 30000000, 40000000 etc.
>
> I would like to format these to a currency amount, or at least have
> some commas to make it more readable, but if I try using eg
> =FormatCurrency(Fields!MyAmount.Value) the chart is not output
> correctly.
>
> Can anyone suggest any way to solve this? Hope this post makes sense.
>
>
Date:Wed, 22 Aug 2007 09:02:06 -0700
Author:
|
|
|