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

Use System.Drawing.Imaging in custom report code without using a custom assembly

$
0
0

Hello everybody,

I would like to use a little code function which renders a System.Drawing.Bitmap, saves it to a MemoryStream and return those bytes to a Reporting Services image control. I would like to do so without installing a custom assembly on the report server, just by adding a reference to System.Drawing and use the custom code inside of the RDL.

Upon execution (in the Visual Studio preview as well as on the real reporting server), this gives a SecurityException because the System.Drawing.dll seems not to be trusted.

Can I use System.Drawing anyhow in custom SSRS code without touching the configuration of the report server?

UPDATE: As I just discovered, the SecurityException is not thrown when I use the Bitmap class, but when I use the Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream) method. I would not be astonished if I cannot get the Reporting Server to execute this method without some configuration on the server itself. In my scenario, I have to overread a String, a DateTime and another String serialized using a BinaryFormatter. I could overread this (unneeded) information if I had a way to determine how many bytes have been used for the serialization. I'll search the web, perhaps I'm lucky and this is documented.


Best Regards, Stefan Falk



SQL Server 2012 Reporting Services Report Manager using non-HTTPS URLs on part of site

$
0
0

For potential ease of understanding, I am seeing the same issue as this person here.

Currently, my site is successfully using HTTPS in all areas of the /Reports site, with a single exception. If you drill down to a report and go to "Manage", the following links are all http://, not https://:

  • Parameters
  • Data Sources
  • Subscriptions
  • Processing Options
  • Cache Refresh Options
  • Report History
  • Snapshot Options
  • Security

These remain regardless of the configuration combinations I enter in Reporting Services Configuration Manager. I'm not sure what makes this part of Report Manager special. Even if I only enable https in the Report Manager URL settings, these links all stay as http (port 80). I can find no references in config files to this.

Any assistance is welcome. Obviously having non-encrypted links is not acceptable.


Reportviewer for SSRS 2014

$
0
0

I have a ASP.NET application which render the reports, SSRS server is 2014.

Is there a report viewer available for SSRS 2014, or Reportviewer of SSRS 2012 will work with SSRS 2014?

SSRS 2008 R2 - Separate report for Each record?

$
0
0

Hi,

How do I create new pdf reports for each records from a table? The pdf files should be named as customerid.pdf and needs to be delivered in email or share path? 

Each record has enough content for 5 page of pdf report.

How do we achieve this?

Thanks

Raj

Multi select Parameters

$
0
0

I need help with my report

I have 2 parameters in my report

Is Disabled? Yes or No

IS Deleted? Yes or No

I am trying to write

IIF statement to show when Parameters!Is_Deleted.Value= Yes and Parameters!Is_Disabled.Value = No then display "Inactive Accounts"

IIF statement to show when Parameters!Is_Deleted.Value= No and Parameters!Is_Disabled.Value = No then display "Active Accounts"

Is this possible?

Thank you in advance

How to show filesystem(filenames from a folder) in SSRS

$
0
0

Hallo everyone,

I haved already tried the following solutions

http://forums.asp.net/t/1422162.aspx?System+Security+SecurityException+Request+for+the+permission+of+type+System+Security+Permissions+FileIOPermission+mscorlib+Version+2+0+0+0+Culture+neutral+PublicKeyToken+b77a5c561934e089+failed+

AND

http://stackoverflow.com/questions/8476231/ssrs-custom-code

Both didn't work.

My problem is:

What I want is to show all filenames from a certain folder in SSRS.

I started with custom code in SSRS:

Public Function getArrayOfFilename(pathname As String) as Array

        Dim arrayOfFilename As String() = System.IO.Directory.GetFiles(pathname)

        System.Array.Sort(Of String)(arrayOfFilename)

        Return arrayOfFilename

End Function

My questions are:

1. If I try to call this function in a textbox like this:

getArrayOfFilename("C:\Help\")

then I get this error:

[rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox8.Paragraphs[0].TextRuns[0]’ contains an error: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

2. Can I use this array as a dataset to carete a list or table  in SSRS?

Thanks for any hint!


Passing a parameter from an exploded pie slice/series to a tablix sub report

$
0
0
Hello all, I can't seem to get this working, I have tried passing the parameter from the series label and the series properties. currently the parameter gets passed (the value appears in the parameter text box) but does not change the tablix report results. I am using a SharePoint list as a data source and the report builder 3.0 in SharePoint 2013 integrated mode

Rich text is showing up on report but bulleted List is not coming as expected.

$
0
0

Hi there,

             I am using SSRS 2008, I export all of my reports to Word, I have created a report on which i am having a table. each placeholder has mark-up type as "HTML -Interpret HTML Tags as Styles".

I am fetching some rich text from DB and showing it on my page. but when rich text is having some data like below..............

Suppose this theRich text copied from WORDdocument . And there are some nested bullet lists as well here. Check how it is showing up in report.

1.   This is FIRST item

a.   FIRST SubItem1

                                         i.    3<sup>rd</sup> Level

b.   FIRST SubItem1

                                         i.    3<sup>rd</sup> Level

2.   This is SECOND Item

a.   SECONd SubItem2

b.   SECONd SubItem22

 the data on my report comes like below...... 

Suppose this theRich text copied from WORDdocument . And there are some nested bullet lists as well here. Check how it is showing up in report.

1.    This is FIRST item

a.    FIRST SubItem1

i.    3rd Level

b.    FIRST SubItem1

i.    3rd Level

2.    This is SECOND Item

a.    SECONd SubItem2

b.    SECONd SubItem22

 

 i.e spaces are not coming(DB text is having many &nbsp; but report is not picking them), the List is coming one below other without any indentation.

Urgent help needed!

Thanks

Shaikh Sadaf

 


Send SSRS reports by e-mail

$
0
0

Hi all,

I have created one report project. Is it possible to send generated PDF or EXCEL report by email ?

And also can we schedule this process?

Thanks in advance

Regards,

SG

ssrs matrix report row header freeze in 2012

$
0
0

hi,

can any one help me on the below issue...

i have a matix complex report multiple groups,drilldown things and all in my report for this i need row header freezing.

I tried column header visibility but it is not working.

It's littile urgent can any one help me on this

Thanks in advance...


dynamic reports in ssrs

$
0
0
how to use reportset in dynamic reports.I have  the existing report is using statment date parameters .we need to use report set parameter instead of date functions in query

Trouble using powershell with getSubscriptionProperties method fails because I can't create an ExtensionSettings object

$
0
0

I'm trying to use the GetSubscriptionProperties function of the ReportingService2010 library using powershell on a 2008r2 reporting service. Here's what I have written:

$serverInfo = "/reportservice2010.asmx"
$sourceUri = "http://rserver/reportserver" + $serverInfo

$sourceProx = New-WebServiceProxy -Uri $sourceUri -UseDefaultCredential

$extensionSettings = [ref]
$description = [ref]
$active = [ref]
$status = [ref]
$eventType = [ref]
$matchdata = [ref]
$parameters = [ref]

$sourceProx.GetSubscriptionProperties("DBF920D4-81FC-47D7-B738-20A6E9A90DD9", `
                                        [ref]$extensionSettings, `
                                        [ref]$description, `
                                        [ref]$active, `
                                        [ref]$status, `
                                        [ref]$eventType, `
                                        [ref]$matchdata, `
                                        [ref]$parameters )

When running that, I get this error: 

Exception calling "GetSubscriptionProperties" with "8" argument(s): "Cannot convert the "System.Management.Automation.PSReference" value of type "System.RuntimeType" to type"Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy47tserver_reportservice2010_asmx.ExtensionSettings"."
At C:\Users\joe\Documents\programs\migrate-sub.ps1:22 char:1+ $sourceProx.GetSubscriptionProperties("DBF920D4-81FC-47D7-B738-20A6E9A90DD9", `+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException+ FullyQualifiedErrorId : PSInvalidCastException

I'm fairly certain that I need to declare $extensionSettings as an ExtensionSettings object and construct the object. How do I do this? I've tried:

$extensionSettings = new-object -Typename ReportingService2010.ExtensionSettings 

It complains that I need to load the assembly because it doesn't know what an ExtensionSettings object is. $sourceProx doesn't have a method for creating an ExtensionSettings object, and the assembly ReportService2010.dll isn't downloadable. What can I do?


Using Azure internal load balancer (ILB) for Sql Reporting Services

$
0
0

I am attempting to implement a scale-out SSRS deployment using the Azure ILB feature. I have created 2 Sql Reporting servers using the azure images and have created a ILB endpoint on both servers.  I am then attempting to access the servers via the ILB from my .Net web application.  I can access the report server from my browser and am prompted for credentials using forms authentication.  there is no issue accessing the reports from a browser however my web application cannot access the reports and returns a 500 error.  I have a hunch this is due to an authentication issue due to invalid kerberos proxy authentication.

Does anyone have any information regarding the possible authentication mechanisms that are supported using Azure ILB?  

How to remove unused datasource connections in Report Builder 3

$
0
0
In Report Builder 3.0 using a wizard to create a new Report, select create a DataSet. It opens a "Choose a connection to a datasource" dialog box. It shows previously used datasource connections of other ReportSevers I have accessed long time back. But I dont want to see datasource connection not in use. How can I remove those datasource connections used in past but they are still available in the list.  

Export to PDF for sql server 2008 R2 fail and time out

$
0
0

Hi ,

I have a SSRS report when preview the report in BIs or SSRS report server report is generated correctly.

When I try to export this report to PDF It hangs.

Please note this report consists of on subreport and inside taht subreport there are 5 more subreports.

This issue is not always happen I have my employer number as inpput parameter and for some employers I can export to pDF while for some of them not!!

The error is "unable to evaluate expression".

Any idea would be much apprecaited!

Thanks,

Maryam




ReportViewer & IReportServerCredentials WORKS within Domain; FAILS with Cross-Domain request:HTTP status 401: Unauthorized

$
0
0

The IReportServerCredentials approach with the ReportViewer control is working fine within a domain, but I get a 401 not authorized error for a Web IIS server trying to call a SSRS server in another domain. I've see plenty of helpful postings on the use of IReportServerCredentials but nothing that provides suggestions for this cross domain issue. Hope someone has some ideas on this one. Thanking you in advance for your response.

Using VS 2008 VB.NET web app with ReportViewer control Version=8.0.0.0.

Outside domainA Web Server IIS 8. OS = Windows NT 6.2;

Inside domainA Windows 7 desktop; Inside domainA Windows Server 2003

SSRS using windows authentication and on SQL Server 2012. OS = Windows NT 6.2

The processing described below successfully produces a report when the web server app runs on a machine in the same domain as the SSRS server. For the "same domain" web app, both Win 7 desktop VS 2008 development server and Windows 2003 IIS 6 have been tested successfully.

The report fails with error "The request failed with HTTP status 401: not authorized " when the web app is run from a windows IIS 8 machine (outward or Internet facing web server) that is not in the domain of the SSRS server. The ReportViewer control credentials (provided by IReportServerCredentials and taken from the web.config file) match a domain account in the same domain as the SSRS

server and one that has browser permission on the report folder. The same credentials are used successfully for reports requested from within the SSRS domain.

One interesting thing is that on the Internet facing web server, I can access the report via a browser request. So it is possible to have a user request coming from the Internet facing machine get through the SSRS windows authentication. Just does not work for the ReportViewer.

Using IReportServerCredentials interface per example provided by Microsoft msdn site. Code listed below.

IReportServerCredentials would appear to be a viable approach because it can pass credentials of a windows account known to the SSRS server, but not known to the client machine. By the way, database calls to SQL Server in domainA using a SQL Server native login account work fine. So the network support communication to a domain that the web server does not belong to.

<Serializable()> _
Public NotInheritable Class MyReportServerCredentials
    Implements IReportServerCredentials

    Public ReadOnly Property ImpersonationUser() As System.Security.Principal.WindowsIdentity _
        Implements IReportServerCredentials.ImpersonationUser
        Get
            'Use the default windows user.  Credentials will be
            'provided by the NetworkCredentials property.
            Return Nothing
        End Get
    End Property

    Public ReadOnly Property NetworkCredentials() As ICredentials _
            Implements IReportServerCredentials.NetworkCredentials

        Get

            'Read the user information from the web.config file. 
            'By reading the information on demand instead of storing
            'it, the credentials will not be stored in session,
            'reducing the vulnerable surface area to the web.config
            'file, which can be secured with an ACL.

            'User name
            Dim userName As String = _
                ConfigurationManager.AppSettings("MyReportViewerUser")

            If (String.IsNullOrEmpty(userName)) Then
                Throw New Exception("Missing user name from web.config file")
            End If

            'Password
            Dim password As String = _
                ConfigurationManager.AppSettings("MyReportViewerPassword")

            If (String.IsNullOrEmpty(password)) Then
                Throw New Exception("Missing password from web.config file")
            End If

            'Domain
            Dim domain As String = _
                ConfigurationManager.AppSettings("MyReportViewerDomain")

            If (String.IsNullOrEmpty(domain)) Then
                Throw New Exception("Missing domain from web.config file")
            End If

            Return New NetworkCredential(userName, password, domain)

        End Get
    End Property

    Public Function GetFormsCredentials(ByRef authCookie As Cookie, _
                   ByRef userName As String, _
                   ByRef password As String, _
                   ByRef authority As String) As Boolean _
        Implements IReportServerCredentials.GetFormsCredentials
        authCookie = Nothing
        userName = Nothing
        password = Nothing
        authority = Nothing

        'Not using form credentials
        Return False

    End Function
End Class

'Set the ReportViewer values and retrieve the report from the SSRS server into a pdf file on the client machine.

ProposalRptViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote

' Set the ReportViewer ReportServerCredentials from the MyReportServerCredentials Class.
' Note the credentials are for a domain account defined in the same domain that the SSRS server belongs to and one that has browser permission on the report folder.
ProposalRptViewer.ServerReport.ReportServerCredentials = _
     New MyReportServerCredentials()

ProposalRptViewer.ServerReport.ReportServerUrl = New Uri(System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportServerURL))
ProposalRptViewer.ServerReport.ReportPath = System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportPathProposal)
ProposalRptViewer.ShowCredentialPrompts = False     ' disable prompting for data source credentials

Dim paramList As New Generic.List(Of ReportParameter)
Dim pInfo As ReportParameterInfoCollection
pInfo = ProposalRptViewer.ServerReport.GetParameters()
paramList.Add(New ReportParameter("ProposalID", ProposalID, True))paramList.Add(New ReportParameter("Entity", Entity, True))
paramList.Add(New ReportParameter("intRatesPage", intRatesPage1, True))
ProposalRptViewer.ServerReport.SetParameters(paramList)
               
' Process and render the report
ProposalRptViewer.ServerReport.Refresh()
              
Dim mimeType As String = Nothing
Dim encoding As String = Nothing
Dim streams As String() = Nothing
Dim extension As String = Nothing
Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing
Dim returnValue As Byte()

' Render the proposal Rate Page 1 report to a Byte Array output in pdf file format.
returnValue = ProposalRptViewer.ServerReport.Render("PDF", Nothing, mimeType, encoding, extension, streams, warnings)

-----------------------------------------------------------------------------------------------------------

An error only occurs for web server not in the domain of SSRS Server:

The request failed with HTTP status 401: Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack

trace below.

Stack Trace:

[WebException: The request failed with HTTP status 401: Unauthorized.]
   Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +236
   Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +58
   Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +16
   Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +226
   Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +192
   Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) +136
   DeltaRater.Web.ViewRates.btnCreateProposal_Click(Object sender, EventArgs e) in C:\alex\~~_____Rapid_Rater\SourceDir_VS2008_Jan17_2014\DRR\ViewRates.aspx.vb:911
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8010


Ordering Columns in SSRS Report Builder for SQL Server 2012

$
0
0

I have my report displaying the correct information, however the columns are arranged in alphabetical order of the column group members. I want to arrange them in a different order. How do I do that?

The following may help, but don't use it if it doesn't: One variable in my data set is the desired column order (call it 'column rank'. It runs from 1,...,10). If I make that the column group, the columns ARE arranged in the correct order but now the labels are '1','2', etc. I.e. not the labels I want.  

Many thanks.

P.S. First time using RS so please excuse terminological errors. Obviously I have used the docs. and Google to try and find the answer to this.


-A

http error 503 ; service is unavailable

$
0
0

In my service log 

RPC server is stopped..

what does it mean?

and find screen shot


Dilip Patil..

ssrs

$
0
0

how to add 2 rows in matrix in ssrs reports.

i have name,type,count these 3 are columns

but i need name and type are 2 rows and count are columns in matrix.any one help me how can i do this

How to activate a different sub-report for each row in the data set as main report page breaks on each row of data in the main dataset

$
0
0

I am going to try asking this same question a different way as I have yet to find a working solution to my problem.  I have a main report and then 8 sub reports.  My main report has one data set and returns one row of data per account number.  One of the fields in the main data set is called AccountProf.  My main report displays one page per Account number and then calls a different sub report based on that account's AccountProf value.  The sub reports take in the account number as a parameter and get multiple rows of data to display that accounts usage formatted differntly for each AccountProf (hence the 8 different sub report.  

So far I can figure out how to do everything but setting the visibility property of each sub-reports when I have multiple accounts.  If I use the following expression for the visibility property on each sub report, it makes all the applicable sub report for all the accounts requested visible at once:

=IIF(Fields!AccountProf.Value= "USE_PLUS_DMD",False,True)

*The value in bold USE_PLUS_DMD  is different for each sub report.

Here is a look at what the main report look like:

Here is the main reports data set:

Viewing all 10045 articles
Browse latest View live