Quantcast
Viewing all 10045 articles
Browse latest View live

SSRS - Back ground Color of Below Average Value

Hi All,

I have requirement, In my chart report target(Dased Lines) and Below average lines are there, I want to set below average line values background color Pink color like below diagram. How can we achive the below requirement in SSRS 2012.

Note: Pink Color of Below Average Value based on expression.


Image may be NSFW.
Clik here to view.

Thanks in Advance...


Compare UserID to a specific AD group

Here's what I need to do..

1. I have a dataset with userID's

2. I want to only show the records where a userID is a member of a specific AD group,

I'm not allowed to use a linked server.  I was able to make a datasource in SSDT that connects to AD, but I don't know where to begin with the dataset expression in the SSRS report.

Enable the network service in the report configaration manger.

Hi friends,

I am facing one production issue,

My Report service account, by default "Network Service" in the config manager.

 some of my onsite people my mistakenly changed the SSRS service account to the "Local system".

when I am trying to change it back, Manager is ask to create the dialog box 2(encrypt key) given below...

When try to create the encrypt account , report server is stopped working..

I had changed the properties of the reporting services also..

Shall any one please provide help on this...

1.........

Image may be NSFW.
Clik here to view.

2..

Image may be NSFW.
Clik here to view.

Split report into multiple .pdfs during windows fileshare delivery

Hi folks, 

I have a report that groups a particular dataset by customer, with a page break between each customer. If print this report, it looks great - one page per customer.

What I would like to do is have the report deployed on schedule to a windows file share, one .pdf file per customer. Any ideas or workarounds on how to parse the output into individual .pdfs (one per customer) instead of a single .pdf containing all customers? I get it if this is not possible. Wishful thinking - I'm not a programmer.

My current (painful) workaround would be to replicate the report for each potential customer, and set a schedule for each report to deploy sequentially. (Customer 1 at 9:00, Customer 2 at 9:01, etc).

Currently on SQL Server/Visual Studio 2008.

Any insight or workarounds would be appreciated. Also, let me know if you'd need more info.

Thanks!

Change file extension

hi, 

Using SSRS 2008R2 is it possible to change the file extension of a CSV data driven subscription?  I'm outputting a text file with a .csv extension, but users have access to these files and I don;t want them opened with Excel and then saved back in an incorrect format. 

These are the options I have from the report "manage" option.  

Image may be NSFW.
Clik here to view.

how to convert character value into number value using ssrs?

Hi,
I have a field that contains number but it actually is character.
I want to convert it to number so i can put it into the query like this:
sum(field) as Totalmyfield.

Please help.
MN

pull Active directory user list of a specific global group

I have a dataset in a ssrs report where I'm trying to list the members of a particular group.  The query runs without error but returns no results even though I know there are members.  If I change my where clause to ..company='companyName' I do get results.  Any advice?

SELECT       sAMAccountName, displayName
FROM         'LDAP://DC=xxxx,DC=xx,DC=xx,DC=xx,DC=xx,DC=xx'
WHERE        memberOf='groupName'

SQL Reporting Services - Limited Reporting Control.. How to select first day of Previous Month?

I am trying to run a scheduled, automated report through SQL Reporting Services which will run a monthly report at the beginning of each month using the first day of the previous month as the start date and the last day of the previous month as the last date.

I am trying to configure the report through SQL Reporting Services but only a limited set of criterion fields are available. They are:

All Label                            Date Filter

Aggregation                      Support Group

Classification                    Assigned to User

Time Zone                         TimeZoneName

Start Date Type                Start Date Value

Start Date Offset Type    Start Date Offset Value

End Date Type                  End Date Value

End Date Offset Type      End Date Offset Value

Service                               Queue

I cannot find anywhere the options available for values to enter in the “Start Date Type” or “Start Date Offset Type” fields. I have found the SQL on line to select the “First day of the Previous Month” etc., but cannot determine where to enter this code to make it work with the report automatically. Do I need to open the report through Report Builder V3.0 and enter the SQL query as a default value in one of the parameters? If so, can someone detail the steps or me to do that as I cannot determine how to make that work.


Passing Multivalue Parameter in URL in SSRS 2008 not working

I am trying to test the concept of passing multi value parameters from one report using the Action Property of a textbox to open another report is a new Window with the Multi Value parameter values already passed.

The test involves the following:

Report 1:

1. Multi Value Parameter @ReportParameter1 has three Values: Value1, Value2, Value3

2. Has a text box with the Action Property set to Go to URL with the following Expression:

="javascript:void(window.open('http://reportserver/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fReport2&rs:Command=Render&ReportParameter1="
+ JOIN(Parameters!ReportParameter1.Value,"&ReportParameter1=") + "'))"

Report 2:

1. Has Two Parameters @ReportParameter1 and @ReportParameter2

2. @ReportParameter1 has Available Values as follows: Value1, Value2, Value3

    Does not have any default Values

When I click on the textbox on Report1, it does navigate to Report2 but none of the Values are being set.

Can someone please tell me what am I doing wrong or missing?

ReportingService2010.PrepareQuery() returns an error : "The input XML does not conform to the schema. XML grammar is described in the API documentation"

Hi,

I'm trying to create a datadriven subscription for a report using ReportingService2010 webservice. The Sql Server is 2012 version.

I have done it pretty much like in this example : https://technet.microsoft.com/en-us/library/reportservice2010.reportingservice2010.createdatadrivensubscription(v=sql.105).aspx

But when I'm calling

results = rs.PrepareQuery(delivery, dataSetDefinition, out changed, out paramNames);

it gives the error message " "The input XML does not conform to the schema..."

This is propably due to wrong namespace in the dataobjects like in datasource (see below)

/// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34234")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer")]

According to this : http://stackoverflow.com/questions/5462425/how-to-use-reportingservice2010

the namespace should be : xmlns="http://schemas.microsoft.com/sqlserver/reporting/2006/03/reportdatasource

instead of http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer

for this to work. How do I go about to fix this!?

Kind regards, Wilson

Paasing values to SSRS Bookmark

Hi

I am using 2 charts in my SSRS Report. Requirement is to load the Right side chart based on the click event from left chart.

I can achieve it using go to report option. But the issue is total page getting refreshed while using this option. I feel bookmark option will be the best. But I don't think I can pass a value to Bookmarks.

Any idea.. Pls help on this...

Regards,

Gopal.

Calculating the difference between columns within a Column Group

Hi,

Given the attached report, is there an easy way of calculating the difference between theToday and QTR Start column?

Because of the Account Group, the report looks like the sample shown on the second image.

Image may be NSFW.
Clik here to view.

Sample report:

Image may be NSFW.
Clik here to view.

How to add custom .dll in ssrs report 2010

Hi,

I am working on SSRS report with project server 2013 and I want to add custom dll in  SSRS report.I have create dll first then add into GAC Assembly After that i have add this dll in report project in SSRS.when i have try to deploy and build report,I have facing some issue like...

.An error Occurred during local report processing.
Failed to load expression host assembly.
Details : Cannot Perform CAS Asserts in Security Transparent methods.


SSRS - Display Dataset fixed row as report columns

Hi All,

We are planning to develop weekly report in SSRS.

For this we wants each day as column & some expenses[Numeric figure in row]

we have dataset like 


day exp1exp2exp3
17/05/2015120150650
18/05/2015150320120
19/05/2015320150150
20/05/2015150450320
21/05/2015320800150
22/05/2015150650450
23/05/2015450450100

& we are planning to develop report like 

Day 17/05/2015-18/05/2015-19/05/2015-20/05/2015-21/05/2015-22/05/2015-23/05/2015
exp1120150320150320150450
exp2150320150450800650450
exp3650120150320150450100

There are some other filters are there that i have applied in my report tablix property.

Please suggest any 1 have idea regarding this.

Alias in the data

Hi,

One of the columns in the report shows unwanted <Expr1> in the data.

It is getting appended at the start and end of the column data. I don't want any alias to that column but ssrs is always appending it no matter what. How do I get rid of it?

Here is my query which is getting alias <Expr1>: (Bold and underlined)

   REPLACE(CONVERT(varchar(MAX),
                             (SELECT        notetext + CHAR(10) + CHAR(9)+ CONVERT(varchar, createdon, 20) + '     ' + createdbyname + 'X1X$X' AS<Expr1>
                               FROM FilteredAnnotation
                               WHERE        (objectid = CRMAF_FilteredIncident.incidentid) FOR XML PATH(''))), 'X1X$X', CHAR(10)) AS notetext

Please help.        Thanks. 

Image may be NSFW.
Clik here to view.








SSRS 2008 subreport showing #error

Presently I have a main report and subreport, with the subreport having values for a carbon copy contact, which when it is displayed it shows these values:

 

Peter Piper      #Error      #Error    peterpiper@mycompany.com      #Error

Donald Duck    #Error      #Error    donaldduck@mycompany.com    #Error

etc.

 

When I run the subreport directly, it correctly returns all the values:

 

 

Peter Piper      123-345-6789      Calgary    peterpiper@mycompany.com      T

Donald Duck    987-654-3210      Calgary    donaldduck@mycompany.com     F

 

Here are the details on SQL Server 2008:

 

Microsoft SQL Server 2008 (SP2) - 10.0.4064.0 (X64)   Feb 25 2011 13:56:11   Copyright (c) 1988-2008 Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2) 

 

Does anyone have any suggestions as to why the #Error is showing up the the main report?  Please let me know if you require any more info about the report.  TIA.

 


Unable to install Client Print Control for SSRS 2014 onto a 32-bit Windows 7 PC

The title pretty much says it all.

We have a client who recently upgraded to SQL Server 2014. Everything looked good until they tried to print out a SSRS report on a 32-bit Windows 7 machine. First the prompt pops up asking if you want to download the control from Microsoft. Hit yes, and it acts like it is going to install. Instead of the printer dialog, we get an error that states:Printing is not available. Verify that ActiveX is enabled, or try using Internet Explorer for the desktop. 

We had no problem with SSRS 2012 Client print control. I have tried installing it with UAC turned off, and as Domain admin (which normally fixed the problem in older versions).

I have tried to install it manually by extracting the files from the C:\Program Files\MSRS12\Reportingervices\ReportServer\Bin\RSClientPrint-x86.cab and putting the files at C:\Windows\Downloaded Program Files and ran  regsvr32.exe /s "C:\Windows\Downloaded Program Files\RSClientprint.dll" This has not worked either.

Any suggestions on what I should try next? Or will this even run on a 32-bit version of Windows 7? 

User.UserId and SSRS Caching

Hello,

I have a situation where I need to have caching enabled in SSRS reports. It's mandatory since without it the reports take like 40 minutes to run. However, it's also mandatory that I filter the reports' content based on the User that is executing them.

I've been researching about this issue and I haven't found any workaround that allows making references to User!UserID and cache the report. Apparently, it's like that by design, as explained in the following thread:

https://social.msdn.microsoft.com/Forums/en-US/61bcc226-7188-4187-86e6-286c113bbc17/action?threadDisplayName=sqlserver&forum=sqlreportingservices

However, I still don't understand why it doesn't allow caching if the User!UserID is not used as dataset's parameter.

I have tested and I can indeed make references to User!UserID in a label inside of the report and it's read from cache. I have double checked this against SSRS's database "ExecutionLogStorage". I can see there that the report is indeed being read from cache.

Hence, it's not the reference itself what causes the cache invalidation, it's where I use it. I know I can't use it as dataset's parameter, but I've tried using it as dataset's filter instead. It still causes the invalidation.

I have custom code in order to get the UserID, and I make a call in an expression in a dataset's filter. The code is as follows:

Public Function UserName()
Try
Return Report.User!UserID
Catch
Return "System"
End Try
End Function

Even with that, it still causes the cache invalidation. I have tried with and without code, I can't make it work.

I really need to filter the dataset's content based on the user. The dataset is used to show the available options in one of the report's parameters.

Is there any workaround to make the filter by User!UserID work, without causing cache invalidation.

Any help will be appreciated, any idea. I really need to make it work, this report without caching can't work. And it needs to be secured.

Thank you!

Report can not find Custom Code...- unrecognized identifier error

I wrong a custom code in my report - Public shared Function Myfunc...

 

and in the header textbox - I tried to reference this code = Code.Myfunc.... the Myfunc gives an error Unrecognized identifier.

 

what am I doing wrong? The code is written in the report properties = Code Tab.

 

Thx

 

Unrecognized identifier error in custom code

Hello all,
I've made a Report porting from SS2008 to SS2008.
In a textbox I use a:

Number -> Custom Format

like these:

=Code.FormatString(Fields!NumDecRpt.Value)

but gives me the "Unrecognized identifier" red squiggle.

My FormatString function (in the rdl file) is this:


Public Shared Function FormatString(ByVal Decimals as object) As String
  dim format = "N0"
  if not (Decimals is nothing or Decimals is System.DBNull.Value) then
    dim decs as integer
    decs = Convert.ToInt32(Decimals)
    if decs&gt;0 then
      format = "N"+decs.ToString()
    end if
  end if
  return format
End Function

What's wrong with this?


Luis

Viewing all 10045 articles
Browse latest View live