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

report viewer

$
0
0

 In my application want to display report depening upon empname . if user enter  empname in textbox and click on reprtsbtn it should show report for that empname.But i dont know how to send parameters  empname  and clientid  to generate report.

below sql query in dataset reports.xsd

select distinct EmpID,EmpName,SDate,EDate,Total from Employee where EmpName=@EmpName and ClientID=@ClientID


Reports.aspx

<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
                Font-Size="8pt" Height="400px" Width="837px"><LocalReport ReportPath="Reports.rdlc"><DataSources><rsweb:ReportDataSource DataSourceId="ObjectDataSource1" 
                            Name="AReport_EmpAsReport" /></DataSources></LocalReport></rsweb:ReportViewer><asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                SelectMethod="GetData" 
                TypeName="AReportTableAdapters.EmpAsReportTableAdapter"></asp:ObjectDataSource>

list.aspx

empname :textbox

protected void btnreports_Click(object sender, EventArgs e) { Response.Redirect("Reports.aspx"); }

when i ckick on generatetn it shows below error

An error has occurred during report processing.
 ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'GetData' that has no parameters.




Reading .rdl file using ReportViewer

$
0
0

Hi all,

I am trying to get my SSRS Table Report (an .rdl file) to display in my ASP.Net web form using the ReportViewer control?

I have followed the steps in the Create a Basic Table Report (SSRS Tutorial) to create a table report. My table report is saved as SalesOrders.rdl. I have also successfullyadded a ReportViewer control to my ASP.Net web form.

Questions:

1. Should I configure ReportViewer for Local Processing or Remote Processing?

2. Either way, how do I get the ReportViewer control to read my SalesOrders.rdl file?

3. I am stuck at ReportViewer Tasks > Choose Report. I only see the option to select Server Report. What should be the report server URL? What should the Report Path be?

Thanks for the help.

How to set report margin

$
0
0

 Dear all professional,

If exports the report as Excel format, how can I set the page margin in excel as 0.5cm ?

 

Thanks

 

Add page break at Column Level in RDLC Report

$
0
0

 I am stuck into a problem.... I am filling my Table with Dataset with FIXED rows but Dynamic Columns. My Requirement is that I need to have a page break after 5 columns...

I mean Columns can grow from 1 ,2,3, 4, and so on.......where as rows are fixed....

I am using RDLC reports...

Below is an example how I want my table page break.

Eg:

Product Name     2003  2004  2005   2006  2007

  Mobile            10    15    20      19   17
  Laptop             55    2    3       17   10
  Tablet             10    10   25       4    9

Similarly on next page , I should have

  Product Name     2008  2009  2010   2011  2012

  Mobile            50     5    2      19   25
  Laptop             5    2    30       17   100
  Tablet            10    10   25       4    19

P&L Statement in SSRS

$
0
0

Hi,

I am working om a Profit & Loss statement in SSRS 2012 and am wondering how to fix correct calculations. My dataset has categories and subcategories and I would like to have these as row groups in a tablix (matrix). Category 1 is "Gross Margin"; category 2 "Costs" and category 3 "Interests". Subcategories are a row group that can be toggled on and off. As a Grand Total I would like to have "Gross Margin" minus "Costs" minus "Interests". My point is how to get the Costs and Interest deducted from the Gross Margin in the tablix once they are in the same data region. I don't want to show Costs and Interest with a minus sign. So, my Grand Total would be GM -/- Costs -/- Interests where the amounts for GM, Costs and Interests show up as absolute figures. How should I substract one item in a data region from another item in the same data region? I would rather not like make several adjacent groupings for the same row group. So preferably not a grouping on Category (filtered for Gross Margins), another group on Category (filtered for Costs) and another group on Category (filtered on Interests) ... I Googled around for some time but there is not a common practice for issues like this

Example:

Sales: 1000 (= Subcategory)
Cost of sales: 600 (= Subcategory)
GROSS MARGIN: 400 (= Category)

Wages and salaries: 100 (= Sub)
Housing: 50 (= Sub)
Depreciations: 100 (= Sub)
Other expenses: 60 (= Sub)
COSTS: 310 (= Category)

Interests paid: 15 (= Sub)
Interests recieved: 5 (= Sub)
INTERESTS: 10 (= Category)

RESULT BEFORE TAXES: 80

What is the best way to accomplish this?

Thanks!

Grid lines on SSRS report

$
0
0

I've scoured the web trying to find how to turn on gridlines (cell borders for a report) using ReportViewer in Visual Studio 2012. The only information I really found was to click the column tab and then set the BorderStyle to Solid. Then click the row tab and do the same. I did this but it didn't have any effect when the report was rendered. Can someone please tell me how to turn on the gridlines/cell borders so that they show when the report is rendered and also when printed?
Thanks

Hide Blank Page/Space on Visibility expression

$
0
0

Hi All,

  I have a rectangle and a tablix inside it . In Tablix , I bound some fields from dataset ... I want to show this tablix to Administrator only...

So i have applied below visibility expression and it is working fine..:

=IIF(Parameters!ParamRoleLevel.Value="Administrator",true,false)

But the problem is when tablix/rectangle is hiding , It is taking blank Page/Space... Please let me know how to prevent this blank page/space from rendering.

I have tried applying above visibility expression to RECTANGLE/TABLIX/ROW VISIBILITY ...but it is still rendering blank page/space.

What can be the solution to this problem ? How to prevent this blank page/space to render?

Waiting for your valuable answers.

Thanks in advance..

Report Viewer Control Server Side Report

$
0
0

The 'rptViewer.ServerReport.SetParameters(parameters);' line of code is returning the below error message.  I seem to have access to the report by using the report server URL and report path.  What is causing this error message?  This is a server side report.  Thanks!

Client found response content type of '', but expected 'text/xml'. The request failed with an empty response.

Complete Code:

MyReportServerCredentials c = new MyReportServerCredentials("username", "pwd", "domain");

ReportParameter[] parameters = new ReportParameter[1];

parameters[0] = new ReportParameter("ApplicationID", "3");

rptViewer.ServerReport.ReportServerCredentials = c;

rptViewer.ServerReport.ReportServerUrl = new Uri("http://sqldev/reportserver/SaleReview");

rptViewer.ServerReport.ReportPath = "/Application.rdlc";

rptViewer.ServerReport.SetParameters(parameters);

rptViewer.ProcessingMode = ProcessingMode.Remote;

rptViewer.Visible = true;

rptViewer.ServerReport.Refresh();


at Microsoft.Reporting.WebForms.LocalReport.CompileReport() at Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1 parameters

$
0
0

Hello all

This was created with version 2005 dataset datatable only to show in report. I have added the two dll

Microsoft.ReportViewer.Common10.0

Microsoft.ReportViewer.Webforms 9.0

Had to update the report when viewing in vs 2010 asking to update to 2008 which i did.  I did a refresh on the dataset did not work error above and then i created a new report same datasest still not working.  Getting the error above on line below . 

  ReportViewer1.LocalReport.SetParameters(oList) HELP!!

ReportViewer on a Web page in IE

$
0
0

Hi,

I have created reports using SSRS which run and display perfectly locally in their solutions and on the ReportServer.

However if I place a ReportViewer control in a web page I seem to have a lot of display issues, namely:

  • Text doesn't appear in the colour it should be in.
  • Underlines text is not underlined.
  • Font size and name doesn't display as expected.
  • Data Bars Graph do not show at all.
  • Images display as larger or different sizes.
  • The toggle item property in SSRS displays very messy.

I am using Visual Studio 2008 with SQL Server 2008 R2.

Cheers, Jon

Sql Server Reporing Services not opening reports

$
0
0

I have configured both the web services and report manager urls in Sql Server 2012 configuration manager. I can connect to them. However whenever I attempt to open a report I have there, here is the error message I get:

An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.
(rsReportServerDatabaseError) Get Online Help Invalid object name 'DataSets'. Could not use view or function 'ExtendedDataSets' because of binding errors.

I have set the targetserver url in VS 2010 to be my host IP/the database name instance in SQL Server 2012

When I try to deploy my report within VS 2010 I get the following error msg

Error    1    
An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database.
    
Disconcerting, mystifying and plain irritating to say the least.

Any helpful answers are very much welcomed

Report Manager Error: The underlying connection was closed: The connection was closed unexpectedly.

$
0
0

Hi, I know there is many topics with this subject, but I already did my search (I went to the fifth page of my google search) and I still don't got the solution.

Problem:

I recently installed de Report Services 2008 in my computer and I configured with the default settings. When I try to acess the Report Manager(http://localhost/Reports) I get this error:

The underlying connection was closed: The connection was closed unexpectedly.

The content of the log file:

ui!ReportManager_0-7!450!06/14/2014-18:58:36:: e ERROR: The underlying connection was closed: The connection was closed unexpectedly.
ui!ReportManager_0-7!450!06/14/2014-18:58:36:: e ERROR: HTTP status code --> 500
-------Details--------
System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.

   at Microsoft.SqlServer.ReportingServices2005.RSConnection.GetSecureMethods()

   at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetSecureMethods()

   at Microsoft.SqlServer.ReportingServices2005.RSConnection.IsSecureMethod(String methodname)

   at Microsoft.SqlServer.ReportingServices2005.RSConnection.ValidateConnection()

   at Microsoft.ReportingServices.UI.Global.SecureAllAPI()

   at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel(HttpsLevel level)

   at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args)

   at System.EventHandler.Invoke(Object sender, EventArgs e)

   at System.Web.UI.Control.OnInit(EventArgs e)

   at System.Web.UI.Page.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
ui!ReportManager_0-7!450!06/14/2014-18:58:38:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at System.Web.HttpResponse.End()
   at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at    at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at System.Web.HttpResponse.End()
   at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
library!WindowsService_3!14ac!06/14/2014-19:02:18:: i INFO: Call to CleanBatch()
library!WindowsService_3!14ac!06/14/2014-19:02:19:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings.
library!WindowsService_3!14ac!06/14/2014-19:02:19:: i INFO: Call to CleanBatch() ends

I already try:

  • Modify in the file "rsreportserver.config": <Add Key="SecureConnectionLevel" Value="0"/>
  • Turn Off the Windows Firewall
  • Turn Off the Antivirus
  • Install and review IIS configuration
  • Reboot computer Cool

I realy dont know what is missing.

Note: The Report Service Web Service is working.

Many thanks.

Binding a textbox to an object

$
0
0

Let's say I have two objects in an entity-framework:

public class Person
{
     public int key;
     public string Name;
     public Address HomeAddress;
}

public class Address
{
     public int key;
     public string street;
     public string city;
}
    

In my report, I want a textbox to be able to display the fields from the HomeAddress object inside of Person.  How can I do that?  I can see the fields for Person in the Report Editor, but cannot access the fields for the Address object in the interface.

align chart column and x axis label properly

$
0
0

hello i have on rdlc report on that i am ploting column chart.its showing correctly but column and x axis labels are not aligned properly hoe to achive that?? 

Reduce the width of columns in stacked column chart on rdlc.

$
0
0

hello,

on rdlc report i have one stacked column chart.i want to reduce the default width of chart column .

How to achive this???


Problem display table/tesxt box in reporting viewer

$
0
0

Hi all,
we are deploying some reports using a web application with reporting viewer. All it's working fine, but we have a strange behaviour, when the text is long and doesn't contain space between words the report shown through reporting viewer display e long line that goes outside the web page, instead of we ha a long text with space between words, the textbox grows vertically and the report remain correctly in the main page.
We are having this issue only with the reporting viewer, if I open the report directly from reporting server it works fine.
In the general settings of the test table text box we have left the default settings with "can grow" = true and "can shrink" = false
Can someone help us and give some tips on this "issue"?

Need some Help with SSRS expression?

$
0
0

I have a date column which shows me 2 values: Either date (1/1/2014 07:30PM) or Null.

I also created a calculated field "Month" which shows me only Month and a year but it also shows January 1 for Null Values

"=MonthName(Month(Fields!Requested_Start_Date.Value)) & " " & Year(Fields!Requested_Start_Date.Value)"

I also tried doing something like this:

=IIF(ISnothing(Fields!Requested_Start_Date.Value),"No Requested Date",(Fields!Requested_Start_Date.Value)

which shows me "No Request Date" for Null values but it also shows me the whole value of day and month (1/1/2014 07:30PM)

Is there anyway to combine those 2 values so I can get ""No Request Date" for NULL values but it also shows me month and a year as well instead of showing value in  DATE format?

View Report button

$
0
0

Good afternoon.

The View Report button is right aligned.  How I can I make it left aligned please? 

Thank you for your help.

Sincerely,

Mike

Thickness of lines in Line Chart

$
0
0

I'm using client-side reporting (RDLC) to draw a line chart in ASP.NET. This chart has two series (lines), and I want to increase the thickness of only one line. How to do that?

SSRS Query Help

$
0
0

My query below executes Zero Rows. I need to get these columns;DemoGroupOrder,DemoGroup,DemographicGroup & DemoGrouplabe. How should I write this query, so I get the rows I want.

Thanks for your help

Declare @DemoGroupOrder int,
@ReportDate date,
@DemoCategory varchar (200)

SELECT DISTINCT 'Age' DemographicGroup,
CASE WHEN DATEDIFF(YY, [Date of Birth], @ReportDate) < 25 THEN '<=25'
WHEN DATEDIFF(YY,[Date of Birth],@ReportDate) BETWEEN 25 AND 35 THEN '26-35'
WHEN DATEDIFF(YY,[Date of Birth],@ReportDate) BETWEEN 36 AND 45 THEN '36-45'
WHEN DATEDIFF(YY,[Date of Birth],@ReportDate) > 45 THEN '46+' END AS DemoGroup,

case
WHEN DATEDIFF(YY,[Date of Birth],@ReportDate) < 25 THEN 1
WHEN DATEDIFF(YY,[Date of Birth] ,@ReportDate) BETWEEN 25 AND 35 THEN 2
WHEN DATEDIFF(YY,[Date of Birth],@ReportDate) BETWEEN 36 AND 45 THEN 3
WHEN DATEDIFF(YY,[Date of Birth],@ReportDate) > 45 THEN 4 END AS DemoGroupOrder
INTO #Demographic
FROM BorrowerDim_Staging
UNION
SELECT DISTINCT 'Marital Status',[Marital Status], 1
FROM BorrowerDim_Staging
UNION
SELECT DISTINCT 'Race', Race, 1
FROM BorrowerDim_Staging
UNION
SELECT DISTINCT 'Sex', Sex, 1
FROM BorrowerDim_Staging
SELECT *, DemographicGroup + ' - ' + DemoGroup DemoGrouplabel
FROM #Demographic
WHERE DemographicGroup IN (@DemoCategory)
ORDER BY DemographicGroup, DemoGroupOrder

Viewing all 1418 articles
Browse latest View live