SSRS Report - Removing right side white space - reporting-services

I'm developing an SSRS report in Visual Studio 2012. The report is set up to use landscape orientation. There is a 0.25in margin on the left and no margin on the right. The report is 10.5 inches wide. ConsumeContainerWhitespace is set to True. There are no hidden objects outside of the normal report area.
When I look at the report in print view or actually print it out there is a huge amount of white space on the right side of the report. It's almost like the report is being shrunk and then left justified when printing.
I would love to get this fixed so the report prints the same as it looks in the designer. If anyone has an opinion or some input it would be most welcome. Thank you!

This problem appears when a Windows 10 user has their DPI set to a value that is higher than %100. If DPI is set to %100 then the issue does not occur and no white space is seen when doing a print view or actually printing the report.
This is a common issue with Windows 10 and certain applications including ClickOnce apps like the one I'm using to run the reports. There does not seem to be a way to fix this from within Visual Studio as you can't make an application DPI aware that uses the ClickOnce deployment model.
The following steps will fix a Report temporarily until it is updated and the .exe is overwritten. This fix will also work for other Windows 10 apps, including Chrome, that appear blurry from using a custom DPI over %100. Be aware though that while this fix will fix blurry fonts in a ClickOnce app and white space in an SSRS report it can also disturb control positioning and form size.
Navigate to C:\Users\\AppData\Local\Apps\2.0
Under the 2.0 directory you will see one or more folders that are named with a random set of letters and numbers. Within these directories you must find the folder for the desired application. The folders will usually start with the first 3 or four letters of the application but there can be more than one folder that exists for your application.
Locate the .exe for your application. There may be more than one .exe for your app so apply this fix fix to all of them just to be sure.
Rightclick on the .exe and select properties and click the Compatibility tab.
Check the Disable display scaling on high DPI settings checkbox and click OK
Rerun your application and create a report that opens the report viewer.
Click the Print Layout button. The report should now be displayed with no white space on the right.
Print the report. There should be no extra white space on the right side of the report.
You can also work around the issue by temporarily setting your DPI back to %100 but I think that is a poor solution.

If it is a matrix report, you may also try setting the ConsumeContainerWhiteSpace to true. It is Report level property that you can find under "Other".
or else if it is a tabular report then adjust the margin and width accordingly.
Here the link of the answer:
https://social.msdn.microsoft.com/Forums/Lync/en-US/4a965d5c-0906-4690-a995-35aae594018c/how-to-avoid-empty-space-in-right-side-of-the-ssrs-report?forum=sqlreportingservices

You have me stumped but things I would check:
There isn't a textbox or label or something pushing past the boundary of the expected margin. This causes the report to print like what you are seeing. Just expand the report and make sure everything is actually less than 10.25 inches.
Is your paper size set to letter?

Related

square or Image icon pulling in the List in Paginated Reports

I have not added any image to the list, but when viewing the Paginated Report in Power BI Report Server I can see a broken image link.
Can anyone help me understand the reason why the icon has been showing up and help me get rid of it?
the Simplest Solution that I found was to not use Line.
I was using Line for the formatting purpose and it was mentioned in some article that in older version of report viewer, it search for padding and calls a blank image.
So I replaced Line with Textboxes with making the Top of the Textbox solid. This resolved my issue.

SSRS Report renders differently in Browser to Report Builder

SSRS 2017 Report Builder correctly renders report with drilldown buttons and field data. When rendered in the browser both the drilldown and field data are not visible.
Edge, Chrome and IE all hide the field with the drilldown button on it.
The fault appears to lie with css in .MSRS-RVC .tdResizable overflow:hidden, as if this is unticked (both in Chrome & IE Devtools) the fields are correctly shown, and work normally.
Edge screen grab showing missing fields:
Report Builder Screen shot showing how it should look with drop down buttons
SSRS Version
I have tried editing 'C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\Styles\htmlviewer.css' by adding
.MSRS-RVC .tdResizable {
overflow: visible !important;
}
to the bottom, however this has made no difference (I have restarted SSRS, but have not rebooted the server). Not sure I'm looking in the right place really...
I have modified the 'Can Grow' attribute to True on the field that was not visible, and this has resolved the issue. This should not really have made any difference, as the data is a fixed length and the report was easily wide enough to accommodate it (I even made it much wider to it to see if that was an issue), but that made no difference.
I can only presume that, in the background, the addition of the + button exceeded the row height set. This was working just fine with previous versions of SSRS, so the 2017 version must have a larger image for that button for some reason!
Hope this helps someone else in future!

SSRS Report resizes when rendered in preview mode

I created a report in Visual Studio 2012 and am having issues with the report resizing when I try to print it to pdf or view in print layout. I sent the .rdl to others on my team and they printed it to pdf with no issues.
I tried adjusting the margins, page size, interactive size, as well as turning ConsumeAllwhitespace=true. I also installed all updates and nothing seems to correct the issue. Any suggestions?
Page Size: 8.5"x 11"
Margins: 0.25",0.25",0.25",0.25"
Interactive Size: 8.5"x 11"
Body: 8", 4.15"
Example:
Try to set CanGrow properties to false from the report properties page
Give this a try.
First set your Margins to .5in". I have tested this and this is the smallest your margins can be for your report to print correctly.
Next drag your report right border to just under 7.5" (just to where that half inch hash mark is not visible). Make sure you drag your table content to fill white space.
If you're still having issues in your print dialog, check the PDF print settings. Open a PDF and go to the print dialog. Under Page Size & Handling there are FIT, ACTUAL SIZE, SHRINK, and CUSTOM SCALE. Custom Scale at 100% will guarantee the PDF will print at the correct size. Whatever setting you set here seems to apply to all PDF print dialogs.
If that doesn't work, try using Report Builder. Less frills but always works right!

SSRS - Fixed column scrolling not working when viewed in Browser

I have created a report which has too many columns to display on the screen.
As such I have set the leftmost column as Fixed Data to make the report readable.
When previewing the report through either Visual Studio or Report Builder the freezing of the columns works without problems but when running the same report through Report Manager (no matter which browser I use) the columns do not freeze.
I have tested and get the same issue when freezing header rows and have tested with several new and previously existing reports.
The strange thing is I could swear this has worked correctly in the past.
I had this issue while working with SSRS 2008 and trying to display the report with Internet Explorer 11. I solved the problem on Internet Explorer 11 by going to the Tools option menu (gear icon on the right upper corner of the screen). Click on Compatibility View Settings. On "Add this website" textbox, you should be able to see the domain of your organization, something like "organization.com". Click on Add. Leave "Display intranet sites Compatibility View" and "Use Microsoft compatibility lists" checked as it comes by default. Click on Close. You should see IE changing its appearance now a little bit. Test the report again. Next time you open the web browser, it will have this configuration already set.
It only works if you collapse the show/hide report parameters bar.
Once you have hidden that the fixed rows and columns will work just fine in the browser.

VisualStudio Report Viewer not rendering report body in Chrome

I'm aware that Chrome is not supported - http://msdn.microsoft.com/en-us/library/ms156511.aspx for the Report Viewer.
The solution here has not worked for me
ReportViewer problem in google chrome unfortunately
In our case the report body is blank. I have come across solutions to report height issues and distortion issues in the tool bar but in my case I have yet to get to that stage.
When I navigate to the Report Manager in Chrome I can see my reports [They are not perfect but are at least showing the report body]
http://localhost/Reports_SQLSERVER2008/Pages/Report.aspx? [clipped]
I have 2 questions wrt this issue and I hope someone will be able to shed some light on them.
Why would the report viewer in the Report Manager render the report body in Chrome while the VS 2010 Report viewer control will not. [Leads me to believe that the Viewer can render in Chrome so it may be something I can change].
Is it possible to extend the Report Viewer to at least render the body in Chrome.
All other browsers are fine.
Its an ASP.Net 4.0 web form app using the VS 2010 version of the report viewer on SQL Server 2008 [Moving to 2008 R2 in a short while].
I'm at the stage also where it may be the case that the effort required to resolve this issue cannot be justified. I expect there may be other problems such as parameter selection etc. I'd like to hear your thoughts.
Thanks in advance,
Rgds,
Liam
This is the fix that worked for us but is specific to our implementation.
We have the ReportViewer wrapped in a user control and this report viewer user control is used in 2 places in our Asp.Net app.
On a basic Reports page
On a webparts [Dashboard] page. Each web part contains a Report Viewer user control.
In the markup of the Report Viewer user control we set the height of the Report Viewer to a large number in Pixels. i.e. 1200px.
The report body renders in Chrome on the reports page and on our dashboard page.
As the reports page displays 1 report at a time the height setting is not an issue
In the dashboard we already expose a personalisation property of the webpart containing the report path which allows us to load what ever report we require.
We also expose a new property to store the hieght of the report in the personalisation framework and this in turn sets the height of the report viewer as required by the user.
Liam
I experienced the same problem: a blank body. Only the toolbar was visible. Using browser developer tools, I was able to find out that if I put an height of 1000px on the div that contained the report viewer, the content would be become visible.
Then, I found a property SizeToReportContent, which, if set to True, makes the content render correctly.
This property is available in the ReportViewer control in Microsoft.ReportViewer.WebForms, Version=10.0.0.0. I use local reports.
The fix that worked for me was setting: asyncrendering="False"