Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Currency Euro sign

$
0
0
enclose the currency symbol in double quote (")
like this:
a. if u enclosed the format pattern in double quote, escape it by adding backslash before the double quote that enclosed ur format symbol
$objPHPExcel->getActiveSheet()->getStyle('G14')->getNumberFormat()->setFormatCode(" \"€\" #,##0.00"); 
b. if u enclosed the format pattern in single quote
$objPHPExcel->getActiveSheet()->getStyle('G14')->getNumberFormat()->setFormatCode(' "€" #,##0.00'); 
whatever option above u chose, the result will be like this: € 3,999.22

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>