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

Comments

5/12/2010 8:55:12 AM

Agustina Sappah

Hi. I just noticed that your blog looks like it has a formatting issue at the very bottom of your web page. I'm not positive if everyone is seeing this same bugginess when browsing your website? I am employing a completely different browser than most people referred to as Opera, so that is what might be causing it? I just wanted to let you know. Thanks for posting some great postings.

Agustina Sappah United States

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

<<  September 2017  >>
MoTuWeThFrSaSu
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

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