Page 1 of 1

String formatting problem in PDF Service

Posted: Thu May 26, 2016 8:08 am
by beginner
Hi,

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"))
)}
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.

Code: Select all

             ......
            report.Render(false);

            MemoryStream stream = new MemoryStream();
            StiPdfExportService service = new StiPdfExportService();
            service.ExportPdf(report, stream, setting);
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

Re: String formatting problem in PDF Service

Posted: Fri May 27, 2016 11:32 am
by Alex K.
Hello,

We need some time for checking the issue on Windows Server 2012. We will let you know about the result.

Thank you.

Re: String formatting problem in PDF Service

Posted: Thu Jun 02, 2016 7:54 am
by beginner
Hi Aleksey,


I should note that I just installed my app on another Windows Server 2012 and everything works fine, therefore above mentioned problem should be specific to that particular server and it's settings.


Thanks for your attention.

Re: String formatting problem in PDF Service

Posted: Fri Jun 03, 2016 9:51 am
by HighAley
Hello.

Sorry, we didn't meet such issue before.
Did you install all latest updates on Windows Server?

Please, let us know if you find the reason of the issue.

Thank you.