Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Format Units on ReportViewer chart axis

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy - 22 Aug 2007 15:05 GMT
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.
Ladislav Mrnka - 22 Aug 2007 17:02 GMT
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

> 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
[quoted text clipped - 10 lines]
>
> Can anyone suggest any way to solve this? Hope this post makes sense.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.