visual studio 2005 - Why does VS2005 ReportViewer adds page breaks when setting up the margins? -


I am using Report Viewer controls included in Visual Studio 2005 and something strange is happening; When I set the margin on the report and I run the application, the Report Viewer adds page breaks after each content page, so if I have 2 content pages I have 4 pages, 2 of them are blank pages.

If I set the margins of the report as zero then the report displays ok, but of course this margin does not look good without (and will not be properly printed).

I'm pretty sure that the material is not wrapping or something like that I can deliberately design the tables to fit in 6 inches, 6 inches plus 2 (for each side margin) 8 and I still have half Inch Do not mess the space because it is in the shape of the letter which is 8.5 "x 11"

Does anyone have such behavior?

Thanks in advance.

Solution found, it has been found that the body should not be broader than the report size, for example If you have a standard letter page: Should be 8.5 "x 11" compared to the body. I'm more than 8.5 escapes, special note if you have margins, because you have to reduce those inches, then give me an inch The difference margin should be given so that the right should be 2 inches on the left:

8.5 - 2 = 6.5

So if If you plan to report a letter with one inch margin, make sure that the body is maximum 6.5 and it will fit.

Very obvious? But I did not find it in the beginning because the designer of the report viewer has no ruler for the beginning of the body, only for the report.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -