Culture specific dates Report Builder 3.0 - datetime

I have a report that will be published for consumption in both the US and the UK. I thought report builder would display the dates based on the users specific OS Culture. To test this out I changed my PCs Culture to French and the dialog in report builder showed the proper formats, but when I run the report it still shows in the US Format.
The backend SQL Database is in the US.
My other option is to use YYYY-MM-DD, but I'd rather show the dates in the users preferred format.

You can control the display format of dates, numbers etc. by setting the Language property of the affected textboxes (or the entire Report). If you don't set this property then these types of data are rendered using the culture settings of the Report Server (in your case this will be U.S. formats).
To make your report responsive to the culture setting of the client PC you can set the Language property (of the whole Report or individual text boxes) using the expression
=User!Language
More information: http://technet.microsoft.com/en-us/library/ms159642.aspx

Related

ASP.NET MVC Indexing user selected portion of Docx

I have a project, in which I want to allow users to select part of a work document(either a page or page range) and then link that selection to a certain piece of information.
For Instance:
Say a user wanted to add a heading called 'European history' and they wanted to reference a part of a document 'History' which contains all world history. How could I allow the user to select a page/page range where European history can be found so that the next time the click the reference link, it would direct them to said page/range in the document.
(For all intensive purposes the document will be Docx format).
I am currently using .NET Core 6.0 MVC application.
Thanks in advance!!

Attempting to design a flexible reporting system. Getting stuck

I’m having some trouble coming up with a future-proof-ish design for reports for a company. Essentially the requirements are:
Be able to pull whatever data from the database
Generate formatted report from that data by populating a template (HTML, docx)
Export to Word and/or PDF
So initially I made an API endpoint per report (this is a web app), and had PDFs generated and formatted correctly.
But now I need to get the data into .docx/Word format, and I’m trying to figure out how I can design something as D.R.Y. as possible so that I don’t have to put in a TON of work every time the company decides they need another report (they’ve done this two, three times which is how I became aware that I had coded myself into a corner).
Every report I’ve done thus far has been done via a “brute-force” method: code the queries needed for the report, format the data, and then render to PDF (using HTML to PDF via phantomjs).
The complexity occurred when the company came back and said “Hey, we need all of those reports in Word format, also we have 3 other new reports that we need and a report that is a slight variation on the old one but +/- 2 fields”.
I am just having trouble coming up with a solid design/abstraction here, one that doesn’t send me down a week long hacking spree every time a requirement changes.

Google Analytics eCommerce Report Local Currency

new here and looking for help.
I'm trying to get the amount people are spending on a products for a website in local currency.
I'm looking at a GA page for someone overseas and the currency values from itemRevenue for each productName I'm seeing in my report in Sheets are not looking like they're local to that store but rather my countries currency. I've tried localItemRevenue but that gave an error saying the dimensions and metrics can't be used together. I've got date/hour included as well in the report.
I tried to use itemRevenue with currencyCode to get around this but they couldn't be used together either.
I thought I could use transactionRevenue along with productName/date/hour/minute but that didn't work (I realised because more than one item can be bought per transaction).
Could someone tell me what GoogleAnalytics uses for currency here and if it can be solved easily?
Google Analytics uses the currency settings that are set in the data view settings.
If you send a different currency, as specified by the currency field in the e-commerce-tracking, GA will convert it to the currency set in the view settings as long as it is on the list of supported currencies.
So the first thing to do would be to check the view settings - this defaults to USD, and it happens amazingly often that people fail to set the proper currency.
Next thing to check would be to see what is actually sent to the property - if there is a mismatch between view currency and currency set in the code the values will be converted from the latter to the former.
Your question is not quite clear to me.
However I am assuming that you want to set local currency of your client's country in Google Analytics account.
You can change your currency:
1) Login to your Google Analytics Account
2) Select the View & Click on View Settings.
3) Set "Currency displayed as" -> currency of your choice.
Unless and until you set your desired currency here, you won't be able to get it in Web Interface, Query Explorer, Sheets or API.
I hope this helps.

Controlling UI for SSRS ReportViewer for Start and End Date Picking

I've got a situation where I want the user to enter a start date and end date for report data. In addition there should be a drop down which allows the user to choose one of the following:
last 7 days
last 14 days
last 30 days
If the user selects one of these values, the datepickers should adjust there values? I can't quite figure out how to approach this. Anyone have any ideas.
This isn't possible solely from within SSRS. However, you can still achieve your goal with a bit of extra work. Here's a bit of pseudocode to get you going. This technique works and we use it in our organization often.
In SSRS, hide the report parameters
Create a new blank HTML/ASPX page
Using only HTML, create create your own datapickers and custom "last 7 days" dropdown.
Use Javascript/jQuery on the client to handle your custom logic.
Place a "Generate Report" button on the page.
Insert a hidden iFrame on the page
When the user clicks "Generate Report", perform an HTTP POST passing the report parameters in the URL (something like http://server/reportserver?/dir/Report&rs:Command=Render&Parm1=VALUE1&Parm1=VALUE2&Parm1=VALUE3)
Display the report in the iFrame
Your users won't know the difference and this will give you total control over the layout and presentation of your report parameters.
You can do this within in SSRS. Not great but acceptable.
Have the first parameter be a pick list with two choices.
Pick Dates or Last X Days.
Have the next parameter be the start date.
The third parameter is another pick list. It is either a list of dates or a list of numbers depending on the choice they made in the beginning.
Another way would be to have two reports displayed to the user. one with an open date range and one with a predefined pick list of dates. These would be linked reports that call the same underlying report but display different parameters. This is the approach I would take for such a user request.

How can we generate Reports using flex bulider?

is it possiable we can bulid the reports using flex bulider ? or can we and any
frameworks for build the reports ? .
i don't know what way to bulid the reports
flex bulider have any build reports compoents there?
i want sorting reports order like
By Product Company Name Expected Close Month
Consultant Expected Revenue
this is are fields
Product 1 A May’10 X £1,000.00
B Jun’10 Y £2,000.00 C Jul’10
X £3,000.00 Sub Total
£6,000.00
Product 2 etc
Grand Total £24,000.00
This is are data . How is it possiable ?
Could u give any gudiends me ?
Answer based on first revision.
Typically applications would give this responsibility to the server. Your Flex application passes parameters to the server with a request for a PDF document and the server puts together the appropriate one and seconds it back.
If you're using AIR to run your Flex application you could probably write a library to create a PDF file and then same it to the user's computer but I would stress that the kind of libraries you would need for your server already exist. For example: http://php.net/pdf
Report tends to be a rather generic term and as the other responder indicated that it meant PDF to him/her. The application I am working on is very report heavy. We have a requirement for a client side report ("Think Report in Flex") and PDF version of the same report.
When we originally looked 1yr back, there is no Report library that provides the equivalent of what lifecycle does on the server. Therefore we have had to build our own and it is based on a generic template mechanism.
So can it be done. Yes. But I would recommend developing a generic means to render your reports and it is not a easy task if you want to keep it generic so you can create multiple type of reports.
Also, avoid the trap of nesting your reports through VBOX, HBOX and containers to provide a flexible layout system as it will not perform well.

Resources