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

rdlc print layout size varies with resolution on Surface Pro (Win 8.1, winforms)

$
0
0

We have a winforms application with local rdlc reports.  On Surface Windows 8 Pro devices only, reports render such that they are scaled down and don't fill the page.  If resolution is lowered on the device, the report scales up to fill the page. This affects the appearance in print layout and well as the actual printed size.

If we export to pdf, it renders to fill the page (as expected).  If you print to pdf or to printer, the scale is shrunken.

If we change the resolution settings so that "Make  text and other items larger or smaller" is set to small, the issue is resolved except the tablet is not very usable on this setting.

Is this a bug?  Is there a work around?  Thanks for any help.



SSRS Matrix Issue. Expression calculating in row with no data.

$
0
0

I have a matrix with multiple column groups for different sales channels. With in each group there are several columns and some with expressions for calculations. The rows are based on sales reps. Now not every sales rep sells in every channel, so there are some columns in which a rep will have no data. I want them be blank or show a 0. I can do both of those. The issue I am having is in the expressions for reps that have no data, it is still showing a calculation. It seems to populate that cell with whatever the first result of an actual calculation is. See below. For rep D and E they have no calls or sales in this particular sales channel; however, the closing ratio is showing 30.23% (which is the closing ratio for rep A). I need this to be blank or 0 or N/A, anything other that a wrong %. I have tried numerous iif and isnothing statements, e.g. =iif(Fields!count_of_customers.Value = 0,0,Fields!count_of_customers.Value/iif(Fields!Calls.Value = 0,1,Fields!Calls.Value)) plus other i have found on the internet but none of them work. Can someone please help? Sorry it is not a picture of the report. They need to confirm my account before I can attach pictures. But this is the set up of the report.

Figure A

PhoneField

RepCalls SalesClosing RatioPremium RepCallsSales

A1000 32332.3% $100,250A 505

B200 105%$50,000B0 0

C300 155%$25,000C25 5

D0 032.3%$0D 30050

E0 032.3%$0E 10015

F500 10020% $300,000F 00

Display Image From FTP Server folder in the reportviewer and FTP folder Has UserName & Password

$
0
0

I have Ftp folder named Uploads and have images , also have the path of it  in my database in table called Images_tab

i need to display image in RDLC  report i have to try this link but this link is use data base and i need to use External Images

http://social.msdn.microsoft.com/Forums/en-US/7a108940-3f11-4dd5-b963-1aa347c92f02/get-image-from-ftp-server-in-the-report-and-ftp-has-username-amp-password?forum=sqlreportingservices

I do Enable external images true and also make value to external ...


if any one help ..... please i waiting ... :(

Hide / Visible column, drilldown

$
0
0
how can I do this one

open report (only 2 columns)

col1 col4

click + drilldown and get 2 additional columns with detail

col1 col2 col3 col4

Reporting Service Issue - Connect

$
0
0

Hi, When i try to connect to Reporting Sevices via Management Studio on the server, i get below message.

Please advice...



===================================

Cannot connect to moqsqlhq004.

===================================

The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF (Microsoft.SqlServer.Management.UI.RSClient)

------------------------------
Program Location:

   at Microsoft.SqlServer.ReportingServices2005.RSConnection.GetSecureMethods()
   at Microsoft.SqlServer.ReportingServices2005.RSConnection.IsSecureMethod(String methodname)
   at Microsoft.SqlServer.ReportingServices2005.RSConnection.ValidateConnection()
   at Microsoft.SqlServer.Management.UI.RSClient.RSClientConnection.CreateConnection(String connectionString)
   at Microsoft.SqlServer.Management.UI.RSClient.RSConnectionInfo.CreateConnectionObject()
   at Microsoft.SqlServer.Management.UI.RSClient.RSConnectionInfo.RSTypeImpl.GetConnectionObject(UIConnectionInfo ci)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.RSType.GetConnectionObject(UIConnectionInfo ci)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

 

Strange issue with a huge SSRS 2008 report (supposed to return 3 million records)

$
0
0

Hi,

NOTE: The strange part (as mentioned in title) will come in the end.

I am running a SSRS 2008 report which fetches 3 million records from a remote server. After around 1 hour the report processing stops and I see an error icon on the lft bottom of the browser window. When I click on that to see the error details it shows some PageRequestManagerSQLErrorException with an unknown error message with code 12029 (sometimes 12002).

When I see the reportserver logs there is an error message logged in it which says "Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached."

The <DatabaseQueryTimeOut> value in the report server configuration file is already having a value set to 7200 seconds(2 hours).

NOW, the strange part is, when I open the ExecutionLog2 table in ReportServer database, there is an entry for the same report with the status as "success" !!!

My head is spinning over this issue, somebody please rescue.

Regards.

2008R2: Always hide detail row based on expression AND by toggle/drill down

$
0
0

Hi all

Imagine I have a dataset like so

MasterPackageName | PackageName | Start | End | Status ---------------------------------------------------------- Parent1 | Parent1 | 12:05 | 13:05 | Done Parent1 | Child1 | 12:05 | 12:30 | Done Parent1 | Child2 | 12:30 | 13:04 | Done
StandalonePkg |StandalonePkg| 11:20 | 11:21 | Failed

My report is set up like this

I want the blue label row (2nd row) and detail row to be hidden by default and toggled by MasterPackageName

I also want the detail row to be always hidden when MasterPackageName.Value = PackageName.Value and count of the rows in the group is greater than 1

I can't get both of these conditions working at the same time. Either the master package details are duplicated in the detail row and the toggle works, or the toggle only shows the master package details or it leaves blank spaces when it's hidden

Is what I want possible?

Edit: Filtering out the packagename = masterpackagename at the data source won't work because I also need to show standalone runs where the masterpackagename and masterpackage are the same


Jakub @ Adelaide, Australia


Will SharePoint 365 supports Power View sourced from SSAS Tabular Model?

$
0
0
What I understand is SharePoint 365 enterprise edition supports Power View that is sourced by PowerPivot Excel data source. Does it support SSAS Tabular Model as the data source as well, like the on-premises version?

SSRS SQL Server 2008 - SQL ReportExecutionService Culture

$
0
0

Hi,

I am not able to generate report in different culture other than en-US even when the current thread culture is set to a different like de-DE

 

    SqlReportExecutionService.ExecutionHeaderValue = execHeader;

            execInfo = SqlReportExecutionService.LoadReport(reportPath, historyID);

            SqlReportExecutionService.SetExecutionParameters(Parameters, System.Threading.Thread.CurrentThread.CurrentCulture.Name);

            string SessionId = SqlReportExecutionService.ExecutionHeaderValue.ExecutionID;

            SQLReportExecutionService.Warning[] warnings = null;

            String[] StreamIds = null;

            return SqlReportExecutionService.Render(Format, DeviceInfo, out Extension, out MimeType, out Encoding, out warnings, out StreamIds);

In the above code System.Threading.Thread.CurrentThread.CurrentCulture.Name is de-DE still the report renders in en-US. If i use the report viewer control in the application it is rendering and exporting in de-DE but when i use the execution service ReportExecution2005.asmx Render method it is not generating in current culture.

Any workarounds for this issue.

Thanks,

Sudhakar


Developer

how to use where condition which checks for NULL in SSRS?

$
0
0

 Hello,

 I am trying to count data rows in report based on  report field Fields!Coded.Value. I want to count PartID's when Fields!Coded.Value is null and I am not sure how to do it from SSRS expression , I am trying to use below expression  

=Count(IIF(Fields!Coded.Value =Nothing, Fields!PartID.Value, NULL))

 in sql I would do it as below ,

   SELECT count(partID)

    From tableName

    where Coded is null

 I am wondering if someone could help me on this?

 Thanks,

 Satya

Calling a Web Service in a SSRS Report - Error Converting String to Generic List of Strings

$
0
0
Hello,

I am using SSRS version 2005 and am trying to call a web service to retrieve data for a SSRS report.  I've looked on Google and MSDN for the past 2 days and have exhausted all options.  Here are the details...

The web service method I am calling accepts 4 parameters...

Parameter 1 = Generic list of strings
Parameter 2 = DateTime
Parameter 3 = Int
Parameter 4 = Int

I have created a function (on the CODE tab in report properties) in my report that gets passed a comma delimited string and returns a Generic List of Strings that I use to format Parameter 1.  The code for the function is as follows:

Public Function GetIDs(ByVal IDList as String) As List(Of String)
   Dim stringArray() = IDList.Split(",")
   Dim genericList As New List(Of String)(stringArray)
   Return genericList
End Function

I am passing a string to the function that looks something like this:

"1,2,3,4"



When I try to PREVIEW the report, I get an error that reads:

"There is an error on line 0 of custom code: [BC30002] Type 'List' is not defined"



I've tried changing the function declaration to pass back a string array:

Public Function GetIDs(ByVal IDList as String) As String()
    Return IDList.Split(","c)
End Function

This returned the error (from the web service): 

"Error in line 5 position 22.  Expecting state 'Element'.. Encountered 'Text' with name ", namespace"



I have also tried changing the function declaration to pass back an array: 

Public Function GetIDs(ByVal IDList as String) As ARRAY

This also produced the error:

"Error in line 5 position 22.  Expecting state 'Element'.. Encountered 'Text' with name ", namespace"



I know that this particular web service method DOES work because it is coded to accept nulls in the first parameter.  So... when I call the method with nulls, it returns a recordset of ALL data (this works fine).  Only when I pass a string to the function (which "filters" the recordset by the ID list), does the error occur.

Is SRSS limited with respect to VB.NET code so that the List(Of String) statement is not recognized?  Has anyone done this before and if so, how did you convert a comma delimited string to a Generic List of Strings within a function in the SSRS report?

Any info would be greatly appreciated.

Thanks!

Bob

Report execution service authentication errors

$
0
0

I'm trying to execute a report using the ReportExecution2005 service. However, I'm getting the following MessageSecurityException:

The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.

The inner exception is a WebException:

The remote server returned an error: (401) Unauthorized

The calling code is as follows:

       public static ReportResult ExecuteReport(ReportDefinition report)
        {
            // Render arguments
            string format = "PDF";
            byte[] result = null;
            string reportPath = ConfigurationManager.AppSettings["REPORT_PATH"];

            reportPath = Path.Combine(reportPath, report.Name);

            string historyID = null;
            string devInfo = @"<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";

            string encoding = "";
            string mimeType = "";
            string extension = "";
            Warning[] warnings = null;
            string[] streamIDs = null;

            var res = new ReportService.ReportExecutionServiceSoapClient();

            string user = ConfigurationManager.AppSettings["REPORT_USERNAME"];
            string pass = ConfigurationManager.AppSettings["REPORT_PASSWORD"];

            var creds = new NetworkCredential(user, pass, ConfigurationManager.AppSettings["REPORT_DOMAIN"]);
            res.ClientCredentials.Windows.ClientCredential = creds;

            var parameters = new ParameterValue[report.Parameters.Count];
            int i = 0;
            foreach (var item in report.Parameters)
            {
                if (!string.IsNullOrEmpty(item.Value))
                {
                    var pv = new ParameterValue();
                    pv.Name = item.Key;
                    pv.Value = item.Value;
                    parameters[i] = pv;
                    i++;
                }
            }

            var userHeader = new TrustedUserHeader();
            ServerInfoHeader serverHeader;
            ExecutionInfo2 execInfo;

            var execHeader = res.LoadReport2(userHeader, report.Name, historyID, out serverHeader, out execInfo);

            res.SetExecutionParameters2(execHeader, userHeader, parameters, "en-us", out execInfo);

            serverHeader = res.Render2(execHeader, userHeader, format, devInfo, PageCountMode.Actual, out result, out extension, out mimeType, out encoding, out warnings, out streamIDs);

            var repResult = new ReportResult();
            repResult.Data = new MemoryStream(result);
            repResult.Encoding = encoding;
            repResult.ReportName = report.Name;

            return repResult;
        }
    }

    public class ReportDefinition
    {
        public string Name { get; set; }
        public Dictionary<string, string> Parameters { get; set; }

        public ReportDefinition()
        {
            Parameters = new Dictionary<string, string>();
        }
    }

    public class ReportResult
    {
        public string ReportName { get; set; }
        public string Encoding { get; set; }
        public MemoryStream Data { get; set; }
    }

The relevant (AFAIK) portion of the web.config looks like this:

<system.serviceModel><bindings><basicHttpBinding><binding name="ReportExecutionServiceSoap"><security mode="TransportCredentialOnly"><transport clientCredentialType="Ntlm" proxyCredentialType="Ntlm" realm=""/><message clientCredentialType="UserName" algorithmSuite="Default"/></security></binding></basicHttpBinding></bindings><client><endpoint address="http://sqlfarm:80/ReportServer_JCAPPS/ReportExecution2005.asmx"
                binding="basicHttpBinding" bindingConfiguration="ReportExecutionServiceSoap"
                contract="ReportService.ReportExecutionServiceSoap" name="ReportServiceSoap"><identity><servicePrincipalName value=""/></identity></endpoint></client></system.serviceModel>


SSRS image disappears when click on print button

$
0
0

Hi,

I have made a SSRS report with image in it. I am using embedded image. Image can be clearly viewed on the report. When it is viewed in browser than also it is viewed. But when I click on print button in the previewed page I am not able to view the image and on the printed image is not there. 1st image is when it is viewed in the browser and 2nd image is of the previewed page .


Configuring Reporting Service Add-in for sharepoint - HTTP status 401: Unauthorized.

$
0
0

I have the following setup

Machine 1

WSS 3.0

Installed Reporting Service Add-in

Machine 2

Reporting Service

Sharepoint Object Model

SQL Server

Sharepoint and Report Server DB

I have congigured Reporting Service for Sharepoint Integrated Mode adn Created new Reprot Server DB

Sahre Point Integration is Green and verified link

 

In Sharepoint Central Administration

Manage Reporting Service Integratio i have selected the URL and "Trusted Account" as my web applications use "Windows Integration - NTLM".

 

All services, DB access everything running under one domain user account.

I am logged into sharepoint with same account. When clieck on set server defaults i get following error

An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode. --> Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized.

 

Same error when i try to add a report to a sharepoint webapplication

The domain account is part of "Farm Administration", "site colletion administrato" and local administrator also on both servers.

Can someone let me know how to fix this.

SSRS 2012: change action of reportbuilder button?

$
0
0

Hi,

Is it possible to start a locally installed Report Builder when I hit the Report Builder button in SSRS? It now want to download reportbuilder... and it is already installed. (Using SSRS 2012 SP1)




Added field to dataset not showing on report

$
0
0
I have a report with multiple datasets for an existing report.  I am adding a field to one of these datasets (Monthly Summary) titled BonusYTD.  When I run the sp in the SSRS query designer it shows that the field BonusYTD is populated but when I place the field in the table it shows nothing.  I have checked the textbox to see if it had an hidden properties and even went to a different textbox that was displaying data and changed the field to BonusYTD and it still didn't show up.  I checked my connection to ensure I was previewing the report on the correct development server and refreshed the fields again in the dataset.  I am not understanding why the field BonusYTD is showing up in the list of available fields for this dataset yet the textbox that I put it in is not displaying any data.  Please help.

SSRS 2008R2 I don't want to display Report Builder, Folder Settings and Details View to the users on the main page

$
0
0

hi Guys,

i am developing reportings on SSRS. When uses login the webpage, i don't want to display Report Builder, Folder Settings and Details View to the users on the main page. do we have some way to do that? thanks a lot!

Underlay Following Section like Crystal Reports

$
0
0
Hello,

Now I am using Crystal Reports 9. I am trying to move my reports from Crystal Reports to SQL Reporting Services 2005. When I design a report in SQL Report I am not able to find any option like "Underlay Following Section" available in Crystal Reports. How to do with that option in SQL Report 2005.

Can anybody give me the solution

:G.RAMKUMAR:

How to re-install Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012

$
0
0

Hello, 

Recently, I did VS 2012 repair, after that the Data tool is not working, I got message "this version of sql server data tool is not compatible with the database runtime component installed on this computer." So I tried to re-install Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012, but during the install, in the feature step, it marked the data tool feature is already installed. How do I re-install the data tool, so it works with VS 2012?

Thanks

Bin

Report Run By Application Times Out

$
0
0

I am using an application that executes SSRS reports, I assume using the "Report Execution Service" (I think that's what it is called). Long running reports time out after precisely 10 minutes regardless of any timeout settings I have changed in SSRS. Is it possible that a timeout assciated with the "Report Execution Service" is over-riding any other settings? If so is there some place (such as a config file) that I can change it?

Thanks.


R Campbell

Viewing all 10045 articles
Browse latest View live


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