SSRS FormatDateTime - reporting-services

Im using =FormatDateTime(Parameters!StartDate.Value,DateFormat.ShortDate)
and its returning "mm/dd/yyyy" format.
I want to return it in this format "dd/MM/yyyy". Please help how to do it!
Thanks

Try this:
=Format(Parameters!StartDate.Value,"dd/MM/yyyy")

Click on the reportcanvas, Press F4. Now you get the properties of the report.
There is a property called 'language'.
Choose the appropriate setting, for example NL_nl if you want dutch notation.

Can't vote up/down due to an inadequate rep but the correct answer is that provided by henrov. In my case, it involved setting the language to en-GB.
I did, however, have to quit SSRS; delete the compiled reports; relaunch SSRS and recompile before the change could be seen in the preview window.

Related

PhpStorm disable hints after typing, enable method parameter hints

It's driving my crazy that every time I type a comma and than hit enter, some hinted method is inserted into my code because PhpStorm thought it should display a code hint. I only want hinting when I'm typing a variable or a method name, is this possible?
Also, I once saw some PhpStorm hinting that when the user typed a method name, PhpStorm displayed the required variables just above that method as a hint, but I can't find the setting for it.
I don't mean this, but I can't find an image of it:
Ah, I just found out it was probably some beta version of PhpStorm 2017.1, I downloaded the release today and instantly saw what I was looking for:

SSRS Create Excel Icon on Report

Does anyone know of a way to add an Excel icon somewhere more visible for the user to do an export without having to click on "Actions". Not sure if any of that is customizable?
Additionally, is there a way to create a drill-through report that renders in Excel. I was trying to figure out the RS:format stuff, but not sure how to use this.
I'm trying to make the report as user friendly as possible.
Thanks.
There certainly is, you can do an export using a URL as detailed in this MSDN article: https://msdn.microsoft.com/en-us/library/ms154040.aspx.
All you need to do is set that as the action of an image you place on the report, and you have an export icon. The general format is:
http://myrshost/ReportServer?/myreport&rs:Format=Excel
The main item to note is that myrshost/ReportServer is not going to be the same address as you use when browsing through reports. Instead, it's probably going to be SERVERNAME/ReportServer_INSTANCENAME, filling in the name of your server and database instance respectively.
Edit: A more concrete example of what this would look like:
http://sqlhost/ReportServer_Report2016?/Rentals/Balance%20Overview&rs:Format=Excel

Report Title as a ReadOnly parameter in SSRS

I've tried searching all over the internet for anything close to what I'm looking for and have been very unsuccessful. What I am wanting to do is to create a parameter in SSRS that shows the name of the report in the parameters section. But I want it to only be a label, instead of having a drop down box. I know if you take away the available values it makes it editable. If there is even a way to make a default value read only without having to have available values I think that would be okay as well. Any help would be greatly appreciated.
Parameters are not meant for this purpose. Even if you building the parameters with the RDlObjectModel the report parameter object doesn't even allow the parameter to be read only. I suggest to write your own custom interface to show headers and use a report viewer control.

Can we write a function in SSRS globally

Im currently using SSRS-2008R2. I've an scenario where i have to maintain the External image as a logo for each reports we have. Not, only that, we have our custom date formats that what we should change according to the Date Type users define in an asp.net application.
There are lot of things we have to do on every report. Thats my problem.
Following is the one of them Im currently sharing as example :
Currently i maintain the following function for each reports i've:
Public Function GetLogoImage() As String
Dim ImageLogoURL As String
if Globals!ReportServerUrl is nothing then
ImageLogoURL = "http://localhost/ReportServer" + "?%2fImages%2fLogo"
else
ImageLogoURL = Globals!ReportServerUrl + "?%2fImages%2fLogo"
Return ImageLogoURL
End Function
I hope, i asked question clearly. Im newbie in SO.
Thank you in advance.
If you have a list of functions that you wish to apply to multiple reports and you're not willing to copy them to every single one of them, you can create an external library and then add it as a reference to every report.
This is quite simple to do and there's lot of documentation around the web.You can start here. You will, however, have to maintain this external library but if you have a lot of code, I personally think this is a much better solution.
If you want to have a predefined layout, you may want to consider having a master report and then include other reports as sub-report objects, but you'll lose some flexibility design wise.
Since the accepted answer is more of a comment and the link provided is broken, i'll provide my answer for people who might need a quick guide on how to use custom code in ssrs:
In Design view, right-click the design surface outside the border of the report and click Report Properties.
Click Code.
In Custom code, type the code. Errors in the code produce warnings when the report runs.
Once you press ok, to call the function that you saved you just need to right click on a cell, select "Expression" and paste in the following string: Code.GetLogoImage
More detailed source here.

Where can I find MSAccess Control in Database

I am updating a MSAccess Database for 2010. When it runs a report it is displaying 2009 rather than 2010.
When in Design View I can see that a Control
=GetThisYearLong() is being called.
But where the heck is this function or whatever? is it code a query a bultin ??
where should I look?
Thanks
Press Ctrl + G
type in GetThisYearLong
right click an say definition
There is your code
It's not a built-in function. It must be in the code of your database somewhere, perhaps in a code module? Or in an externally referenced DLL?
Hi sorry to answer my own question, but it may help somebody else:-
I went into view code on first screen (ie anywhere) and then selected "search current project" and it jumped me to a section called general
this found:-
Global Const ThisYear = 2009
Global Const LastYear = 2008
Public Function GetThisYearLong() ...
So the answer for me was to select the option "current project" in the "find" dialog
Anyway thanks you got me there, and thanks stack overflow
phew!! I couldn't go home till I solved this