SSRS - Custom currency formatting with thousand and decimal separators - reporting-services

I have set currency formatting using the built-in formatting properties. Currency is currently shown like this in my report:
2208.64 €
I want it to be shown like this:
2.208,64 €
I changed textbox properties to use thousand separators and my custom format looks like this:
#,0.00 '€';#,0.00- '€'
However, I don't know how to change separators in custom formatting. Decimal separator needs to be a comma and thousand separator needs to be a dot.
Any help is appreciated!

If you use the built-in formatting properties you can display your currency format like this:
If you change the language of the report (in the report properties under localization) you can control the dot or comma. For example:
DE = 12.000,00
EN = 12,000.00

Related

Netsuite FreeMarker How to split String and Use the Index

I am new in NetSuite Technical, I am customizing the Invoice and Our Customer is using mix language in their Data Arabic & English together in the same Field, So if I use NotoSansArabic it will not Show the English Letters and If I remove the font; The Arabic Letters will not be shown properly.
so, I want to split the String in the Field to Show Each set of Language in the Invoice/report.
I want to split the field where the Character "-" is appeared to set the font for the first Splitted String NotoSanArabic and keep the second set normal
I want to do something like this
<td>
<#assign CustName={ record.entity} ? split( "-")>
</#assign>
CustName[0]
<!--Can I read the Index of the First Splitted String-->
CustName[1]
</td>
I will set the font for the index 0 to arabic and Keep the Index 1 as normal
Like this:
<#assign CustName=record.entity?split("-")>
${CustName[0]}
${CustName[1]}
However, this only works as expected if there's always exactly one - in the name. If that's not the case (and especially if there can be 0 - in it), then do this instead:
${record.entity?keep_before('-')}
${record.entity?keep_after('-')}

(Microsoft excel) Adding html tags to cells

I'm trying to figure out how do i add for example <p> and </p> at the beginning and the end of my cell data. So my data looks like this, example:
Before: Los Angeles
After: <p> Los Angeles </p>
I have a whole table with tons of content to be converted in this way. I would appreciate the help
Excel is not a good HTML construction tool.
If you want to concatenate html tags with contents of Excel cells you can construct the final html string using the & operator between bits of text, like this:
="<p>"&A1&"</p>"
Edit: if you need to include formatted dates in this construct, you may want to look at the Text() function, like below. Adust to the format you need.
=TEXT(A1,"dd mmm yyyy")
Format the cell's value with TEXT using a custom format mask. The backslash can be used as an escape character to avoid conflict with reserved formatting characters.
=TEXT(A1, "\<\p\>#\<\/\p\>")
This format mask could also be used as a cell's custom number format.
<p>Los Angeles</p>
<p>Melbourne</p>
<p>Vancouver</p>

SSRS: show comma instead of dot

I would like to have in my report a comma instead of a dot.
I used this format:
=Format(Fields!True.Value,"F2")
But this shows me a dot. How can I get a comma?
In addition to niktrs answer Language settings for the report can be set via the properties window.
Alternatively, just manually set your format string.
For Example:
=format(10000000.12,"£#,#.##") will return £10,000,000.12
You can use the masks in the same way you would in Excel:
https://support.office.com/en-us/article/Create-or-delete-a-custom-number-format-78f2a361-936b-4c03-8772-09fab54be7f4?ui=en-US&rs=en-US&ad=US
Number formating depends on reports selected language, so you should set it to something that matches your requirements

HTML to Excel formatting: mso-number-format currency without decimal?

I am exporting an asp.net grid to excel as html format file. Some of the cells in the asp.net grid are currency values without decimal digits. I can set the exported cell style as
mso-number-format: currency
to make a value of 12345 appear as $ 12,345.00 in the excel file.
But I'll like to remove the 2 decimal digits to make it $ 12,345
Does anyone know how to specify the cell style to make it appear as so?
It is better to use custom formats for the cell.
for example for a comma separators with 2 decimal places use this:
mso-number-format:\#\,\#\#0\.00
this is actually escaped value of: #,##0.00
So:
» Use the following format to don't show trailing digits when they are zero:
mso-number-format:\#\,\#\#0\.##
its escaped value of: #,##0.##
» And if you don't want decimal digits at all (even if they are not zero) you may use this:
mso-number-format:\#\,\#\#0
which is escaped value of: #,##0
You can find useful patterns here:
http://cosicimiento.blogspot.ru/2008/11/styling-excel-cells-with-mso-number.html

How can I preserve leading white space in PDF export of reporting services

I have some leagacy reporting data which is accessed from SSRS via an xml web service data source. The service returns one big field containing formatted plain text.
I've been able to preserve white space in the output by replacing space chars with a non-breaking space, however, when exporting to PDF leading white space is not preserved on lines that do not begin with a visible character. So a report that should render like this:
Report Title
Name Sales
Bob 100.00
Wendy 199.50
Is rendered like this:
Report Title (leading white space stripped on this line)
Name Sales (intra-line white space is preserved)
Bob 100.00
Wendy 199.50
I've not been able to find any solution other than prefixing each line with a character which I really don't want to do.
Using SQL 2005 SP3
I googled and googled the answer to this question. Many answers included changing spaces to Chr(20) or Chr(160). I found a simple solution that seems to work.
If your leading spaces come from a tab stop replace "/t" with actual spaces, 5 or so
string newString = oldString.Replace("/t"," ")
In the expression field for the textbox I found that simply adding a null "Chr(0)" at the beginning of the string preserves the leading spaces.
Example:
=Chr(0) & "My Text"
Have you tried non-breaking spaces of the ASCII variety?
=Replace(Fields!Report.Value, " ", chr(160))
I use chr(160) to keep phone numbers together (12 345 6789). In your case you may want to only replace leading spaces.
You can use padding property of the textbox containing the text. Padding on the left can be increased to add space that does not get stripped on output.
I have used this work around:
In the Textbox properties select the alignment tab.
In the Padding option section edit the right or left padding(wherever you need to add space).
If you need to conditionally indent the text you can use the expression as well.