Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

Can not find reportingservice2010 class in reportservice2010 namespace, instead, I got reportingservice2010soap class.

$
0
0

I used SQL server 2008 R2, Visual Studio 2008 window form.

I added web service reference:

http://<Server Name>/ReportServer/ReportService2010.asmx?wsdl

 in my project successfully. and give namespace name as reportservice2010, in namespace reportservice2010, there is no reportingservice2010 class, instead, I found reportingsercie2010soap class.

but,


SSRS 2008 R2: Using a value returned by SP as a parameter to another SP with Oracle backend

$
0
0

Hi,

First to state, I am not a master in SSRS yet, only have been using it for last three months.

I have stored procedure in Oracle which I would need to execute twice, second one having parameter needed from the first procedure.  One of the values returned from the second should be used as a base for detail lines calculations. With every little workaround I could have figured out so far, I always end up getting similar error message, all bound to the same issue, fields cannot be used as parameters. I have tried expressions, report variables and lookup function, every time ending up having the same error message.

Tried to search and apply many techniques already found on the forums about the similar problems people have had, but none of them being exactly as my issue, nor was the answers that solved their problems applicaple to my problem.

The reason why I decided to use the stored procedure is that the main database is using financial periods in the column heading and only storing the start and end date of each period, so it is not possible to refer to a certain column in the table with available period value. So I ended up writing dynamic SQL in Oracle SP to get the right value, in this case financial period's starting date. My first procedure is in its own dataset and is first started based on user input of start and end dates, it works without any problems. This procedure is finding the correct period start date and returning it in a reference cursor to dataset, amongst with other calculated values. I should use this start date returning value as a parameter to the same procedure, but in another dataset, and use it as a start date, while end date is the user supplied start date - 1. So far SSRS hasn't complained about that, since I am using an expression on existing report parameter, but it is complaining about using field value from the other dataset.

I saw in some forums subreports as suggestions, but i cannot use subreports due to the fact that I need to use the second SP calculated return values on detail lines calculations. So I am running out of ideas. Any ideas are welcome, as long as it helps to solve this issue. :)

Thanks in advance.

Jan

SSRS 2012 Forms Authentication - Report Builder Login not calling IAuthenticationExtension.LogonUser

$
0
0

I am sorry if this is a duplicate, but none of the other solutions to somewhat related questions applied, worked, or references were still available. 

I currently have Forms Authentication working for SSRS 2012 in native mode -- I am not using SharePoint.  I have a custom class that implements IAuthenticationExtension.  This class is constructed and used properly in many calls, particularly to IAuthenticationExtension.GetUserInfo, so I know it is hooked up to some extent.

When accessing Report Builder, I understand the need to authenticate with fresh credentials, but my IAuthenticationExtension class's LogonUser method is not being invoked.  I am not getting any errors in reporting services that I can find in a log or the event log.

When prompted, I am capturing the web service call:

"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><LogonUser xmlns=\"http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer\"><userName>a</userName><password>assadsad</password><authority /></LogonUser></soap:Body></soap:Envelope>"

with bogus username and password.

I would be very grateful for any help fixing this so that my security extension class's LogonUser method is properly invoked while handling the above web service logon request.

Thanks,

Kyle

PS.  This applies to SSRS 2012 (sp1) : Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64)
    Dec 28 2012 20:23:12
    Copyright (c) Microsoft Corporation
    Developer Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )


Kyle Fulton

Lookup Function on Image Value Not Working

$
0
0

I'm having an issue getting a Database bound image to display in a SSRS 2008 R2 report.  Any idea why it won't display the image in Method #1 below?

The report prompts for a logo to be selected by user displaying a list of logos bound to a report parameter called LogoID.  LogoID parameter is bound to the following list where Value field = LogoID and  Label field = LogoName.  Table def below:

dsLogoList definition:

LogoID int
LogoName varchar(25)
ImageData varbinary(max)
ContentType varchar(25)

Method 1: THIS DOES NOT WORK:

I use the following Lookup function on the Image control under "Use this field" to set the image value for the Logo:

=Lookup(Parameters!LogoID.Value, Fields!LogoID.Value, Fields!ImageData.Value, "dsLogoList")

Please note the image source = Database and Mime type = "image/gif" (all images are gif in database).

I get no errors but when i run the report in BIDS or after publishing to server the image is not displayed. 

Method 2: THIS METHOD WORKS:

I get this to work if i create a second dataset called dsLogoLookup that includes a query param to filter by logoID:

select LogoID, ImageData from tblLogos where LogoID = @LogoID

Then i bind Image control using the following expression:

=First(Fields!ImageData.Value, "dsLogoLookup")



WebBrowser-Authorization for Reporting Services

$
0
0

Hi,

i have a .Net-application where i use ReportingServices2008. There i build an url with parameters to show the finished report in my wpf WebBrowser. This works fine...but now there is the login-popup for credentials and i don't want, that the user must sign in. I want to do that  automatic in background.

I searched some days on Google and got the conclusion that Ntlm with webbrowser is very difficult so i changed authorization to Basic for my ReportServer.

Now i shuould submit my credentials in this way:

 

string authHeader = "Authorization: BASIC "+ Convert.ToBase64String(Encoding.ASCII.GetBytes("user"+ ":"+ "pwd")) + ""+ System.Environment.NewLine;
browser.Navigate(uri, string.Empty, null, authHeader);

 

But it didn't work...the login-pop is still occuring when i open the url with my WebBrowser

I found an article about anonymous access on ReportingServices but i dont want that everyone can do everything on the reports.Further i look forward to change to SQLServer 2008R2 and it seems, that ther isn't a soloution for anonymous accsess on ReportingServices jet.

 

In hope, that someone can help me

Thanks

Doriath21

 

 







Merging cells (horizontally) depending on the row

$
0
0

Is it possible to merge cells within several columns depending on the row number?

 

e.g.

 

   colA   colB   colC   colD

1    x        a       b        c

2    y     -------------------------

3    z     -------------------------

 

for row # 2, #3, colB colC colD are merged.

how to remove row data that should be blank?

$
0
0

hi guys! could you please help me. i got a problem using matrix table.

in my column i got 2 types of data 1st is withpay and 2nd is withoutpay

if there are no data the date should not appear. what is happening in my matrix table when there is no data it will copy the date in other column. as you can see if in the photo below there are no data in red box Start and End date should be blank. any solution guys? thanks in advance!

.

this is may matrix layout

Using Aggregate Functions with a Guage

$
0
0

Hey all, 

Currently I have fields for:

Computer Name

Last Check to the Server.

I also have calculated fields to determine whether these computers are considered "active" or "inactive".  What I want to do is have a guage that displays the percentage of "active" machines.  My current code is:

=IIF(Fields!InactiveCheck.Value >= 90, 0,(1/(COUNT(Fields!Computer_Name.Value)))

Thus each Active Computer will give me (1/total computers) and I can use the guage SUM function.

The problem is that I cannot use the "Count" or "Sum" function within my calculated field and the total number of computers changes constantly.   Any Ideas?

Thanks,

Nick


SSRS and ssl certificates

$
0
0
(This is a cross post from the MSDN forums, as no has repsonded after 5 days.)

I have a problem with creating and using a self-signed ssl certificate for SSRS 2008 and there doesn't seem to be any clear instructions on the net.

Setup - server1 (windows server 2008 w SP1) hosts a website. server2 (also windows server 2008 w SP1) hosts SQL reporting services. (SQL is standard 2008 x64 w SP1 CU1). Both servers are on the same lan & domain.

Base setup:
Configure the website on server1 and SSRS on server2 to use http. User connects to the website on server1 and can access the reports on server2 with no problem.

Secure setup:
Purchase and install a certificate for server1. The clients now connect to the website on server1 using https no problem. server2 is still configured to use http. SSRS rejects the communication from server1.

My options are :
a) Use a self signed cert on server2.
b) buy another ssl cert for server2.

The current method of creating a self-signed certificate without installing IIS 7 on server2 is:
http://msdn.microsoft.com/en-us/library/ms186362.aspx

When I run the makcert command:
makecert -r -pe -n CN="server1.mycompany.com" -eku 1.3.6.1.5.5.7.3.1 -ss personal -sr localmachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

I get the error:
Error: Save encoded certificate to store failed => 0x5 (5)
Failed

If anyone has any insight on the following, it will be greatly apreciated.
a) Will a self-signed cert be enough for server to server communication?
b) Is the "-eku" and the "-sp" options correct for SSRS?
c) Any ideas on using makecert command to avoid the error above

Matrix Problem - Can I show all columns?

$
0
0

Good morning all.

 

I have a report that is set up as a matrix.  The repor shows data relating to review numbers (for example 1-6).  Based on the date range selected from my parameters the report will show stats and the matrix grouping is by the review number.

 

My question is this, if the dataset returns only some of the review numbers, can I do anything to show the other review numbers?  They will always be from 1-6.

 

Thanks

fill all month in matrix

$
0
0

Hello, I have a matrix with year and month as column headers.
I'm sure you know the problem that when I don't have data to one of the month, I have a "jump" in my matrix (from April its jump to June).

Is there a trick in RS to handle this except by changing my sql query and union it with all the month?

Thanks.

Fill Matrix down rather than across

$
0
0

Hi,

My SSRS report has the below Matrix:

Is it possible to change this so that it appears vertically rather than horisontally? I'd like Fin Period and Percent On Time to appear as column  headers ansd for the data to appear downways. Below is a crude image of how I would like it to appear:

Cheers

Paul


subscription with zip folder attachemnt

$
0
0

Hi ALL

I need to subscribe a report with attachment of Zip folder.

can we do this in SSRS? then how?

Please help

Average a LOOKUPSET with a code in SSRS

$
0
0

So I have a dataset where I need to sum the lookupset and I achieved this by using the below code, however i now need to average another column from the same dataset (by lookupset) and I cannot seem to replicate a function like below.  Any guidance would greatly appreciated.

Function SumLookup(ByVal items As Object()) As Decimal
  If items Is Nothing Then
    Return Nothing
  End If

  Dim suma As Decimal = New Decimal()
  suma = 0

  For Each item As Object In items
    suma += Convert.ToDecimal(item)
  Next

  Return suma
End Function

How the subreport take parameter value from the main report?

$
0
0
I have a main report and a sub report. the main report is to display the billing report and the subreport is to display detail tarif of the billing. the both report work well stand alone. the subreport should take 3 parameter from the main report values. they are idtarif,date_periode and water_usage. I dont know how the subreport take paramaters value from the main report. in code DetailTarifSubreportProcessingEventHandler below i have to hardcode the parameter to make the subreport work. I want the subreport take the parameters value dynamically from the main report. 
Here is the code from showreport.cs
public showreport(string sqlwhere)
{
	sql = "call sp_water_bill('" + con + "','" + sqlwhere + "')";
	runReportSub("reports/report_water_bill_print.rdlc","Data",loadDataChart(sql),"Report");
} 
private void runReportSub(string rdlc,string dataset,DataTable data,string title)
{
	this.Text = title;
	this.ClientSize = new System.Drawing.Size(750, 750);
	rpt.ProcessingMode = ProcessingMode.Local;
	rpt.LocalReport.ReportPath = rdlc;
	rpt.LocalReport.DataSources.Add(new ReportDataSource(dataset,data));
	rpt.LocalReport.SubreportProcessing += 
			new SubreportProcessingEventHandler(DetailTarifSubreportProcessingEventHandler);
	rpt.Dock = DockStyle.Fill;
	this.Controls.Add(rpt);
	rpt.RefreshReport();
}
void DetailTarifSubreportProcessingEventHandler(object sender, SubreportProcessingEventArgs e)
{
	DataTable detailTarifData = null;
	//the subreport should take 3 parameter from the main report values. they are idtarif,date_periode and water_usage
	string sqlsub = "call sp_detail_tarif('3','2008-08-01','41')";//-->hard code to test the subreport and it work
	if (detailTarifData == null)
		detailTarifData = loadDataChart(sqlsub);
	e.DataSources.Add(new ReportDataSource("Data",detailTarifData));
}


Infinity issue in SSRS

$
0
0

I have the following expression in an SSRS report:

=Sum(Fields!column1.Value)  * 3600 / ( Sum(Fields!column2.Value) + Sum(Fields!column3.Value) )

when the report runs I get infinity for the column when there is a zero in any of the columns calculated in the expression

Could anyone help me on how to modify the expression to handle the zero values?

Thanks in advance

Chris

Why the parameter pane hidden , in drill through reports , SSRS?

$
0
0
Hi All,

I just started working with a drill through report , where 2 reports are linked back and forth.  In the designer each report shows the parameter pane even after linking to the other report. But in server, after deploying the report, the parameter pane is vissible just for the starting report and just for the first time. when i click on the link and get the drill through report the parameter pane is hidden . Is this the way it is given in SSRS 2005. Or  is there any way i can show the parameter pane in the drill through reports. Also is there any functionality which differentiate the report whether its called directly or through a link from another report, because i would like to hide some  in the drill through reports fields  if the report is been called as linked report.

Please advise.

Thanks,
San

How can I hide a column when exporting to Excel (Row Group Column)

$
0
0

When I create a row group in a tablix, a column is created to house the group. When I export to excel, this column is merged and will not allow normal sort processes.

How can I "hide" the column that is created for the group so that it is not merged into excel?

I'm working in SSRS 2012.

On the column, the Hidden property is set to true.

Thanks!

adding another if statement after a bunch of nested iif's

$
0
0

Hi everyone, 

Got a little issue thats causing me some headache. I have basically got a bunch of nested IIF statements, 6 in total which are working perfectly and basically contruct a sentence with information from the database depending on what is selected. so for example is this entity is selected display this and so forth. This works perfectly. what  I would then like to add is another IIF statement to the end that returns another value but keep getting an #Error.  So at present it looks like this, the bit in bold that i am interested in see if it can be done.

Thanks

IF (field = "entity", " TEXT" , IIF(........... "", IIF(............. "","")))AND IIF(......  

Accessing Multi-valued Parameters

$
0
0

In my report (SSRS 2012) I have a multi-valued parameter (@BankNum) that is populated by a list of available banks.

In the dataset (parameters tab) I have the expression = join(Parameters!BankNum.Value, ""), and the parameter is set as a multi-valued parameter under the report parameter area.

When the report runs for a single value, the data appears as expected. When multiple or all is selected, the report comes back empty.

What am I missing?

Thanks!

Viewing all 10045 articles
Browse latest View live


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