DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us