How to show month name in crystal report chart?

£可爱£侵袭症+ 提交于 2019-12-23 20:50:24

问题


I am using Crystal Report 2008, in Line Chart I want to show month name like Jan Feb March on x-Axes in report. How do I show months on x-Axes?


回答1:


The best way to do this is create a separate formula field with the following formula

cstr(monthname(month({YourDateFieldHere})))

Use this in your chart.

This simply pulls the month from the date here. If you require to change this any, I'm sure you can change the format by right clicking, or alternatively if it shows up 01, 02, 03 ect.. you could use a series of IF statements in your formula, for example

IF {YourDateFORMULA} = "01" THEN January

And so on, although this shouldn't be needed as the MonthName function in the original formula should cover this.



来源:https://stackoverflow.com/questions/18402502/how-to-show-month-name-in-crystal-report-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!