Formatting numbers in SSRS - reporting-services

How i can format values in SSRS in this format
"_(* #,##0.00_);_(* (#,##0.00);_(* -?_);_(#_)"
This is Excel formatting style, but how to make the same in SSRS

If you go to properties for the textbox, copy and paste the string into the Format field.
If this does not give the desired results, please describe the difference in the question.

You can define custom format in SSRS by navigating to place holder properties of particular field, and then navigating to 'number' tab. In category section we have option to defined our custom number format. so you can define your custom format there.

Related

Apex Interactive grid's Native HTML date picker display formate (mm/dd/yyyy) are changed to (dd/mm/yyyy) in edit form

I have an issue in interactive grid of oracle apex native html date formate. by default the formate shows (mm/dd/yyyy) but when i click the date picker to feed the date it is changed to (dd/mm/yyyy)?
i want same formate on edit and display cell. kidly help me please.
I'm afraid you have no control over this setting. Check the "help" text for the attribute, it explains that this is not possible, since you don't control individual users' browser settings.
Render using the native HTML input date types, if supported by the browser. When 'Show Time' is off, this renders a 'date' type, when 'Show Time' is on, this renders a 'datetime-local' type. Note: The exact display of these date types is dependent on the browser. Native HTML may be the preferred option when the app is being used on a mobile device.
Please note, when using 'Native HTML', because the native date types are very specific about the date format they require, the item's 'Format Mask' will be automatically set by Oracle APEX, and you will not be able to change it. However this will not be the format displayed to the end user. The end user will see the date in the format appropriate to their current locale.
Also check this link: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date - it shows exactly the same behaviour. The value in the html tag has a different format than the value in the date picker.

How to get hyperlinks dynamically in Microsoft Access Reports?

In a MS Access Report, I am trying to create a hyperlink that would take a user webpage. The URL is dependent on a data field in my database.
In my report, I have added the hyperlink control and used the popup to enter the hyperlink.
When I use the Hyperlink Builder, to dynamically set the value of one of the parameters, I get a garbage url that does not work. The URL that is returned is :
file:///C|/Users/gh/Dropbox%20(Bar01%20College)/BW%20Demo%20Project/="https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID="
& [documentID] & "&TransmittedScore=ENG_2100"
The expected result would be to have the URL that is customized based on the record where my parameter DocumentID would be equal to the value of my documentID field.
https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID=ZuluTest&TransmittedScore=ENG_2100
If I paste the expected URL into the address field, the URL parses properly:
The requirement of this project is that the links need to be clickable when exported to PDF.
Note: I have previously posted this question to https://www.utteraccess.com/forum/index.php?showtopic=2057701 and looking for additional assistance.
Working with TheDBGuy on the UtterAccess forum (URL in my original question). The solution that came up was to use an UNBOUND Text Box, setting the property of Is Hyperlink = Yes.
Then in the ControlSource property, built the URL string in the format of ="<DISPLAY TEXT>#URL"
So the value would have been:
="ENG 2100#https://baruch.az1.qualtrics.com/jfe/form/SV_8uZm3rAnSWPE9gN?DocumentID="& [documentID] & "&TransmittedScore=ENG_2100"

SSRS Possible to toggle Header visibility based on export type? 2008-R2

I'm familiar with dynamically showing/hiding other report objects (textboxes/tablix/columns etc...) based on a variable or parameter value - but is there a way to do this with the header? I don't see any "visibility" tab on the header object to set an expression.
Further more, is there a way to do hide the header based on the export style. For example, I want to show the header when exported to PDF, but want to hide it when exporting to XLS (to prevent cell merging).
I've seen examples of when the "header" is replaced by a "rectangle" which can be toggled. I've also seen articles refering to =Globals!RenderFormat.IsInteractive = “EXCEL”), but I don't know where that is set? On a server config file? Is there a way to have it done just for that one specific rdl report file?
Thanks in advance!
Answering your questions:
Is there way to dynamically show/hide the header - no. Unfortunately, you can't set visibility for whole header/footer in RDL reports.
Is there way to hide the header based on the export style - not quite. As I stated, you can't set visibility for whole header, but you can set visibility for separate report items in header based on the export style.
Where that is set - it is set in report, in usual Hidden expressions. There is nothing to do with server config file to achieve this (the only point is to take a look at rsreportserver.config - it contains section with rendering extensions, it's useful to know their names, f.e. name "EXCEL" is for old binary XLS format, while "EXCELOPENXML" is for modern XLSX).
To set visibility based on the export style, you can use built-in report field RenderFormat.Name (notice that it is Name, not IsInteractive!). Just type the following expression for the Hidden property:
=Globals!RenderFormat.Name = "PDF"
In conclusion, you can't set visibility for whole header, you can show/hide report items inside header based on different conditions you want, but header will still take some place. To really hide the header so it will not consume the space of report, you can simulate the header with rectangle and page breaks, this is the workaround.
The report requirement I had before me was of similar nature.
NEED: Hide the headers when exported to CSV file.
The report is going to be exported to CSV and then uploaded into another system (a system that doesn't want headers). To be more user-friendly, I wanted the report to show the headers but not export them in the CSV file.
I tried some things that did not work. Then I found an article describing how you can create a new export format, Labeled: "CSV No Headers", which solved the export requirement.
SOLUTION: rsreportserver.config
FILE: D:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config
XML:
<Extension Name="CSV (No Header)" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
<OverrideNames>
<Name Language="en-us"> CSV No Header</Name>
</OverrideNames>
<Configuration>
<DeviceInfo>
<NoHeader>true</NoHeader>
</DeviceInfo>
</Configuration>
SOLUTION DEMO
NEW OPTION:
EXPORTED> Report Name (CSV No Header).csv:
EXPORTED> Report Name (Excel).xlsx:
SOURCE: Charanmandya Blogspot: Export Csv Without Header in SSRS
Things that did not work...
I read through this article, Blog, Beer Intelligence by Valentino Vranken: "Hide/Show Items Dependant On Export Format (SSRS)". The article was helpful with lots of user comments and suggestions. But I tried these things but they did not work for CSV export without header row.
Row Visibility > Expression > =Globals!RenderFormat.Name = "CSV"
This worked for "Excel" or "EXCELOPENXML" format. For some reason "CSV" does not work.
Select Row> Properties: Data Only> [Data Element Output=NoOutput]
Some related stackoverflow questions...
SSRS Export to pipe delimited file loose its headers
Exporting from SSRS to Excel with no headers

How to use ReportItem property(ReportItems!TextboxName.Value) in body of SSRS report

I'm working on SSRS Report using report builder and want to get a value of a textbox of table using (ReportItems!textboxName.Value). Can I do this? After searching on internet i found that i Cant use it in report's body(may be i'm wrong) than how I can get the value of specific textbox of table?
Yes that should be valid, here is a link to the specific technet article on the topic.
The basic format is something along the lines of:
=ReportItems!Textbox1.Value + ReportItems!Textbox2.Value
There are a couple of restrictions on it because of when it would be generated, but it shouldn't have a problem being in the body.

Is it possible to export to CSV and have the header contain spaces?

I have a requirement for an SSRS 2005 report to be exported as a CSV, where the column headers contain spaces.
Currently the CSV header column titles are derived from the textBox property names and uses underscores instead of spaces. Is there another, better approach?
For example, currently I have:
SSRS Report Header : Effective Date
TextBox Name : Effective_Date
CSV Header: Effective_Date
I would like to have:
SSRS Report Header : Effective Date
TextBox Name : Effective_Date
CSV Header: Effective Date
Looks like its not possible, with a bit more digging I found the following Stack Overflow post:
SSRS csv export with comma in the column header names
I have solved this problem myself by customizing the built in CSV rendering extension to make it use the textbox's ToolTip property as the column header. The ToolTip property will allow spaces and other punctuation so gives you the flexibility to name the columns as you like. This also has the nice side effect of giving you a relevant tool tip, reminding you of what column you're looking at on a long report where the header might not be visible!
Note: In the designer, you set the ToolTip of the data row's textbox and not the header's textbox.
This isn't easily achieved because all the rendering extensions are marked as sealed classes. So to implement this, I used a decompiler and extracted all the code relating to CSV rendering into my own project. Then changed the line that writes the header text to read from the textbox's ToolTip property instead.
In the class named CsvColumnHeaderHandler you're looking for the method OnTextBoxBegin and in particular the line:
this.m_visitor.WriteValue(textBox.DataElementName, this.m_excelMode);
Simply change this to read:
this.m_visitor.WriteValue(textBox.ToolTip, this.m_excelMode);
This custom rendering extension can then be deployed to the report server and it works perfectly.
You wont need to know how to write a rendering extension for this because, as I said, I just copied (decompiled) the code. However, you will need to know how to deploy a custom rendering extension assembly. More information on deploying can be found here: https://msdn.microsoft.com/en-us/library/ms154516.aspx
There is a solution for this. You need to select in SSRS properties press F4,
select Properties, in that select particular textbox which you want to rename.
For example, let Textbox12 as a Effective_Date. Solution: Rename the Textbox with EffectiveDate.