1

This is the design of my report:

enter image description here

But when I click a button on runtime to preview the report that is about to be saved as PDF file it looks very different!

enter image description here

However when I download the file as PDF it looks just the way I designed it:

enter image description here

How do I fix the preview design?

R. Richards
  • 24,603
  • 10
  • 64
  • 64

1 Answers1

2

White-space is very finicky in SSRS and you are experiencing this different behavior because you are using two different renderers and they are just flat out behaving a bit different. Looking at your design screen, it appears that you have just floating textboxes and white-space underneath between the last content and the footer. HTML rendering can be tricked into rendering that white-space before the footer by placing empty content (textbox or rectangle) in that space like so:

enter image description here

Red box: I would try inserting a blank rectangle off to the side, but the whole height, first.

Blue box: The next option would be to wrap the whole page contents into a rectangle.

It's actually a bit funny because most people are stuck trying to get rid of white-space in their HTML rendered report and you actually have the opposite issue here.

Daniel
  • 1,364
  • 1
  • 19
  • 34
  • Thank you for responding. I'll keep you updated. I'm very new to SSRS. Btw, why are there little boxes in that HTML version? It's taking up space that ruined the design – Elbert John Felipe Aug 02 '17 at 01:32
  • I also found out that it looks more accurate in Internet Explorer. And only in Chrome those little boxes appear. I tested it in Firefox, IE, and Chrome – Elbert John Felipe Aug 02 '17 at 02:05
  • I've seen lots of differences between Chrome/Firefox and IE for various reports. I don't know what is causing the specific boxes in this case though. I do find that IE works the best though since it's the native browser for MS. – Daniel Aug 02 '17 at 05:12
  • I somehow solved the "Chrome little box" issue: https://stackoverflow.com/questions/45454067/tiny-boxes-appear-when-rendering-ssrs-reports-in-html-viewed-from-chrome?noredirect=1#comment77873976_45454067 – Elbert John Felipe Aug 02 '17 at 09:31