Margins in ReportViewer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using the WebForms.ReportViewer when I export to PDF, the margins of the
report are too large. How can I change the margins of my report to make
better use of the printed page space?
 
Hi Herb,

As for the report margin of ASP.NET Webform ReportViewer displayed report,
are you using Server Report from SQL Server reporting service or local
client report(rdlc file) in project?

Based on my experience, for the Reporting Service report, the margins are
configured through the report page's layout setting and are stored in RDL
file(for server report) or RDLC file(for visual studio developed client
report). Whenever, you're designing a report, in the design-time "layout"
view, you can configure the "margins" for the report through the following
steps:

1. click on the background of the report

2. In the property window, locate the "Layout" category and you can find
the "Margins" setting

After you change this margins setting, it will reflect to the exported PDF
and TIFF report output. For normal HTML output, margin is not displayed.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.
 
I am using the rdlc report within the project. When in Design mode of the
rdlc, I have a Body section. The Properties for the Body do not have a Layout
option. Where do I find the Layout property?
 
Nebermind, I found it. When in design mode there is a square in the upper
left-hand corner. If I click it, I get Report Properties. There still isn't a
"Layout" property, but there are "Margins" properties.

Thanks,
Herb
 
Hi Herb,

Yes, for the RDLC client report, the design-time surface is the same as the
RDL server report designer. And the "Layout" is not a property, it is a
category which include those properties associate with layout designing.
For example, the "Margins", "PageSize", "InteractiveSize" ..

If you have any further question or meet anything else need help, please
feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top