Rave 报告中的数字到单词

发布于 2024-07-23 10:06:28 字数 156 浏览 3 评论 0原文

我已经设法按照我想要的方式设计报告,但我无法让 Rave Report 打印/将总计转换为文字。

例如,如果总计为 1,200.00,则应仅打印 一千二百

Rave Report 中可能出现这样的情况吗?

I have managed to design a report the way I want, but I am not able to get Rave Report to print/convert Grand total to Words.

For example, if the grand total is 1,200.00 it should only print One Thousand and Two Hundred.

Is something like this possible in Rave Report?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云巢 2024-07-30 10:06:28

我认为 Rave Reports 没有任何将数字转换为作品的内置功能。 但是,我找到了一篇文章,解释了 如何将数字(货币)转换为About.com 上的文字

查看 NumberToWords 单元中的 ConvertToWords 函数。

您可以在运行时转换数字并将单词传递到报告。

编辑:

您可以像这样将参数传递给您的报告。

  RvProject.Open;
  RvProject.SelectReport('ParametrizedReport',False);
  RvProject.SetParam('Name','Leonel');
  RvProject.Execute;
  RvProject.Close;

请参阅Rave 报告简介一文。

I do not think Rave Reports has any inbuilt function which converts numbers to works. However, I have found a article, which explains How to Convert Numbers (Currency) to Words, on About.com.

Have a look at the ConvertToWords function in the NumberToWords unit.

You could convert the number and pass the words to the report at runtime.

Edit:

You can pass parameters to your reports like this.

  RvProject.Open;
  RvProject.SelectReport('ParametrizedReport',False);
  RvProject.SetParam('Name','Leonel');
  RvProject.Execute;
  RvProject.Close;

Have a look at the Introduction to Rave Reports article.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文