Click here to Skip to main content
13,904,127 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


Posted 23 Jul 2010
Licenced CPOL

Unwanted Page Breaks in ReportViewer

, 23 Jul 2010
Rate this:
Please Sign up or sign in to vote.
One cause and solution for unwanted page breaks in the ReportViewer control
I needed to create a dynamic PDF document based on user selections for a system I created this summer. Rather than use a 3rd party tool and learn a new API, I decided to try the ReportViewer control since it had the capability of exporting to PDF (and Excel).

It worked very well except for one thing: When rendering to PDF, sporadic and unwanted page breaks appeared in the document. It took a while to stumble on the cause and cure.

I had inadvertently placed two static text fields on the control so that one overlapped the other by just a bit. In the PDF output, there were extra page breaks that made the document look wrong.

Move the text fields so they abutted to each other, and did NOT overlap, solved the problem.

I hope someone finds this useful.

Steve Wellens


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Steve Wellens
EndWell Software, Inc.
United States United States
I am an independent contractor/consultant working in the Twin Cities area in Minnesota. I work in .Net, Asp.Net, C#, C++, XML, SQL, Windows Forms, HTML, CSS, etc., etc., etc.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web02 | 2.8.190306.1 | Last Updated 23 Jul 2010
Article Copyright 2010 by Steve Wellens
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid