SSRS 2016 - Change CSS of Report Server - sql

I want to change the css file of my reports.
How can I do it with reporting services 2016?
The old methods didn't work for me (add style sheet file or make changes at the HtmlViewer file).

To just hide the headers and the option to navigate back to home change the link address to the report from
http://Reportserver/Reports_Instance/report/Folder/Report
to
http://Reportserver/ReportServer_Instance/Pages/ReportViewer.aspx?/Folder/Report
So you only get to see the report

To change the style of your report, it is intuitive. You can select the colors you want to include, chart borders, chart styles, etc directly on the GUI. I highly suggest that you rephrase your question to be more specific. Then, we can help you get the answer you are looking for.

Related

How to export Gantt view to pdf?

I am using openerp 6.1 and I have created a project in which I have my phases and tasks in each phase.
I would like to print the gantt chart but there is no option there. Please advice how I can get this done.
Their is default way out to have it on PDf but what you can always do is prepare one report to plot that report on pdf like Burn-down chart you have on project_scrum module, Using Pychart and reportlib engine, and you can produce effective result, or you can take moden web browser screen shot utility at the end.
Thank You
I agree, there really should be print / PDF buttons for every page to save the current view :(
There are 2 workaround options I can think of:
Use reporting to generate your own report of the chart (I would suggest using the webkit_report)
Print the HTML view to PDF.. ie, capture the html code of the view and print it, or send to another system to convert to PDF (using wkhtmltopdf). I have an example here that might help you: http://timothysolomon.co.za/work/openerp-printing-with-javascript/
Good luck, maybe in version 7 they will have this by default.

SSRS 2008 -- Data Missing when run in BIDS mode

I am having a really weird issue with a report built in SSRS 2008. When the report is set to export as a PDF, all data fields are showing up properly on each page as intended. However when the report is run in BIDS mode or exported to Word/CSV/Excel formats there are several data fields that show up as a blank.
One weird thing Ive noticed is that if I set the data fields that are missing as First(Fields!datafield.value) instead of Fields!Datafield.value then they will show up.
Has anyone ever seen any instances of this happening or have any ideas how to correct this issue without redoing the report? I can include the .rdl file if that would help.
Thanks!
I've seen something similar when coloring fonts. The pdf export didn't pick up all the formatting. Check to make sure that your visibility and color settings for the fields in question are what you expect. Try setting those all to default to see if that fixes the issue.

Formatting multiple fields at once in RDL or RDLC

Over the years, I've been working with SSRS reports (RDL and RDLC) but I have not found a solution to this problem: Let's say I have x number of fields in my report. I would like to highlight all the fields at once and modify the background-color, foreground-color, font and font size, for all fields at the same time.
Is this possible? I've searched on the web and I've experimented with the report designer, and I have not found anything that allows me to do this (other than modifying the underlying XML directly, which is not an option).
Select all the controls in the designer and press F4 for properties. Change the background color, font etc.
It is possible to just select all fields and go to properties->format->paste from another fields format. That's it.

SQL Reporting Services: Why does my report shrink when it's emailed?

I created a simple report and uploaded it to my report server. It looks correct on the report server, but when I set up an email subscription, the report is much narrower than it is supposed to be.
Here is what the report looks like in the designer. It looks similar when I view it on the report server: [http://img58.imageshack.us/img58/4893/designqj3.png]
Here is what the email looks like: [http://img58.imageshack.us/img58/9297/emailmy8.png]
Does anyone know why this is happening?
This issue is fixed in SQL Server 2005 SP3 (it is part of cumulitive update package build 3161)
Problem issue described below.
http://support.microsoft.com/kb/935399
Basically Full Outlook 2007 Client Uses MS Word HTML Rendering Engine (Which Makes Web Archive Report Looked Jacked Up).
NOTE: Web Outlook 2007 Client Uses IE HTML Rendering Engine (Which makes Web Archive Report Look Okay).
We have installed the patch on DB housing Reporting Services and it does fix the issue. Emails look all nice and fancy now.
I notice that the screenshots show Outlook 2007. Perhaps you're not aware that Microsoft somewhat hobbled the HTML capabilities of Outlook in 2007, and now it uses the Word HTML engine, and not the more advanced Internet Explorer one? Might this explain the lacklustre appearance?
http://www.sitepoint.com/blogs/2007/01/10/microsoft-breaks-html-email-rendering-in-outlook/
I got around this problem by doing the
following:
Add a Page Header to the report
Add a line to the page header. Set the width of the line to the
desired page width.
Set the line colour to white (eg to hide the line)
Hope this helps someone else,
Following on from girlC0d3r's solution, images aren't always guaranteed to be shown in an email.
A better solution to widening the report to prevent the content from wrapping is to have a long unbroken string of characters with no whitespace.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
By giving the text the same color as the background of the email (e.g. white) they'll widen the report and be invisible to the user.
I don't see anything but my first guess is that the fonts are vastly different. The designer has one font and the email is a flat, no-frills kind of thing with a simple font. Without concrete examples, this is just a guess.
I don't think it's a font thing, because the text is being wrapped a lot, and it looks about the same size.
The images show in my preview, but not in the final post. So, here are links to them.
Report in the designer: [http://img58.imageshack.us/img58/4893/designqj3.png]
Email result: [http://img58.imageshack.us/img58/9297/emailmy8.png]
What report output format did you specify for the scheduled job? It seems to me you used HTML, which will autoscale depending on the output browser (HTML adapts).
If having the same layout is important then use PDF as the output format. Then, if the user wants to print the report you know exactly what it will look like and that it will fit nicely on the page.
Can you try a different format? pdf or xls maybe. In my experience web archive looks goofy. Don't know why.
Yeah, I'm using HTML. I would prefer to stick with that, because the users can just read it in their mail clients. PDF or XLS would require them to open an attachment.
I know that the HTML resizes itself to fit the browser, and that's a good thing. The problem I would like to fix is the wasted space - in the email client, the HTML shrinks too much.
I got around this problem by doing the following:
Add a Page Header to the report
Add a line to the page header. Set the width of the line to the desired page width.
Set the line colour to white (eg to hide the line)
Hope this helps someone else,
girlC0d3r is along the right lines (no pun intended), but the line will likely be shrunk along with the rest of the HTML in the email. A workaround I used yesterday was to create an image 1px high by 600px wide (or whatever), the same color as the background, and bring it into the report as an embedded image. Place it above or below the body of your report. This should force the intended width in the final email. I used this technique successfully in a report yesterday.
I just ran into this issue myself, exactly as portrayed in the OP's screenshots. The reports were beautifully rendered in nearly every format except for Web Archive. My trouble was the use of a rectangle containing each matrix that did not span the width of the report. Upon stretching it out through the remaining white space, the condensing behavior ceased. Hope that helps someone who doesn't have quick access to an SP upgrade!
Where it is not an issue of running on old software that needs a patch...
The reason is the columns are different sizes is because the MHTML Device Information Settings, 'OutlookCompat' is set to true
When creating an email subscription with MHTML format and open the report in Outlook, A forum post by Microsoft employee Fanny Liu says
change the OutlookCompat configuration setting for the MHTML Rendering extension in rsreportserver.config. Set the value to: False.
As I was researching it appeared that this would impact more than just column size. In my instance it was not that big of deal so I decided to leave well enough alone. It is correct in PDF and web, the email I send includes a link back to the report, if the client wants a pretty report they are going to want it in PDF, the email format is not expected to be printable.
Encountered the same issue and this worked for me.
Go to --> Properties --> Report
Set InteractiveSize Width to 4.9in
Set Margins to 0 for Left, Right, Top, and Bottom
Set pageSize to Width to 4.9in

Change ReportViewer Currency Format?

I was wondering how can I change currency format from US ($) to EURO (€) for a specific TextBox in Microsoft ReportViewer?
Because it always displays a dollar sign in front and the format is ##,###.## and as for euro it must be like ##.###,##
To add to the options already stated:
You can set the Language property of the report through Business Intelligence Studio (VS with SSRS project support) to =User!Language. This then picks up the culture/locale of the current thread.
I had to use this when users from multiple regions used the same reports.
Well the solution to that problem is to change the general report rdlc language to some of European country (for example I've put it to German language) and the currency field is displaying as it is supposed.
Thanks for the above. I solved my problem with your help however I just wanted to add some detail to this, for those of us who are just starting with report viewer.
The I did this step by step in VB2010
Right Click on the report in Solution explorer
Select Open With
Then select automatic editor selector (xml)
In side the report tags, enter the following tag. the en-gb should be changed to your country code.
<Language>en-gb</Language>
so it should looks something like this
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition">
<Language>en-gb</Language>
<DataSources>
<DataSource Name="DataSet">
hope this helps
As You've discovered, you need to change the Language of the report.
Some extra info: You can't seem to do this via the GUI, you need to edit the <Languauge> element in the xml of the RDLC file. this link is about RDL files, but the details are the same for RDLC.