We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Issue with background image width when save a RDLC-Report as PDF


i created a RDLC-Report. The report will be shown as expected in the report viewer.
But when i export the report as PDF (with ReportWriter or ReportViewer) the width of the background images are not correct.

Version: 15.3460.0.26


         ReportWriter writer = new ReportWriter();
            writer.ReportProcessingMode = ProcessingMode.Local;
            writer.PageSettings = new PageSettings();
            writer.PageSettings.TopMargin = 0;
            writer.PageSettings.LeftMargin = 0;
            writer.PageSettings.RightMargin = 0;
            writer.PageSettings.BottomMargin = 0;
            writer.Save(path, WriterFormat.PDF);

Thank you very much!

Attachment: issu_88b298b6.zip

1 Reply

MM Mageshyadav M Syncfusion Team January 8, 2019 02:27 AM

Hi Dominik, 
Thanks for your interest in our Syncfusion products. 
In Syncfusion Report Viewer, white spaces will be preserved in the report body by default. When the white space extends the body size or beyond the width of the report during design then that extra spaces will be loaded in report preview. So can you please adjust your margins, page width and body width as shown in below snap to avoid the mentioned extra spaces issue at your end. 
Body Width: 
Page Width and Margin: 
Output snap: 
Please find the below documentation link for your reference. 
If the issue still persists, then can you please share your RDLC file to validate the mentioned problem at our end. 

Live Chat Icon For mobile
Up arrow icon