String formatting problem in PDF Service
Posted: Thu May 26, 2016 8:08 am
Hi,
I use a specific formatting for prices in my reports,
In Windows Server 2003 and Window 8.1 it works fine, either in HTML 5 output or PDF export. But in Windows Server 2012, I'm facing formatting problem in PDF output.
It shows the number in reverse, for example `53000` will be `000,53`. I've tried removing `Persian` function, but I still have the problem.
Server's region format is on `Persian` as is for other computers that I have tried this report without any problem. But I don't think there's any problem at those settings since I have hard-coded the separator.
I should note that this problem doesn't exist in HTML output.
Thanks for your attention
I use a specific formatting for prices in my reports,
Code: Select all
{IIF(Floor(DataSource2.TotalPrice)==DataSource2.TotalPrice,
Persian(Floor(DataSource2.TotalPrice).ToString("#,##0")),
Persian(Math.Round(DataSource2.TotalPrice, 2).ToString("#,##.00"))
)}
Code: Select all
......
report.Render(false);
MemoryStream stream = new MemoryStream();
StiPdfExportService service = new StiPdfExportService();
service.ExportPdf(report, stream, setting);
Server's region format is on `Persian` as is for other computers that I have tried this report without any problem. But I don't think there's any problem at those settings since I have hard-coded the separator.
I should note that this problem doesn't exist in HTML output.
Thanks for your attention