reporting-services

SSRS - Vertical merge cells in Details rows

自作多情 提交于 2019-12-14 04:19:08
问题 I have stored procudure which returns some data like this: Trade mode;Area;Production place;Commodity;Reseller;Min_sell_price;Max_buy_price;Trans_count;Volume;avg_price;change_avg_price;last_trade_price;last_trade_volume "Trade mode1"; "Area name1"; "Place1"; "Commodity1"; "No"; "33601"; "33601"; "1"; "1200"; "33601"; "+28"; "33601"; "1200" "Trade mode1"; "Area name1"; "Place1"; "Commodity1"; "Yes"; "-"; "33601"; "0"; "0"; "33601"; "+28"; "33601"; "1200" "Trade mode1"; "Area name1"; "Place2";

Reporting Services: Two Tables One Sum

允我心安 提交于 2019-12-14 03:59:17
问题 My report is as follows: One table provides financial information with sums at the group footer (Grouping is called "StockTable_Shipped"). The group is controlled by a boolean value (1=shows shipped data, 0 = shows received data) The second table is a variance report for data that has been shipped (boolean value of 1) and has a sum at the bottom of the table. My ultimate goal is to take the sum from table1 where shipped=1 and subtract it from the variance sum from table2. This will be placed

opening a file in the browser instead of downloading it

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:49:33
问题 Im using ssrs through a reports server to generate a resultStream byte array using ReportExecutionService.Render() which I am currently serving to the user with the following code. Is there a way I can use this same byte array to automatically open the report in a new browser window instead of going to the save/open dialog? public void RenderReport (byte[] reportDigits, ReportItem reportItem) { HttpResponse response = HttpContext.Current.Response; response.Clear(); response.ContentType =

downloading XML file from sql reporting server

☆樱花仙子☆ 提交于 2019-12-14 03:46:52
问题 I am trying to download a xml file from Azure SQL reporting server which requires authentication to get the file. I am trying below 2 approaches: Approach 1 In this approach i tried below c# console application and it downloads the file from server. It works fine! void DownloadFile(string uname, string password) { ServerReport report = new ServerReport(); report.ReportServerUrl = new System.Uri("https://xxxxx.reporting.windows.net/ReportServer", System.UriKind.Absolute); report.ReportPath = "

Generating a MySQL hourly breakdown from current timestamp

做~自己de王妃 提交于 2019-12-14 03:44:24
问题 I'm afraid this is probably a very embarrassingly easy question - but my mind is just completely stuck at this hour. I have a table that stores the number of activities carried out by different people, and the time it took place in. I want to create a report that accepts the person's name as a parameter, and show the number of activities per hour for that person during each of the previous 24 hours starting from current timestamp ( now() ). Right now, SELECT hour(TimeStamp), activities FROM

SSRS report parameter

给你一囗甜甜゛ 提交于 2019-12-14 03:30:16
问题 I have a problem with rendering report with correct parameter. We have RDL report that has date parameter with default value which is an expression "=today()". In project i have the following code in c# for(int i = 0; i < 15; i++) { serverReport.SetParameters(new ReportParameter("dt1",date.ToString())); File.WriteAllBytes(path, serverReport.Render("PDF")); } For first iteration sql stored procedure is called with the default parameter and following iterations are called with passed date(i

Multi-value optional filters with the usage of wildcard in SSRS 2005

末鹿安然 提交于 2019-12-14 03:29:43
问题 I have asked this question before but there are no solution to it. I have created a multivalue filter with the following data-set. SELECT PASS_M, ENTRY_DT, EXIT_DT, WORKED_HRS, ACCESS_LOCATION_X, IC_N, COMPANY_M, CONSECUTIVE_D FROM TEMP_TARGET WHERE (CONSECUTIVE_D >= @consecDays) AND (ENTRY_DT BETWEEN @startDate AND @endDate) AND (ACCESS_LOCATION_X LIKE @accessVar) AND (IC_N LIKE @icVAr) It would be relatively easy if the value of my accessVar does not use wildcard but i needed that. So there

Prorate a monthly charge to daily for a partial month

。_饼干妹妹 提交于 2019-12-14 03:08:14
问题 I'm using SQL Server and SSRS. I have a table with a monthly charge for a service. I need to be able to calculate what the charge is for a partial month. I need the monthly charge prorated to a daily charge, but I can't just divide by 30. I need it depending on what month I am looking at. 31 for months with 31 days, 28 for February, etc. Can I do this in SQL? 回答1: You can get the total number of days for current month by: SELECT DAY(EOMONTH(DateColumn)) FROM TABLE And in your case, I am

SSRS rdl Header and Footer Removal from specific pages

拟墨画扇 提交于 2019-12-14 03:02:39
问题 I want remove header and footer from specific pages e.g from 2nd 3rd page out of 5 pages because when we export it to excel sheet it will merge cells and the sorting of excel will not work on sheet 2nd and 3rd. 回答1: I don't believe there is a way to remove the header/footer region from certain pages of the report. The only options SSRS gives is Print on First Page/ Print on Last Page options in the Header properties, so you can only control the first or last page of the report with those

Can I get a tab to display in a rendered report?

十年热恋 提交于 2019-12-14 02:13:41
问题 I have built an RDL report and after rendering any tab characters contained within my returned data do not appear in the generated report. Is it possible to display tab characters? (Users want to have the basic formatting of their 'comments' field to appear.) Tabs added to the rdl itself are maintained, but those in the data seemed to be stripped out by the rendering engine. 回答1: The problem is that SSRS rendering it's output like HTML, which ignores consecutive whitespaces and treats tabs as