Quantcast
Channel: SQL Server Reporting Services
Viewing all 1418 articles
Browse latest View live

Problem with creating a local report in Visual Studio 2010

$
0
0

I am having trouble with Local Report Viewer.  can' use data source.  Here are my steps.

1).  Create new aspx page

2).  Created Dataset and can see data

3).  Created report .rdlc file

4).  Put Local Report Viewer on ASPX Page

5).  Changed Choose Report to look at report.rdlc file

6).  Put ObjectDataSource on aspx page and configured.

7).  Clicked on  Choose Data Source of report viewer and I get the following.  Sorry I can't load a picture.  The following is a pop up box.  It will not allow me to choose a data source.

______________________________________________________________________________________   

                                                Choose Data Sources

Choose Instances for Data Source used in the report.

Report Data Source    Data Source Instance

                                                                   OK           Cancel

___________________________________________________________________________________


SSRS Server behaving incosistently

$
0
0

On SSRS server at one time report is rendered in a min. A few times even if it runs for 20 mins nothing is rendered. In Logs can see multiple errors. But everything is inconsistent.

reportviewer with multiple database and multiple optional parameters

$
0
0

I have 3 databases, db1/db2/db3, every db with 3 tables - customer master, sales record master and item master. In the web page, I got 5 selections for users to choose,

  • From which db - combo box
  • From what age to what age combo box # get value from customer master
  • Area - combo box # get value from customer master
  • total purchase value - textbox # get value from sales record master
  • item type - combo box # get value from item master

User can generate the report by fill in all the required information or they can just fill in some of them.

Example user can fill in age and item type to generate the report. System will search the record in all db's customer master table and item master table

or user can fill in db2, area, total purchase value and item type to generate the report. System will search record in db2's customer master table, sales record table and item master table.

i am using VB to code. I able to generate the report with single db and multiple fixed parameters (means user must fill in all required information).

It is highly appreciated if anyone can give me some idea how to generate this kind of report in asp.net 4.0 (VB).

Thanking you in advance.

MULTI VALUE PARAMETER WITH THREE DATASETS

$
0
0

HELLO, this is the scenario I have tried everything... I  guess.

I have one dataset I use to filter the current professor for the term, the second dataset have professor information with student and class ID and balance owe for the term. I have the last dataset with the student information and balance and class ID, I do have Student Id as PK, 

When I pick a professor from my filter (dataset 1) the tablix show all student who are taking classes with this professor and the balance if they have one, I am doing a lookup to the student Dataset to bring it in.

Now when I want to set multiple values to get in my tablix all the students just for 3 or 4.... and ALL is not working.... I did almost where I found over te net....and is not working

I am guessing that my problem is because I am doing a lookup to bring the amount for each student, then probably I should do something in my lookup to bring all them....

PLEASE HELP

ReportViewer Control has all rows of data set to "display:none"

$
0
0
  • VS.2010
  • .NET 4.0
  • SQL RDLC Reports 2008


Using a ReportViewer control to present the results of a stored procedure, no data rows show on the web page.

The control bar appears on the web page (although none of the controls are working).

There is no data showing.  However, if I do a View Source on the browser, I note that all the data rows are in TABLEs enclosed in DIVs where the STYLE is set so thatDisplay:None

These are things other posts have suggested and but which do not make a difference:

  • Adding ReportViewer reference to handlers
  • Adding ReportViewer reference to httpHandlers
  • Setting fixed height/width to control
  • Setting AsyncPostback = False
  • Changing/Removing DOCTYPE


What could be telling ReportViewer to set the style so that the data rows do not display?

Can I customize the export functionality?

$
0
0

I am running SSRS on Sql Server 2008 R2. I am being requested to customize the SSRS export functionality to accomplish the following:

We have a report (with a list of students) from which I linked a drillthrough report, so when you click any student name you get student details (courses, attendance, etc).

The requirement is that, when the user tries to export the main report, present to him the option to include in the exported file the detail reports for all the students displayed in the main report.

So basically, the question is... is there a way to "extend" the export functionality in order to ask the user some questions and based on that return a pdf with results from a linked report which hasn't even been opened yet?

Thanks

Absolute placement of a row at the bottom of the page

$
0
0

I have a tablix which is like an invoice and i need to have the last few rows to stay at the bottom of the page. It is all one tablix the middle row which list the invoice items should not shrink. I can set the row's property Can Shrink to No and increase the middle row so the last row stay at the bottom but that won't help because the when the number of items increase the table will split even though there is space. I referred to some forums http://blogs.adatis.co.uk/blogs/harding/archive/2013/02/01/absolute-positioning-of-report-elements-in-ssrs.aspx and https://social.msdn.microsoft.com/Forums/sqlserver/en-US/08785944-923e-445a-b7de-b1062ea97879/absolutely-pagebottom-alignment-on-report-footer-impossible?forum=sqlreportingservices but i did not understand some of the solutions mentioned clearly. The report needs to look like the following picture.

Header

Invoice items 1

Invoice items 2

 ..

 

Total (row that needs to stay at the bottom)

Footer

The invoice list can be 1 or 9 but the middle row should stay the same and last but 1 row (above footer) should be at the bottom of the page. I cannot make the last row in the footer because the whole tablix is connected.

Please let me know if there's a way.

How to show total in page wise for .rdlc

$
0
0

Hi,

  I want to add total page wise in table control. I'm able to add the total in report footer.

1. Use a table control to hold fields. For example: Sales fields whose textbox's name is "Sales".

2. Added the report footer to the report. And drag a textbox into it.

3. Set the expression of that textbox with "=sum(ReportItems!Sales.Value)".

But unable to add page wise total in the table control bottom eg:If sales has total records of a particular page only that total should display.It has to  repeat for all pages..

SrNo.     Sales

1            200
2            200
3            200
4            200
5            200
6           100
7           100
Page1 Total = 1200
*********************Page1 End here*************
8          100
9          200
10        300
11        200
12        200
Page2 Total = 1000
*********************Page 2 End here***************

Please help me


Combine two byte arrays from rdlc to create a pdf

$
0
0

I have two byte arrays from rdlc reports.

I need to create a pdf combining both the byte arrays.

My code is

Warning[] warnings;
                string[] streamIds;
                string mimeType = string.Empty;
                string encoding = string.Empty;
                string extension = string.Empty;

                bytes = rptViewer.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);

                bytes1 = RunReport(21316228, "82", 7);

                byte[] combined = new byte[bytes.Length + bytes1.Length];
                bytes.CopyTo(combined, 0); 
                Array.Copy(bytes1, 0, combined, bytes.Length, bytes1.Length);

                FileStream stream = new FileStream(savePath, FileMode.Create, FileAccess.ReadWrite);
                using (stream)
                {
                    stream.Write(combined, 0, combined.Length);
                }

 

The RunReport function returns bytes1 which is generated from another rdlc report. I can see the size of combined byte is fine but its just printing the 2nd byte but not appending 1 and 2.

I tried various other codes using Buffer.BlockCopy etc.. similar to this but all of them yield the same result.

Some one please help me out!

supreports error "Data retrieval failed for the subreport, 'Subreport2', located at"

$
0
0

I am showing 2 sub reports on a reports, one sub reports is showing fine but when i try to shown second report , it is showing below message

Error

Data retrieval failed for the subreport, 

'Subreport2', located at: . 

code: 

 string reportPath=e.ReportPath;
            SocialWorkDataset socialWorkDataset = new SocialWorkDataset();
            if (reportPath == "GoalObjective")
            {
                // e.DataSources.Add(new ReportDataSource("SocialWorkISPSpiritualGoalObjectives", "DataSet1"));

                SocialWorkDatasetTableAdapters.SocialWorkISPSpiritualGoalObjectivesTableAdapter socialWorkISPSpiritualGoalObjectivesTableAdapter = new SocialWorkDatasetTableAdapters.SocialWorkISPSpiritualGoalObjectivesTableAdapter();
                socialWorkISPSpiritualGoalObjectivesTableAdapter.ClearBeforeFill = true;
                socialWorkISPSpiritualGoalObjectivesTableAdapter.Fill(socialWorkDataset.SocialWorkISPSpiritualGoalObjectives);
                ReportDataSource reportDataSocialWorkISPSpiritualGoalObjective = new ReportDataSource();
                reportDataSocialWorkISPSpiritualGoalObjective.Name = "DataSet1";
                reportDataSocialWorkISPSpiritualGoalObjective.Value = socialWorkDataset.SocialWorkISPSpiritualGoalObjectives;
                //rptViewer.LocalReport.DataSources.Add(reportDataSocialWorkISPSpiritualGoal);
                //e.DataSources.Add(reportDataSocialWorkISPSpiritualGoalObjective);
                e.DataSources.Add(new ReportDataSource("DataSet1", (object)socialWorkDataset.SocialWorkISPSpiritualGoalObjectives));
            }

            //Interventions
            if (reportPath == "GoalInterventions")
            {
                SocialWorkDatasetTableAdapters.SocialWorkISPSpiritualGoalIntervationsTableAdapter socialWorkISPSpiritualGoalInterventionTableAdapter = new SocialWorkDatasetTableAdapters.SocialWorkISPSpiritualGoalIntervationsTableAdapter();
                socialWorkISPSpiritualGoalInterventionTableAdapter.ClearBeforeFill = true;
                socialWorkISPSpiritualGoalInterventionTableAdapter.Fill(socialWorkDataset.SocialWorkISPSpiritualGoalIntervations);
                ReportDataSource reportDataSocialWorkISPSpiritualGoalIntervention = new ReportDataSource();
                reportDataSocialWorkISPSpiritualGoalIntervention.Name = "DataSetIntervation";
                reportDataSocialWorkISPSpiritualGoalIntervention.Value = socialWorkDataset.SocialWorkISPSpiritualGoalIntervations;
                //rptViewer.LocalReport.DataSources.Add(reportDataSocialWorkISPSpiritualGoal);
                e.DataSources.Add(reportDataSocialWorkISPSpiritualGoalIntervention);
                //e.DataSources.Add(new ReportDataSource("DataSetIntervation", (object)socialWorkDataset.SocialWorkISPSpiritualGoalIntervations));
            }

Please let me know what I am doing wrong.


Report Viewer Date Picker Format

$
0
0

Hi All,

I have created a SSRS report and deployed in report server in my local system. In my report have two date picker as parameter with "dd/MM/yyyy" format. because i have changed my local language setting "en-GB" in my local system. My problem is that i am calling report in Asp .Net application (VS2012) under report viewer control in my local system but while selecting date picker its date format changed to "MM/dd/yyyy". Please help me.

Thanks.

ReportViewer Control dlls without Installing SQL Server Reporting Servers

$
0
0

I have built a rdlc report in VS 2013, which works fine in development, but once I attempted to deploy to the Windows 2003 Production box, I ran across the dreaded "Could
not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0,
"

I have done a fair bit of investigation on this issue, but just require confirmation of my conclusion.

1. The ReportViewer control passes off requests for database access to the datasources you have specified while  building the report, therefore
2. You don't also need to install a full blown version of SQL Server or SQL Server Reporting services on your web server.
3. If you install the Microsoft Report Viewer 2012 Runtime distributable on your webserver, it will install all the necessary dll's to the GAC and the problem is solved.

Thanks

How to split a columns in a report and print on different pages

$
0
0

Hi,

    In ssrs report is there a splitter? I need to split a report and print in different pages

Eg: I have 10 columns in report i have split 5 columns in one page and print remaining in another page print

Possible can i export that report as PDF.

Please help me ..

creating dashboard using reporting service

$
0
0

Hi Friends

 I am working on dashboard in reporting services 2005. I will give you an example of what i intend to achieve. Say in a hockey game 'n' no of teams are participating. I need a bar graph of each team displaying 'Total games' played as well as total 'Games won'.

I have certain questions:

1. Is it possible to create 'Chart' control via C# ??

2. How to deal with my requirement. Do i need only 1 rdlc file or equivalent to no of teams playing(as in example).

3.Do i need n no of charts??

Please suggest your ideas with possible solution .

i m stuck :-( !!

Cheers...

problem with report viewer

$
0
0

I found a few topics about that problem but I'm not sure it solves my problem.

I have an aspx web page (ASP.NET fw2.0) with 4 report viewer.
Each report view is running a diffrent report.
in the code behinde I'm adding each report a parameter from my page.

Now, my site is configure to send me errors to my mail.

I've noticed that every time that I leave the page with the 4 report viewer open, after about 10-12 minutes (without toucing anything and without any refresh or postback) I get an error mail with this error:

Execution 'ucv5xtu2x2uvhfjmjkfmfy45' cannot be found (rsExecutionNotFound)

The page itself stay OK with the 4 viewer and the user don't know that there was a problem but I do.

Any thing know way is that?

I saw some thing about session of the report viewer but I'm not sure about that.

B.T.W
I'm still with sp1on my sql server, Does any body know if it realted to my problem?

Thanks!


 


How do I dynamically display an array of image indicators in a single cell

$
0
0

I have a number of reports that will need to contain up to 40 different flags, we currently translate the flags to a small icons on our web pages. These flags are growing, the more that we use them. It has proved to be invaluable when quickly identifying/classifying our CMS lists.

In short if a customer is "new" they may have a plus sign next to them, if they are also a hot prospect either a white, gold or black star will also be attached, if they are of a high net worth a dollar sign may appear, etc. It is not uncommon to have a name have 10 different image icons attached to time. Currently the web page translates an SQL function into the images, ie the function returns the names of the images in a delimited format.

I want to be able to use the same functionality in SSRS where a customer row also returns string array of images and we split and render the images in the report on that row in a single cell.

I am seeking a way to do this in SSRS that is SQL driven, and currently the only way I can figure out is via some a sub report that only renders in a cell. I want this as a standard facility but an at a loss of how to do it efficiently. 

when I create a report in SSDT the report by the extension RDL is created instead of RDLC why?

$
0
0

Hello

when I create a report in SSDT the report by the extension RDL is created instead of RDLC why?

what is the solution?

Please help me 

regards

Manoj Gokhale

ASP.NET session has expired or could not be found

$
0
0

I have a Report Viewer connected to an SSRS report on a SQL Server.  I setup error logging in the global.asax so it sends me an email.  I keep getting these errors with my report viewer.  The user is unaffected and never sees the error occur.  Its like the IIS sessions having some issue?  Anyone ever seen this?

Error Caught in Application_Error event
Error in: http://sales.test.com/Reserved.ReportViewerWebControl.axd?OpType=SessionKeepAlive&ControlID=42d3fa58b1b2401983ee1e5ebc4da677
Error Message:ASP.NET session has expired or could not be found
Stack Trace:   at Microsoft.Reporting.WebForms.ViewerDataOperation..ctor()
   at Microsoft.Reporting.WebForms.HttpHandler.GetHandler(String operationType)
   at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

How to convert ComponentOne Reports to SQL Reports?

$
0
0

Hello,

Currently I am working on one application which is publishing Reports using C1. I want to update that reports to SQL Reports. I am using SSRS 1st time. I have created basic RDLs for the reports. Now i need help in data resources and dataset. 

Thanks!

Where to start with reporting

$
0
0

I want to create a series of reports for the business and I'm not sure how to proceed.  We have SSRS set up and I'm creating my reports in Visual Studio and deploying them to the SSRS server.  I want to create a landing page with links to all of the reports, which I'm assuming I can do in ASP .NET, but I'm not sure how to set up the report viewer properly.  Can someone point me to tutorials that would guide me through this?

Is it possible to have a generic page with a report viewer and pass the report name to it as a query string parameter?  How do I style the reports (css) when I do things this way?  Can I pass parameters to the reports?

Viewing all 1418 articles
Browse latest View live


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