Quantcast
Channel: SQL Server Reporting Services
Viewing all 1418 articles
Browse latest View live

Error calling SSRS from Asp.net

$
0
0

Hi

I have published a SSRS report on the report server. 

Here is the URL where TestActivity.rdl is uploaded. When I go the url below and click on the report, it shows up as expected and after I enter the parameters the report executes correctly.

URL: http://CompanyURL.ABC.com/Reports/Pages/Folder.aspx?ItemPath=%2fdept+name%2fDept_Test&ViewMode=List

The goal is to have a web page for the users to select the parameters and then pass these parameters to the report and have the report run and display data.

Currently I am passing the parameters directly in the code and getting an error using the URI information in the code below; Is there something I am missing or the way URI information being passed is not correct?

I have highlighted the server url and folders in red above.  any help is greatly appreciated.

Asp.net code

 MyReportViewer.ProcessingMode = ProcessingMode.Remote;

 MyReportViewer.ServerReport.ReportServerUrl = new Uri(http://CompanyURL.ABC.com);

 MyReportViewer.ServerReport.ReportPath = "//Reports//Dept Name//Dept_Test//TestActivity";

MyReportViewer.ServerReport.Refresh(); 

 eportParameter[] reportParameterCollection = newReportParameter[3];//Array size describes the number of paramaters.

reportParameterCollection[0] =newReportParameter();

reportParameterCollection[0].Name ="SOME NAME";//Give Your Parameter Name

reportParameterCollection[0].Values.Add("01/01/2018");//Pass Parametrs's value here.

reportParameterCollection[1] =newReportParameter();

reportParameterCollection[1].Name ="SOME NAME";//Give Your Parameter Name

reportParameterCollection[1].Values.Add("200");//Pass Parametrs's value here.

reportParameterCollection[2] =newReportParameter();

reportParameterCollection[2].Name ="SOME NAME";//Give Your Parameter Name

reportParameterCollection[2].Values.Add("10");//Pass Parametrs's value here. 

MyReportViewer.ServerReport.SetParameters(reportParameterCollection);

MyReportViewer.ServerReport.Refresh();

Error

System.Net.WebException: The remote name could not be resolved: 'CompanyURL.ABC.com' at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod) at Microsoft.Reporting.WebForms.SoapReportExecutionService.LoadReport(String report, String historyId) at Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() at Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) at abcd.Reports.Button1_Click(Object sender, EventArgs e) in c:\Users\<<>>.cs:line 57


Rotating SSRS Kiosk like Report (single)

$
0
0

Hi there,

I'm given a critical project for a Californian Healthcare company, to build an Open Time Slots Display for Providers that will have system's display information displayed on multiple 60 in. Visio Monitors in their Call center.  The system should work like Airport Flight Information Display System (FIDS).  It would need to rotate it's web pages (because info needed won't fit on a single page) every 10 seconds (or so).  Also, it needs to refresh time slot data every 10 min.  I have some ASP.Net and VB experience from way back. I was entertaining idea of using web form Grid control that's in Visual Studio but it just has so many properties/methods don't know frankly which ones will work for this app.  The back-end is Remotely hosted SQL Server (but I think I can use linked server off of their local SQL Server to retrieve data). I'm most of time using SQL and SSRS to build Healthcare Informatics reports.  Is there a relatively quick way to build this app in an IDE easy to use and I'm familiar of? 

Time is of essence for this project for this company.  I'm looking forward for any guidance you can provide.  

Thank you,

          Orhan

Report is being generated is not displaying

$
0
0

Hi all ,

we are using ssrs reports .while report is rendering "Report is being generated" is not displaying , but report is working properly.Please let me know how to solve it.

we are using SSRS2016 reports and browser is IE7 

Thanks in advance

Report Builder: How to display boolean fields as Yes/No instead of True/False

$
0
0

I created a Report Model in Visual Studio and deployed it to the Report Server.  When users create reports using the Report Builder the boolean columns display as True/False.  They would like them to display as Yes/No.  According to Microsoft documentation you should be able to go to the properties of the column in the Report Model and set the Format attribute to either "truefalse" or "yesno" depending on how you want boolean values to display.  I changed it to yesno (it was blank) but the values still display as True and False. 

 Has anyone any tried this or has anyone had any luck getting boolean columns to display as Yes/No in the Report Builder?

 Thank you!

Prices – From the certain period to certain month

$
0
0

Hi All,
First off all I am new to the forum and I am new to SSRS and I need some guidance. I have a table with prices for certain periods:

ItemIDPriceFromDateToDate
1£2001/07/201830/09/2018
1£2201/10/201831/12/2018
2£1001/07/201831/12/2018
3£3101/07/201831/07/2018
3£3501/08/201831/10/2018
3£3701/11/201831/12/2018

This is just an example, I have over 200 records in my table. I would like to convert the above table to;

ItemIDJul-18Aug-18Sep-18Oct-18Nov-18Dec-18
1£20£20£20£22£22£22
2£10£10£10£10£10£10
3£31£35£35£35£37£37

Is it possible to that with Matrix? Any help would be appreciated.

Piotr

Report veiwer Error in Server

$
0
0

Hi guys,

I have a question.

I have researched about `Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'` and I have found a lots of answers that fix this problem but I have not found why it is happen.

My system is composed by:

- Business Layer
- Data Layer
- Service Layer
- Web Layer
- Api Layer

Only Service and Web Layers are using Microsoft.ReportViewer. Web and Api have reference to Business, Data and Service Layers.

When I publish the Web on Azure, it works fine but there is this error when I publish the Api on Azure. They are published in different cloud service.

My API do not uses Microsoft.ReportViewer, so why `Microsoft.ReportViewer.ProcessingObjectModel` is requested when I hit any endpoint?

Different Column Width

$
0
0

How can I have different column width within the same table?  I have a main Tablix and then want to have a group that has different column widths. Merging does not help as I want 3 column in a row to be different. Does that make sense?

Thanks,

EB

SSRS not display external image

$
0
0

In report designer, I have a logo.jpg located in the same directory of the reports. If I set the image source as external and path as logo.jpg. The image will show in designer preview. However, after I deploy the reports and the image to SSRS server, the image will not show. What happens is the image will be saved in SSRS as resources, but once I click on it it will give me some messy code.

resource

messy code

If I open the report in the application, the image will also not display.

However, if I download it I can view it from my hard drive.

My current fix is to use absolute path in report designer or point to a image in the web, but that is not ideal.

I think that would be a access permission problem but I could not figure out why.


Tutorials and Books

$
0
0

I was wondering if someone could point me in the direction of some good tutorials that discuss Reporting Services. Also I was wondering since a .rdl file is XML could i make dynamic reports by simply manipulating an .rdl files XML data? Thanks !

Microsoft.Reporting.WebForms.ReportViewer' exists in both

$
0
0

Hello Expert guys ,

looking for advise for issue

Severity Code Description Project File Line Suppression State
Error  The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in both '\Profiles\AppData\Local\Temp\Temporary ASP.NET Files\root\e268b67c\a57d5e1e\assembly\dl3\6aa1679a\00487d26_8ad0cb01\Microsoft.ReportViewer.WebForms.DLL' and 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91\Microsoft.ReportViewer.WebForms.DLL'  d:\Profiles\username\AppData\Local\Temp\Temporary ASP.NET Files\root\e268b67c\a57d5e1e\App_Web_nfmu54yx.4.cs 30870 

I have cleaned up everything but issue still coming ? in my web.config , only one entry is available and have tried with oldVersion/newVersion entry inside web.config but nothing worked  

    <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />

Issue coming on OS - Window 10 , VS 2015,  SQL server  - 2012 enterprise  ( asp.net application)

   Could someone advise please,  Many Thanks

Link Field and Display Data

$
0
0

Hi

  In SSRS report  in a row there will be a link field & when user clicks on that link file should be displayed as preview. Each row will have its own link. Link is stored in tables rows.

I have done it . I want that it show as a link  means blue color with line under it like such.

Thanks

How to add Custom Authentication in SSRS 2016 - Using ADFS & OWIN

$
0
0

I am working on adding custom authentication on top of SSRS 2016. There is a very good article available to do the same

Custom SecuritySample 2016 - https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample2016

The steps Microsoft have provided to add custom authentication is basically adding forms authentication in which user name/password is taken as input on logon.aspx. I did this and it worked as expected. But my requirement is to authenticate user using ADFS (Active Directory Federation Services). And luckily there is another good article available to http://dotnetcurry.com/windows-azure/1166/aspnet-mvc-multiple-adfs-owin-katana

 Thanks to above article I was able to authenticate using ADFS and OWIN in sample MVC web Forms application.

But here is the problem, when I am trying to add the above sample login into Custom Security Sample provided by Microsoft(link above provided). I am getting an exception 

Exception of type 'System.Web.HttpUnhandledException' was thrown.No owin.Environment item was found in the context.

So here is what I am doing.

  1. I added Startup.cs file in CustomSecuritySample2016 solution provided https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample2016 on GitHub.
  2. Then also added Startup.Auth.cs file under App_Start folder.
  3. Modified the web.config file to add following settings.
<addkey="owin:AppStartup"value="Microsoft.Samples.ReportingServices.CustomSecurity.Startup, Microsoft.Samples.ReportingServices.CustomSecurity"/><addkey="owin:AutomaticAppStartup"value="true"/>

4. Then on Page_Load event of Logon.aspx I am just trying to access the GetOwinContext method by extending HttpContext.

privatevoidPage_Load(object sender,System.EventArgs e)        {            var ct =HttpContext.Current.GetOwinContext();}

5. Rest of the changes are exactly the same as mentioned in custom security sample 2016 code on GitHub(Link above).

I already googled for this exception and I have already added this setting as per the right answers out there but mine is still giving this exception.

<addkey="owin:AppStartup"value="Microsoft.Samples.ReportingServices.CustomSecurity.Startup, Microsoft.Samples.ReportingServices.CustomSecurity"/><addkey="owin:AutomaticAppStartup"value="true"/>

Is is because SSRS don't allow to load any DLL that is not added in RSReportServer.config?

Note: I already posted this question on msdn community and they asked me to post here for any luck!!

Print report 2 times

$
0
0

Is there any settings that would allow a report to always render twice when printed?  Our user wants a certain report to always print 2 copies. We are using the report URL to display the report in a new window.

Use existing data as selection to matrix or table

$
0
0

Hi,

I need help figuring out how to use an existing data (or unique id) and use this on a new table or matrix. For instance, using Table 1. I want to use the ID field as the way of searching and populating the Table 2 (like where id in ('181552','252533', etc.. but w/o manually entering each ID).  I've tried joining these tables but getting duplicates. I've also tried the lookup function and used a temp table and I'm still getting dupes. 

Table 1.

IDNameManagerFees
181552Joe SmithScot$9,400.00
252533Jack BlackScot$25,000.00
898989Sam JohnsonScot$250.00
777456Ray JonesScot$49,800.00
966557Jeff RosemScot$20,000.00
21486Evan StrasseScot$14,000.00

Table 2.

IDAmount PaidDeposit Date
181552 $                   6,223.005/8/2018
252533 $                   1,200.005/12/2018
898989 $                   3,630.004/25/2018
777456 $                   2,214.006/8/2018
966557 $                      698.006/3/2018
21486 $                      587.505/31/2018

SSRS datasets filter from a parameter

$
0
0

Hello this is my first attempt using a filter and a parameter.

Based on the value of the parameter, I want to bring back records that are either = 0 or >= 0.  Here is my datasets filter:

here is my parameter MTCActive:

Label................Value
Active Only......O
All........................A

here is my filter that does not work.

=IIF (Parameters!MTCActive.Value = "O", Fields!TotMTCHrs.Value > 0,Fields!TotMTCHrs.Value >= 0) 

Can you tell me what is wrong with it?  Thanks


How to Calculate Growth% in reportviewer (Visual Studio)

$
0
0

Dear All

please help with the calculation of growth% in reportviewer (visual studio)

the sheet linked with SQL server. we have a location wise sales data and we want to compare like-for-like sales growth in the same report

I have run a query with date filters and convert date into year as mentioned below so how can I calculate the %growth between these two sales figure

i am working on visual studio reportviewer 

Report Format/Example

 Header Group 
Rows 20172018Will Add
LocationSaleSaleGrowth%??
Delhi5555599999 
Mumbai5555599999 
Bangalore5555599999 
Total166665299997 

Changing between Test and Prod servers

$
0
0

Hello,

I developed a report using a stored procedure in our test database.  I recreated the stored procedure in our Prod database. 

Currently the report uses the data source coming from the prod server....I want to point to the data source of the test server.

I changed the connection string of the datasource back to the test database, but the result set keeps coming from the Prod server.

I refreshed fields but still the data is returning values from Prod server not the Test server. 

What is going on?  Can you help? 

Thanks

Get report data from its element

$
0
0

Asalam Alaikum (Greetings)!

I need a help regarding Report Viewer, I have a report which shows me data like:

Supplier TypeSupplier NameReg Date
Exporter
Al - Habib Traders2011-09-09
Esup Suppliers2012-09-01
Local
Traders Sons2013-10-01
Wide Trade Sons2011-01-01
Zheng Wu Traders2014-02-14
None
Korex Suppliers2018-01-01

I want to get total with every exporters type. How can i do that in expression? or any other way.

Thank you!

Regards,
Muhammad Naveed Haroon

PDF not displaying

$
0
0

We have an asp.net page that creates a PDF file using SSRS and all works fine on all browsers.  However, on Chrome it just shows an about:blank window and on Firefox it shows a 404 File or path not found error. It works perfectly in Edge and IE11. We are on a domain intranet site. An example of the javascript that we use is below.

        if (document.getElementById('txtprinturl').value != '') {
            var surl = document.getElementById('txtprinturl').value;
            var wopn = window.open(surl, '_blank', 'height=600,width=900,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=1');
            document.getElementById('txtprinturl').value = '';
        }

An example of the surl variable above is \\lifedev2012\Apps\LifeTime\OfficeDocs\POFiles\58430-6.pdf

Report viewer in asp .net core

$
0
0

Does Asp .net core supports Report viewer.please share with an example

Viewing all 1418 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>