reporting-services

Exclude hidden table row from total

China☆狼群 提交于 2019-12-07 18:37:38
问题 I've created a table with a group filter so some values stay hidden. However, the row that shows the sum() of the above values, still counts the filtered values. Usually I would apply the filter to the query, but I'm also using this same dataset in other tables on the same report so that's not an option. Am I missing something here, or is this a flaw in MS Reporting Services? 回答1: This appears to be a "feature" of SSRS, apparently because it calculates values in table headers and footers

How to create an RDL using the report class generated from the RDL schema

我们两清 提交于 2019-12-07 17:58:26
问题 I have a project where we are creating a custom report generator for SSRS 2008R2. This project allows the user to select fields from a database and then create and store the RDL on the report server. For some of the initial proof of concept attempts we have been using XMLText writer to generate the XML file. While this works this seems to be very cumbersome and I don't have a lot of confidence in how the schema is being generated as being 100% bulletproof. A second attempt is actually using

SSRS: Error while querying data from an Excel file (through ODBC)

喜夏-厌秋 提交于 2019-12-07 17:43:31
问题 I am trying to render a simple chart using SSRS . The data is in an Excel sheet. I have set up an user DSN and created a data source in SSRS using ODBC . I am able to query the excel in Data tab. However while trying to preview, I get the following error: error [hy000] [microsoft] [odbc excel driver] the connection for viewing your linked Microsoft Excel worksheet was lost. Anyone knows why this is happening and how this can be solved? 回答1: I would consider creating a SQL Sever Integration

Print rdlc report without viewing print dialogue box

做~自己de王妃 提交于 2019-12-07 17:16:27
I have am writing a POS application, which requires to print invoice very often. I need to send it directly to printer instead of viewing the print dialogue. Using Reportviewer_renderingcomplete, I can avoid seeing the report but I do not know how to avoid seeing the print dialogue box and print report without user intervention? Thanks a lot. Here is how you can do it: Dim m_currentPageIndex As Integer Private m_streams As IList(Of Stream) Dim report As New LocalReport() report.DataSources.Add(New ReportDataSource("testData", reportData.Tables(0))) report.ReportEmbeddedResource =

How can I use the SSRS ReportViewer from VS 2008 in a VS2010 project?

你离开我真会死。 提交于 2019-12-07 16:44:37
问题 I'm working on an ASP.NET MVC 2 / .NET 3.5 project which includes SSRS 2008 reports. After migrating to VS 2010 RC, the new web forms report viewer has been giving so much trouble that I'd like to use the old report viewer from VS 2008 again. Now I'm just wondering what would be the easiest way to do that. The report viewer is embedded in a Webforms ASPX file which is loaded in an IFrame by the the MVC view. Report parameters are currently stored as session variables, and for security reasons

From C# when calling SSRS report only main report shows data sub report giving error

橙三吉。 提交于 2019-12-07 15:59:06
问题 I developed an SSRS report having a main and 3 subreport. I am calling this report from C#. I only know how to bind the main rdlc with the data set. I use the code below for this SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlcomm); dataAdapter.Fill(dataset); this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\sale_dept.rdl"; this.reportViewer1.LocalReport.DataSources.Clear(); this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms

SSRS Export to Excel creates additional columns

て烟熏妆下的殇ゞ 提交于 2019-12-07 15:26:00
问题 I have a SSRS report that when I export to Excel, creates unwanted columns when viewed in Excel. What would the best way to go about ensuring no additional columns are created. I have tried setting the location of the table rows to 0in , 0in but that did not resolve the problem. The attached screen shot is what the report looks like in both Visual Studio and Excel. 回答1: There are two ways to approach this: Align everything: You need to align your textboxes with the main tablix to remove the

Sending field parameters to SSRS action link

荒凉一梦 提交于 2019-12-07 15:15:59
问题 I was trying to pass field parameters to Action Link in SSRS like, http://mysite.aspx?id="+Fields!ID.Value but it is saying as, Input String was not in a correct format. When i tried with the format as http://mysite.aspx?id=10(10 is static not dynamic). It is not showing any error. Please tell me what i can do, as i'm struck up with this issue. Thanks in Advance, Raghava. 回答1: right click the field you want to make hyperlink and select TextBox Properties , and then go to Action tab in the

Process rdl/rdlc report files without SSRS?

烈酒焚心 提交于 2019-12-07 13:46:51
问题 Is there any way to render and export an rdl file within a batch process without using SSRS? I don't want the overhead of SSRS (IIS + database) and instead want to handle this within my own batch/scheduling service. Thanks 回答1: You can conceivably use the Report Viewer control in a server process written in managed code. You pass the control a data source (which can be a DataTable memory object), and it will return a byte stream that you can direct into a file. The control has a UI, but that

SSRS Mobile Reporting Not Supported

对着背影说爱祢 提交于 2019-12-07 13:35:54
问题 I am trying to test out the new SSRS 2016 features, here's what I have so far: Signed up for an Azure trial Installed a SQL Server 2016 VM Created a DB Configured the reporting services to run classic reports Downloaded the Mobile Report Publisher I have been trying stuff out using the predetermined data, however I wanted to pull in some data I'm familiar with. When I try to connect to the server (localhost/reports) I get a Server Error as the 'Server does not support mobile reports'. Is