Report Viewer Export Pdf Margin

Posted on

Body width Report Width-Report Left Margin-Report Right Margin. Image viewer that. Aspose.Pdf for.NET. Ssrs pdf margins Because most users export. Forum thread about Margins and units not correct when exporting to PDF in Reporting. Join the conversation now.

Access report marginsWordPdf

Access Report Margins

I'm using the reportviewer control with Visual Studio 2008 in a asp.net 3.5 webforms application. I've created many reports that that render using the reportviewer control rather than running on the server with reporting services. This works great, but my problem is when I export to a pdf there may be a lot of white space that needs removed. For example: A report may be set to 11' for the page height.

Some pages may take the entire 11', but others maybe only 5'. When that happens there is a lot of white space at the end of the page. To make it look nicer I have to open the pdf manually and trim the white space under the document menu. I can't find any way to do this automatically.

Does anybody have a possible solution? To clarify I want to basically 'crop' the PDF and remove the white margins.

Microsoft Pdf Viewer

I'm hoping there's some way to do this in code (C#).