如何使用代码更改Crystal Report字段 [英] how do change crystal report field with code
本文介绍了如何使用代码更改Crystal Report字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
在Crystal报表中,我的报表中有一列是格鲁吉亚日期...
我想将其转换为波斯日期...
如何访问此字段进行转换?
请帮助我..
非常感谢
hi all
In Crystal report , i have a column in my report that is Georgian Date ...
I Want To Convert It To Persian Date ...
How Do I Access this field To Convert ?
Please Help Me ..
Thnaks A Lot
推荐答案
如果该日期列来自数据库,则可以执行以下操作
If that date column is coming from a database, you can do something like this
recordSelection.AppendFormat(
"{{table_name.sale_date}} >= {0} and {{table_name.sale_date}} <= {1}",
startDate.ToCrystalString(),
endDate.ToCrystalString());
.ToCrystalString()是一个自定义方法,我已将sql datetime更改为crystal date time以供使用.您可以制作自己的方法来转换为波斯日期.
让我知道您是否需要进一步的帮助.
.ToCrystalString() is a custom method I have used to change the sql datetime to crystal date time for my use. You can make a method of your own to convert to persian date.
Let me know if you need further assistance.
这篇关于如何使用代码更改Crystal Report字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文