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

How to find Report Manager in SQL 2000

$
0
0

Hi,

I came across a SQL 2000 instance with a report server database on it - looking at the execution log storage I can see that its still being used and running the following query tells me that the connections are coming from the same server:

SELECT hostname, * FROM sysprocesses WHERE dbid = DB_ID('ReportServer')

but I cant find the SSRS instance in the services -

Did it work differently with SQL 2000? 

How can I find the report manager URL?

Thanks,

Zoe


Need help in creating Color Combination logic for Matrix report

$
0
0

Hi Everyone,

I have created a matrix report having  "Probability"  in Row and "Impact" in Column  and "Risk ID" in Data Part .

                Now the problem which I am facing is I need to fill matrix with different color value based on combination of Probability and Impact 

I am able to write the expression in "Fill" area of "Risk_ID" text boxbut the problem is only those text box gets colored which are having Risk-Id value in it like shown below.I want all text box to be colored even if no Risk_Id is there in any text box.


If anyone  has any idea ,please let me know in writing the correct logic so that all text box gets colored even if there is no Risk _Id in it.

Any help will be greatly appreciated

Thanks

Anuj




Colors Get Swapped on Stacked Column Chart (SSRS R2 2008)

$
0
0

I have a report in which I have assigned custom colors with a function to one of my stacked column charts. When I run it in the report builder, the colors are correctly placed, but as soon as I upload the report to the server and view the report from there, the colors get swapped. I have these custom colors applied to other stacked column charts in the report and they work perfectly fine. The only difference between this chart and my other charts is that it contains two category groups. Is anyone aware as to why this is happening? Thanks in advance.

EDIT: Alright, I have gotten it to display the correct colors by using a function with the colors I wanted in reverse. I have two values, "Upcoming" which is displayed in red, and "Outstanding" which is displayed in blue. If the chart has only upcoming values, it will display in blue rather than red, whereas if I have upcoming and outstanding values, they will display in their correct colors. Any reason as to why this is occurring?

"rsAccessDenied" , can't access Reporting Server

$
0
0

Hey,

I started my Reporting Server and if I use the Internet Explorer as a Administrator everything works fine.

But if I don't open it as an admin it calls "rsAccessDenied The user [...] does not have the permission...".

Problem is that I want to run it in an SAP Program with an HTML Viewer.

Does anyone have a clue how I can get those Permissions ?

By the way somehow I'm not able to create or change roles in the Microsoft SQL Server Management Studio.

Any clue about this one ? :/

Thanks!

Greetings,

Dominic

Background Patterns and exporting to PDF

$
0
0

Hi Everybody,

I have a report with a chart that utilizes both colors and background patterns to distinguish various pieces of data. The background patterns work great (they are very clear and provide excellent contrast) when viewed in the report viewer or printed straight from the report viewer.

However, when I export to PDF, the background patterns become compressed and small, almost to the point of being too small to distinguish that there is a pattern at all. The result ends up being what appears to be just a different shade of the background color. This is particularly a problem when you then print the PDF on paper, since hatching patterns are similar to how printers create different shades in the first place.

I am somewhat suspicious that this might have to do with resolution settings for PDF exports. If I could lower the resolution, perhaps the patterns would not become so tight and compressed. Below are examples of what I'm describing:

Screenshot of the report viewer:

Screenshot of the PDF:

Thanks for any info or suggestions you can provide.

Is IT POSSIBLE TO RESET THE DEFAULT POSITION OF BAR ON BAR CHART BY DEFAULT SINGLE BAR COMES IN CENTER OF CHART I WANT IT TO BE ON THE BOTTOM .

$
0
0

Hi All,

I am designing a bar chart in which five value comes .if all values comes then graph is working fine but my concern is when i have single value then in that case bar gets created on the middle of chart i want to generate the single bar on bottom of the chart .

can it be possible .?

Thanks

Ravi Shankar

SSRS Report:BookMark from one table to another in current report

$
0
0

Hi,

I want to bookMark from one table to another in current report. Below are the 2 tables , when I select a

FromBrandName in the first table, it should take me to the second table row with the same

FromBrandName. Is this possible? Is there a function  to access a specific running value other than First andLast?


SSRS 2008 R2 - Missing Data when Exporting to Excel or CSV (Row Count is < 500)

$
0
0

Hey Folks,

When exporting SSRS 2008 R2 report  to an csv or excel file not all the rows are being exported. Any suggestions on why this is occurring. The number of rows is less then 500 and it seems to be a pretty straight forward export. Any help is greatly appreciated.  Inherited this and not sure if this would be configuration issues or something else. It is happening on a number of reports.

Thanks.


SSRS 2012: speech balloons over some bars in a bar chart - is this possible?

$
0
0

Hello all,

a customer would like to show speech bubbles with a short text above some bars in a bar chart (similar to the image shown below). Is this possible with SSRS? If yes could you give me some pointers?

Thanks in advance and best regards,
Gerald

Every Other Pdf Converted Page is Blank

$
0
0

Hi,

I have created a report and convert it to PDF. Every other page on pdf is blank. I have checked the margin and could not fix on the report.

Space Between Every Account Number

$
0
0

Hi Guys,

Could you please help me to figure out as How could I enter finger space between every account numbers ?

Thanks,

SSRS bug??

$
0
0
I have a report which has a subreport in it. Sub-report is placed in a list so it repeats for all the data in the dataset associated with the List.
The report works fine one day, then next day it doesn't. If I run the same report 3 times, i get error on 3 different pages. Two of the pages will show, and one page, it says "Sub-report could not be shown". If i run it again, the page where previously error waas hsowing, will show the subreport but another page will give same error.

When I checked, I saw the following WARNING (not error)

Warning 1 [rsErrorExecutingSubreport] An error occurred while executing the subreport 'DetailList' (Instance: 16iT0R0x0S0): Data retrieval failed for the subreport, 'DetailList', located at: /DetailList. Please check the log files for more information.     [rsNone] Data retrieval failed for the subreport, 'DetailList', located at: /DetailList. Please check the log files for more information.     [rsNone] Data retrieval failed for the subreport, 'DetailList', located at: /DetailList. Please check the log files for more information.  

Limit report from being exported to excel

$
0
0
We have a report that we do not want to be able to be exported to excel. Is there a way, just on one report to limit the types it is exported to
DBA

SSRS Custom Data Processing Extension Error

$
0
0

I am using Custom Data Processing Extension to call a stored procedure. Iam getting following error when creating a dataset in report designer using the extension. I wrote the code in c#.

could not update a list of fields for the query. verify that you can connect to the data source and that your query syntax is correct.(Details-Object reference not set to an instance of an object.)

Here is my code

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data;
using System.Data.SqlClient;
using Microsoft.ReportingServices.DataProcessing;
using System.Diagnostics;
using System.Text.RegularExpressions;


namespace DataBaseDPE
{
    public class DBConnection:Microsoft.ReportingServices.DataProcessing.IDbConnectionExtension
    {
        private string mconnstring;
        private string localname = "Database Connection";
        private ConnectionState mState = ConnectionState.Open;


        public DBConnection()
        {
            Debug.WriteLine("DataSetConnection: Default Constructor");
        }
        public DBConnection(string Dconnection)
        {
            Debug.WriteLine("DataSetConnection Constructor overloaded with Connection String ");
            mconnstring = Dconnection;

        }

        public Microsoft.ReportingServices.DataProcessing.IDbTransaction BeginTransaction()
        {
            return (null);
        }


        public string ConnectionString
        {
            get
            {
                return mconnstring;

            }
            set
            {
                mconnstring = value;
            }
        }

        public int ConnectionTimeout
        {
            get
            {
                return 0;
            }
        }

        public ConnectionState State
        {
            get
            {
                return mState;
            }
        }

        public void Open()
        {
            mState = ConnectionState.Open;
            return;
        }


        public void Close()
        {
            mState = ConnectionState.Closed;
            return;
        }


        public Microsoft.ReportingServices.DataProcessing.IDbCommand CreateCommand()
        {
            return new DBCommand(this);
        }


        public string LocalizedName
        {
            get
            {
                return localname;
            }
            set
            {
                localname = value;
            }
        }

        public void SetConfiguration(string configuration)
        {
            try
            {
                SqlConnection sqlconn = new SqlConnection("Data Source=localhost;Initial Catalog=AdventureWorks2000;Integrated Security=True;");
            }
            catch (Exception e)
            {
                throw new Exception(e.Message, null);
            }
        }
        public void Dispose()
        {

        }
        public string Impersonate
        { get; set; }

        public bool IntegratedSecurity
        { get; set; }

        public string Password
        { get; set; }

        public string UserName
        { get; set; }
    }

}

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.ReportingServices.DataProcessing;
using System.Data.SqlClient;

namespace DataBaseDPE
{
    public class DBCommand : Microsoft.ReportingServices.DataProcessing.IDbCommand
    {
        DBConnection mconnection = null;
        private string mCmdText;
        private int mCmdTimeOut = 30;
        private CommandType CmdType;



        public DBCommand()
        {

        }
        public DBCommand(string CmdText)
        {
            mCmdText = CmdText;
        }
        public DBCommand(DBConnection aConnection)
        {
            mconnection = aConnection;
        }

        public void Cancel()
        {
            throw new NotImplementedException();
        }

        public string CommandText
        {
            get
            {
                return mCmdText;
            }
            set
            {
                mCmdText = value;
            }
        }

        public int CommandTimeout
        {
            get
            {
                return mCmdTimeOut;
            }
            set
            {
                mCmdTimeOut = value;
            }
        }

        public CommandType CommandType
        {
            get
            {
                return CmdType;
            }
            set
            {
                CmdType = value;
            }
        }

        public IDataParameter CreateParameter()
        {
            return (null);
        }

        public class MySqlDataReader:Microsoft.ReportingServices.DataProcessing.IDataReader
        {
            private System.Data.IDataReader sourceDataReader;
            private System.Data.DataTable dt;
            private System.Data.DataSet ds;
            private int fieldCount = 0;
            private string fieldName;
            private int fieldOrdinal;
            private Type fieldType;
            private object fieldValue;
            private int currentRow = 0;

            public MySqlDataReader(System.Data.IDataReader datareader)
            {
                this.sourceDataReader = datareader;
            }

            public MySqlDataReader(System.Data.DataTable dt)
            {
                // TODO: Complete member initialization

                this.dt = dt;

            }

            public MySqlDataReader(System.Data.DataSet ds)
            {
                // TODO: Complete member initialization
                this.ds = ds;
            }
            public int FieldCount
            {
                get
                {
                    fieldCount = ds.Tables[0].Columns.Count;
                    return fieldCount;
                }

            }

            public Type GetFieldType(int i)
            {
                fieldType =
               ds.Tables[0].Columns[i].DataType;
                return fieldType;
            }

            public string GetName(int i)
            {
                fieldName = ds.Tables[0].Columns[i].ColumnName;
                return fieldName;
            }

            public int GetOrdinal(string name)
            {
                fieldOrdinal =
               ds.Tables[0].Columns[name].Ordinal;
                return fieldOrdinal;
            }

            public object GetValue(int i)
            {
                fieldValue =
               ds.Tables[0].Rows[this.currentRow][i];
                return fieldValue;
            }

            public bool Read()
            {
                currentRow++;
                if (currentRow >= ds.Tables[0].Rows.Count)
                {
                    return (false);
                }
                else
                {
                    return (true);
                }
            }

            public void Dispose()
            {

            }

        }


        public IDataReader ExecuteReader(CommandBehavior behavior)
        {
            string query = "SampleSP";
            SqlConnection readerconn = new SqlConnection("Data Source=localhost;Initial Catalog=AdventureWorks2000;Integrated Security=SSPI");
            SqlCommand readercmd = new SqlCommand(query);


                readerconn.Open();
                readercmd = readerconn.CreateCommand();
                readercmd.CommandText = query;
                readercmd.CommandType = System.Data.CommandType.StoredProcedure;

                readerconn.Close();

                SqlDataAdapter adapter = new SqlDataAdapter(query,readerconn);

                readerconn.Open();
                adapter.SelectCommand = readercmd;

                System.Data.DataTable dt = new System.Data.DataTable();
                adapter.Fill(dt);
                System.Data.DataSet ds = new System.Data.DataSet();
                adapter.Fill(ds);
                return new MySqlDataReader(ds);



        }

        public IDataParameterCollection Parameters
        {
            get { return (null); }
        }

        public IDbTransaction Transaction
        {
            get
            {
                return (null);
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public void Dispose()
        {

        }

    }
}

Please help me, Thanks in advance

Row Percentage calculation in SSRS 2008 R2

$
0
0

I have a matrix in one of my SSRS report

data is like below

Row as Branch

Column as Tasks (Progress, Completed , cancelled, In Complete)

Branch   Progress  Completed  cancelled  In Complete    Total    %(Complete/Total)

Aus           1             2               3                 4                    9                      22.2%

NZ            1             2               3                5                    11                      18.88%

US           0              0               3                3                    6                          0.00%

How can do in the SSRS matrix %(Completed/Total) percentage calculation ?

Any help ??

Thank you.

GER


Dasari


Hide a field when another one is toggle

$
0
0

Hi,

I am creating a report with a Matrix and this report contain a collapse Matrix which it toggle from a certain field.

Now I am having two issue:

First issue is that when I set visibility to hide and that the matrix can be toggle by a field is leaving a very unaesthetic  space between rows.

I am attaching a picture to explain.

The second problem is that when I toggle the field I would like another part of the report to hide.

Does it exists anything that would allow me to define an expression I can use in the visibility that I Can use to make disappear this part of the report when the + has been toggle and make it appear back when the - has been toggle?

Thanks in advance

Regards

Federico


SSRS - Zoom and Print control are not visible in IE11, Firefox and Chrome. Works in older versions of IE

$
0
0

It seems the features are disabled when using any of the above because of compatibility issues with scripting/ActiveX not being properly supported by the FireFox and Chrome.

I believe the control determines the browser you are using is not IE and will not render the controls to prevent unexpected behavior because if the lack of ActiveX support. This can be seen when you compare the HTML of a page using IE8 and that of either IE11, FF, Chrome you'll see that the HTML for a zoom drop down control will show up in the IE8 browser and not in the others.

As for IE11 it presents itself as a Mozilla browser. eg: "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"so when the control see's this it wont generate any of the controls believing the browser can't support it, even though IE11 should certainly be capable of doing so. I wanted to know if this is correct and if this is a bug?

Browser Support for ReportViewer"The ReportViewer Web server control is used to embed report functionality in an ASP.NET Web application. The type of browser used to view the application determines the kind of functionality that you can provide in a report. Use the table provided in this topic to find out which of the supported browsers are subject to report functionality restrictions."

The page mentions that the following wont be supported by other browsers The following features are not supported in third-party browsers:

  • Document map
  • Searching within the report
  • Zoom
  • Fixed table headers
  • The progress indicator for report processing (a green spinning wheel) is not available for server reports, or for locally processed reports that are configured for asynchronous processing.

<rsweb:ReportViewer 
ID
="ReportViewer1" runat="server" Visible="true" Height="100%" 
ShowZoomControl
="True" ShowPrintButton="True"Width="100%" ProcessingMode="Remote" ShowCredentialPrompts="False" 
ShowParameterPrompts
="False"DocumentMapCollapsed="False" ShowBackButton="True" ShowRefreshButton="False" 
InteractivityPostBackMode="AlwaysSynchronous"ShowExportControls="False" BackColor="#c4dcfb" AsyncRendering="false" 
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
SplitterBackColor="#C4DCFB" ShowDocumentMapButton="True" DocumentMapWidth="20%"></rsweb:ReportViewer>



Different filters on different columns

$
0
0

Hi

i'am working with SSRS 2008 and my source is OLAP(mdx query)

i created a report like this

          

the report return me the following data

                

                              Nbre all Products     Nbre Dell Products             Nbre HP Products

                 Month 1        50                                 50                            50

                 Month  2       100                                100                            100

what i need is doing filter for a specific columns for example for  Nbre Dell Products show me only the number of Dell Products also for Hp Products how can i do it

Thanks

SSRS Chart Pattern style issue when exporting to PDF

$
0
0

Hi All,

In a bar chart, we are using the LargeCheckerBoard as the pattern style in series properties > fill. It is showing correctly on the browser but if we export to PDF, this style(checks) are getting small and different from what shown on the browser. Could you please help me on this, is there any workaround for this? 

Using SSRS 2014

Thank you.



Sort report by totals -column

$
0
0

I've created an SSRS report in Report builder and I'm displaying it in SharePoint 2010.

What I would need to do is to sort according to my totals -column.

My report structure is as follows:

The first and column second columns are the ID and the name of a customer. There are over 35.000 consolidated customers in the database.

The third column is the column which I would like my report to be sorted upon. It gives the sum (Amount_EUR) of all different productlines sold to the customer.

The fourth column in this report design model is the product groups sold to that customer. There over twenty of product groups visible when Running the report.

This is what my report looks like when finished(you'd have to scroll a lot to the right if I took the whole of the report so I cut only a part of it to be visible, but I think you'll get the idea):

---

I tried to add a sorting option from the reports Tablix properties and adding this code as the sorting function:
=SUM(Fields!Amount_EUR.Value)
but I'm getting an error:  "A sort expression for the tablix 'Tablix1' includes an aggregate function.  Aggregate functions cannot be used in data row sort expressions."
Ok, so no aggregate functions aren't allowed to the sort.

If I just put:
=Fields!Amount_EUR.Value and sort by that from Z to A(biggest to largest) it doesn't have any effect. The report is still sorted alphabetically by the ParentID.

I've also tried some other code bits, but they all seem to be saying that I couldn't put an aggregate function into the sort expression....but my Total -column is already calculated with a Sum -function....

So, to my final question;
Is it possible sort my report based on that Total -column? If yes, how is that possible?

EDIT: I'm using SSRS 2008
Viewing all 10045 articles
Browse latest View live


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