如何在水晶报告图表中显示月份名称? [英] How to show month name in crystal report chart?

查看:184
本文介绍了如何在水晶报告图表中显示月份名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Crystal Report 2008,在折线图中我想显示月份名称,例如Jan Feb March on x-Axes in report。

解决方案

执行此操作的最佳方法是创建一个单独的公式字段,公式

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

在您的图表中使用。



这只是从这里的日期拉出月份。如果您需要更改此任何,我相信您可以通过右键单击更改格式,或者如果它显示01,02,03等等。您可以在您的公式中使用一系列IF语句,例如

 如果{YourDateFORMULA} =01THEN January 

等等,虽然这不应该需要,因为原始公式中的MonthName函数应该覆盖这个。


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?

解决方案

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.

这篇关于如何在水晶报告图表中显示月份名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆