ReportViewer Control: Fit to Page

by jrose 5/11/2010 9:09:00 AM

The ReportViewer control's export functionality can be temperamental.

 

In order to guarantee that the exported file will not be wider than a page, use the following formula:

Body.Size.Width + Report.Margins.Left + Report.Margins.Right <= Report.PageSize.Width

 

(since, in our case, InteractiveSize and PageSize are the same, this means InteractiveSize can be substituted in PageSize above)

Tags: , , ,

.NET | VB.NET

ReportViewer Horizontal Scrollbar not appearing

by rBellantoni 9/24/2009 7:05:00 AM

Sometimes the horizontal scrollbar renders so to bring it back into view you need to add this style:

 

ReportViewer.Style.Add("margin-bottom", "26px")

Then it will show up!

Tags: , , , ,

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  November 2017  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign in