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

<<  January 2018  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234

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 2018

Sign in