Convert currency to words in English and Tranditional Chinese

Stimulsoft Reports.PHP discussion
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Convert currency to words in English and Tranditional Chinese

Post by Super Bread »

Hi,

Please help.

1. I want to convert this currency (1200.34) to "One thousand two hundred dollars and thirty four cents". How can I do that? I set the follows in my report.
{ToCurrencyWords(1200.34,true,true)}
But, it showed "One thousand two hundred dollars and zero cents". Is it bug?

2. Can this function "ToCurrencyWords" convert in Tranditional Chinese word?

3. How can set this format from 1200.3 to 1,200.30 (with group separator "," and 2 decimal places) in Expression?

4. I cannot find the details examples for above functions and other functions in the report designer. How can I get the details examples?

Thanks.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Convert currency to words in English and Tranditional Chinese

Post by Vladimir »

Hello,

1. Yes, it is an error. We will try to fix it in the next prerelease build.

2. Unfortunately, "ToCurrencyWords" function not available for the Tranditional Chinese.

3. You can use this expression: {(1200.3).ToString("#,###.00")}

4. Description of all functions can be found in the documentation.

Thank you.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Convert currency to words in English and Tranditional Chinese

Post by Super Bread »

Hello,

3. It does not work.
{(1200.3).ToString("#,###.00")} --> It shows "1200.3". Is it another bug?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Convert currency to words in English and Tranditional Chinese

Post by Vladimir »

Hello,

Please update to the latest prerelease build.

Thank you.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Convert currency to words in English and Tranditional Chinese

Post by Super Bread »

Hello,

After updated to the latest prerelease build (Stimulsoft Reports.Fx for PHP 2012.06.22 Trial ), it showed error when running from php.


1. Error: "Warning: gzuncompress() [function.gzuncompress]: data error "

2. And got the error# 1088.

Please help. Thanks.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Convert currency to words in English and Tranditional Chinese

Post by Vladimir »

Hello,

Please try to update all files (PHP and SWF) from the archive, as well as clear the browser cache. If this does not help - try to disable data compression. To do this, set the $enable_compression property to false, it is in the index.php file.

Thank you.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Convert currency to words in English and Tranditional Chinese

Post by Super Bread »

Hello,

I already updated all files (PHP and SWF) from the archieve and also clear the browser cache. Then, set "$enable_compression = false;" in the index.php file. But it showed "Connection error: Data not found".

Thanks.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Convert currency to words in English and Tranditional Chinese

Post by Vladimir »

Hello,

Please do the following steps:

1. In the 'config.xml' file the EnableDataLogger option set to True in Connection section.
2. Run the report viewer (or report designer) with report.
3. Click on the 'Save Log File' button in the viewer's save menu (or designer's main menu).
4. Save the text file and send it to us for analysis.

Thank you.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Convert currency to words in English and Tranditional Chinese

Post by Super Bread »

Hello,

After set to True in EnableDataLogger and run the report. I cannot find 'Save Log File' button in the viewer's save menu. Am I missing the steps? Please help. Thanks.
Super Bread
Posts: 36
Joined: Mon Aug 08, 2011 12:51 am

Convert currency to words in English and Tranditional Chinese

Post by Super Bread »

Hello,

The log file is attached. Thanks.
Attachments
1972.log-20120627.txt
(118.55 KiB) Downloaded 403 times
Post Reply