Your report's Body's Width, Plus the Report's Left Margin, Plus the Report's Right Margin, MUST be smaller than or equal to the Report's PageSize's Width! When the pdf file is rendered via the ReportViewer's built-in export function, the width and height of each "page" within the pdf will be determined by the width and height in the report's PageSize attribute (you could override this if you used your own custom code for the pdf rendering).Īs for the margins, they specify how much space MUST be left blank and unprintable between the printable area reserved for your report and the edge of the page. The Margins attribute can be expanded for the left/right/top/bottom.īasically, the pdf export works out of the PageSize (though I generally try to keep Interactive and Page size equal). Under the "Layout" category of the properties, you will see 3 different options:Įach of those Size attributes can be expanded to show the Width and Height. Next, click on an empty area of the report (outside the header, body, and footer basically the gray area around the design), then hit F4 to view the properties panel. So the width is what will, usually, play the most important role. As for the height, the system generally knows that it can grow or shrink as necessary, unless you have specified otherwise within your controls therein. Even if you have white space all over, the page knows that it needs to keep it as a printable area. The width you see here represents the width that the body of your report requires as printable area. This can be expanded for the width and height. When you are editing the rdlc file in design mode, firstly click on an empty part of the BODY area of your design. The answer is pretty similar to what Dugan said, but it's not always just the margins.
0 Comments
Leave a Reply. |