PDF: Formatting is getting partially mixed up

Stimulsoft Reports.NET discussion
Post Reply
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

PDF: Formatting is getting partially mixed up

Post by John »

Hallo Support,

we've been generating dynamic reports using c# together with Stimulsoft.Report.dll and Stimulsoft.Base.dll for quite a while now and everything has been fine (and still is, apart from this 1 problem here). We're now setting up a new live web server and are testing our product together with the reporting part. Here, we have come across an unexpected formatting problem in that the formatting is becoming partially messed up. Here below are 2 excerpts and in the zip I have attached a whole pdf file which was dynamically generated in the code. We have copied all the dlls used for reporting directly from the existing live web server where everything is working fine. There is nothing to be installed as we are only using individual Stimulsoft dlls and there are no config files where any setting could be missing. The only difference is that the new server has Windows 2008 R2 and the existing server has Windows 2008.

Have you seen this type of text/image displacement before and do you have any idea what might be causing it?

Many thanks and best regards,

John Kitching
Example 1
Example 1
Ex1.jpg (26.02 KiB) Viewed 1604 times
Example 2
Example 2
Ex2.jpg (23.98 KiB) Viewed 1604 times
Attachments
Report.zip
Full file
(1.62 MiB) Downloaded 339 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF: Formatting is getting partially mixed up

Post by HighAley »

Hello.

Could you save a rendered report (mdc-file) before exporting it on the new server and send it to us?

Thank you.
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

PDF: Formatting is getting partially mixed up

Post by John »

Hallo Aleksey,

here is the file you requested.

Best regards,

John Kitching
Attachments
MDC-File.zip
Report in MDC-Format
(1.44 MiB) Downloaded 175 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF: Formatting is getting partially mixed up

Post by HighAley »

Hello.

It seems that the problem isn't in the pdf export. The report file that you send us is already corrupted.
Could you send us a sample project which reproduces the issue for analysis.

Thank you.
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Re: PDF: Formatting is getting partially mixed up

Post by John »

Hallo Aleksey,

I've found the solution to the problem. It had to be some simple difference because the web servers are set up the same. It turned out there was a difference in the locale settings (on the control panel). On the original live server everything is set to Germany and German decimal separator etc. On the new server it was a mix of US-English and German. For this reason the widths were presumably not being interpreted correctly. I tried it on my dev. machine with Windows 7 by changing the decimal separator and 1000's separator and was able to reproduce the problem.
I'm not quite sure which part of the code was unable to interpret the 'double' values correctly. I added some extra logging to my application and it looked as though the widths for table columns were being calculated correctly.

Best regards,

John Kitching
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF: Formatting is getting partially mixed up

Post by HighAley »

Hello.

It's a good news. Let us know if you will need any help.

Thank you.
Post Reply