String formatting problem in PDF Service

Stimulsoft Reports.NET discussion
Post Reply
beginner
Posts: 36
Joined: Thu Jun 18, 2015 5:01 am

String formatting problem in PDF Service

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: String formatting problem in PDF Service

Post 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.
beginner
Posts: 36
Joined: Thu Jun 18, 2015 5:01 am

Re: String formatting problem in PDF Service

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: String formatting problem in PDF Service

Post 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.
Post Reply