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

SSRS with multiples datasets which query same table

$
0
0

Hi

I have a SSRS which 6 datasets which read the same table and the report is very slow.

Should I check the option: Use Single Transaction?


Whar is wrong with SSRS report margin setting?

$
0
0

I used Visual Studio 2013 to created SSRS reports and one of them I set left and right margin 0.4 in by the report property.

Once I deploy them to a testing report server and use asp.net web form to load/print reports. On my computer I can print the 0.4 margin report as expected but on some other computers the 0.4 in margin report out of boundary and check the printer preview's left/right margin is 0.5. What is wrong with the setting? How Do I the report to keep 0.4 in margin on any user's computer?

Thanks!

Microsoft.ReportViewer.WebForms An error occurred during local report processing

$
0
0

Hi All,

{I had this posted on social.microsoft.com but was told to try posting it here to see if someone can help}

I use Microsoft.ReportViewer.WebForms to create pdf files from an rdlc file. All of this works fine. However, we notice that every week or two we start to get the following error: "An error occurred during local report processing". This continues until we restart our web app (in azure). If we do not restart the web app, the web app will eventually become non responsive. So, I assume there is a memory issue or something similar. But we do not know how to fix it. This happens on multiple servers. We have also tried cloud services in azure and it happens there too. So there is something with this library. We actually have diffferent web apps with different versions of the same library and the same problem exists. So maybe we are doing something wrong int he code. Here is our code, maybe someone can help. Thank You, David

int CurrencyId = WJNCurrency.GetSystemCurrency(CompanyId).CurrencyId;

            ReportViewer reportViewer = new ReportViewer();

            reportViewer.Height = System.Web.UI.WebControls.Unit.Parse("100%");
            reportViewer.Width = System.Web.UI.WebControls.Unit.Parse("100%");

            reportViewer.LocalReport.DataSources.Clear();

            reportViewer.ProcessingMode = ProcessingMode.Local;

            var assembly = System.Reflection.Assembly.GetExecutingAssembly();

            WJNReservation rv = WJNReservation.Get(ReservationId);

            reportViewer.LocalReport.ReportEmbeddedResource = "MTier.Reports.BookingPDFByReservationId.rdlc";

            reportViewer.LocalReport.EnableExternalImages = true;

            reportViewer.LocalReport.DataSources.Add(new ReportDataSource("DataSet1",
                 WJNPDFBookingConfirmation.GetPassengersAndPassesByReservationId(ReservationId).Tables[0]));

            DataTable TotalPriceDataTable = new DataTable();
            TotalPriceDataTable.Clear();
            TotalPriceDataTable.Columns.Add("TotalCardServiceFee");
            TotalPriceDataTable.Columns.Add("TotalPrice");
            TotalPriceDataTable.Columns.Add("TotalPaid");
            TotalPriceDataTable.Columns.Add("TotalDue");

            DataRow TotalPriceDataRow = TotalPriceDataTable.NewRow();
            TotalPriceDataRow["TotalCardServiceFee"] = WJNReservation.GetTotalCardFeeByReservationId(ReservationId, CurrencyId).ToString("0.00");
            TotalPriceDataRow["TotalPrice"] = WJNReservation.GetTotalToPayByReservationId(ReservationId, CurrencyId, 100).ToString("0.00");
            TotalPriceDataRow["TotalPaid"] = WJNReservation.GetTotalPaidByReservationId(ReservationId, CurrencyId).ToString("0.00");
            TotalPriceDataRow["TotalDue"] = WJNReservation.GetTotalDueByReservationId(ReservationId, CurrencyId).ToString("0.00");
            TotalPriceDataTable.Rows.Add(TotalPriceDataRow);

            reportViewer.LocalReport.DataSources.Add(new ReportDataSource("DataSet7",
                                                                TotalPriceDataTable));

            reportViewer.LocalReport.Refresh();
            Warning[] warnings;
            string[] streamids;
            string mimeType;
            string encoding;
            string extension;

            string deviceInfo =
           "<DeviceInfo>" +"  <EmbedFonts>None</EmbedFonts>" +"</DeviceInfo>";

            //this is array bytes that you need
            byte[] bytes = reportViewer.LocalReport.Render(
                               "PDF", deviceInfo, out mimeType, out encoding,
                                out extension,
                               out streamids, out warnings);



            return bytes;

testing an ssrs 2012 report that uses html

$
0
0

I have a vb.net 2010 webform application that I support. The application allows users to edit letters sent out to parents of school age children depending upon the purpose of the letter. There is no CSS setup for the application currently. Now the user wants all letters to be the same font size of Arial or San-Serif 13px by default. All letters (templates) have generic writing that is stored in the database as html. The user just selects the template they want to use.
Suggestions:
Is there some inline css that I can use that will apply to the entire page?
Would I need to place a span or div tag around all the different paragraphs?
Due to the change in the requirements, can you show me the html that I can use to meet this requirement?

I also would like to mention the following:

The letter (web page) in displayed in a web form application. The user changes whatever they want and then they hit the 'generate button' in the application. When this occurs the html that is generated is stored in a sql server 2016 database in a column called stringemplate where the field is defined varchar(max). When the user wants to print the page they select the letter they want to pick from the database in an ssrs 2010 report. Then the user will export what they see as a pdf, word, or whatever type of file they want to see. The ssrs report just picks up the stringtemplate field when the report is displayed in the ssrs report.

how to install MS Report viewer 15 into server?

$
0
0

Hi,
I have developed the web application in vs 2017 and report viewer 15.
It works fine in my pc.
If i need to deploy into server, install the report viewer 15. 
But I could not

I have downloaded the Microsoft.RdlcDesigner.vsix. But could not run because 
server does not have VS2017 installed.

Pls advice me how to do

Thank you

Maideen

Get first and last dates when assigned to team

$
0
0

Hi 

Just starting on a report for cases being sent between different teams but am stuck as I can get the desired outcome. For each case I would like to find the first date the case sent to Team 3 and also last time it was re-sent to Team . 

Using Data below:

ID

Date

Current Team

Case1

12/10/2018

Team_1

Case1

13/10/2018

Team_3

Case1

15/10/2018

Team_2

Case1

17/10/2018

Team_3

Case1

20/10/2018

Team_2

Case2

20/10/2018

Team_1

Case2

22/10/2018

Team_2

Case2

25/10/2018

Team_3

Case2

25/10/2018

Team_2

and the desired report should look like

ID

First time sent to Team_3

Last time sent to Team_3

Case1

13/10/2018

17/10/2018

Case2

25/10/2018

25/10/2018

I tried using First, Last but can't get the desired output.

Thanks in advance

Jas

 

How to implement a stored procedure to get this summary result?

$
0
0

I will implement a SSRS summary data report with following data records from one table.

ID         Part                  Type                 Value

1          Payroll              State Tax           2010

1          Payroll              City Tax            500

1          Payroll              Medical             300

2          Payroll              State Tax           2000

2          Payroll              City Tax             400

3          Payroll              FICA                  200

1          Refund              State Tax           -500

1          Refund              Medical             -100

3          Payroll              FICA                  200

1          Refund              State Tax           -500

1          Refund              Medical             -100

How Do I implement a sql stored procedure to produce following result by summarizing Type for each Part so it is easy to build the ssrs report? Thanks a lot!

Type                      Payroll                  Refund                 Total

State Tax              4010                      -500                       3600

City Tax                 900                        0                            900

FICA                       400                         0                          400

Medical                300                         -100                       200

SSRS vs ReportViewer in ASPnet MVC

$
0
0

Hi

I have 2 options: SSRS or ReportViewer in a new web application.

What is the better option?

I would like to compare performance, diferent kinds of charts and best practices.


multiple result sets from stored procedure bind to tabs in ssrs report

$
0
0

Hi,

I have requirement that would be

stored procedure  having 

below queries like 

select * from t1

select * from t2

select * from t3

above result sets each having almost 100,000  records.

I have to display 3 restult sets in 3 pages.

when exporting to excel sheet should be display with 3 tabs.

what is the best way to handle (without impacting performance.).

First page or table should have all 100000 records.

second page should have all 100000 records.

Third page should have all 100000 records.

Please suggest me best way to implement it.

SSRS Report

$
0
0

Hi

  I have created SSRS report . How to integrate in my Asp.net Application

Thanks

SSRS 2016 Custom Authentication

$
0
0

Currently I am implemented the SSRS 2016 Custom Authentication via https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample2016  

I have an external web application with only a test login page.  Once the user is logged on and authenticated I am using HttpContext.Current.Response.Redirect(ssrslogin.aspx,true) for the redirect.  I get redirected to the custom login page within SSRS 2016 but not getting authorized. 

The user shouldn't see the custom login page, the cookie being passed from the external web application should get passed along to the SSRS custom auth login page.  Which in turns validates the cookie using the  AuthorizzationExtension.

What am I missing?

rdlc / there is not enough space on disk

$
0
0
Hello, we are using RDLC on a webapplication, It is host on an internal web server for internal users. During a year all the user can generate reports, but recently gets an error: "there is not enough space on disk". I don't understand these error. Please help.

Not able to set "EnableExternalImages = true" for AspNetCore.Reporting 2.1.0

$
0
0

I am using reporting package - AspNetCore.Reporting 2.1.0 (https://www.nuget.org/packages/AspNetCore.Reporting) to generate the PDF report using RDLC.
But don't know how to set - "EnableExternalImages = true" for the local report.

It would be great if someone has an example code for RDLC in DotNETCore

SSRS 2012 i want To add a page has the place of the homepage(SSRS)

$
0
0

hello ,

this is my SSRS home page 

my SSRS homepage

and i want to Add a page which makes the rerouting for the homepage like this 

can you help me please whether it is possible 

How to allow Export to Excel only in RDLC ?? (NO Word/PDF)

$
0
0

Hi Friends,

I want my RDLC report report to Allow export  only Excel Reports. I  found this code on internet.    Unfortunately. It hides only  PDF  not the WORD   can anyone help me?

<asp:Panel ID="pnlReport" runat="server" Visible="false" ><rsweb:ReportViewer  Font-Names="DIN Next LT Arabic Light" ID="EventsReportByPeriod" runat="server"  Height="1190px" Width="100%" Visible="true" onload="ReportViewer_OnLoad" ShowPrintButton="False" ShowPromptAreaButton="False" ZoomMode="FullPage" ></rsweb:ReportViewer></asp:Panel>
 protected void ReportViewer_OnLoad(object sender, EventArgs e)
        {


            string[] exportOption = new string[] { "Word", "PDF" };


            foreach (var item in exportOption)
            {
                RenderingExtension extension = EventsReportByPeriod.LocalReport.ListRenderingExtensions().ToList().Find(x => x.Name.Equals(item, StringComparison.CurrentCultureIgnoreCase));
                if (extension != null)
                {
                    System.Reflection.FieldInfo fieldInfo = extension.GetType().GetField("m_isVisible", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
                    fieldInfo.SetValue(extension, false);
                }
            }
        }

  


How to show Dynamically created DataTable in RDLC Reports.

$
0
0

I have tried many ways and the dynamically created DataTable is not showing in RDLC report PDF file in ASP.Net MVC C#.

CS0433: The type Microsoft.Reporting.WebForms.ReportDataSource exists in both GAC and Temporary ASP.NET files

$
0
0

After upgrading Microsoft Report Viewer Control for ASP.Net Web Forms applications from version 10 to 15 with Nuget, when published project to server the error below starts to appear. On local machine everything works fine. All ReportViewer reference Copy Local properties are set to True, registered all report pages with appropriate assembly. Tried clearing temp asp.net files, checked for double references in web.config, installed latest version of report viewer on server, nothing helped. Do you have any advice or faced similar issue?

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

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.            Compiler Error Message: CS0433: The type 'Microsoft.Reporting.WebForms.ReportDataSource' exists in both 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\psshifttracker\3204b50c\1eca333e\assembly\dl3\0941aa88\00019b61_9c4ed401\Microsoft.ReportViewer.WebForms.DLL'Source Error:

Line 595:      

Line 596:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]

Line 597:       private global::Microsoft.Reporting.WebForms.ReportDataSource @__BuildControl__control9() {

Line 598:             global::Microsoft.Reporting.WebForms.ReportDataSource @__ctrl;

Line 599:                    

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\psshifttracker\3204b50c\1eca333e\App_Web_shiftreport.aspx.dfa151d5.venwfp5b.0.cs              Line:  597            

how to avoid to Specify a username and password for datasource in SSRS?

$
0
0

I am using SSRS as a part of my project for displaying reports. It accesses data from SQL data source.Here my problem is that each time I view my report on the browser, it asks me like this

"Specify a user name and password for data source"

I need to avoid this prompt while seeing my report on the browser. 

Dynamic RDL(SSRS) file Generation

$
0
0

I have created .rdl file using C# Asp.Net Core dynamically.

Problem i am facing while loding report in ReportViewer is .rld files's DataSet is not Initialized. or Dataset fields are not refreshed.

I want a solution that how to Initialize or refresh Dataset fileds dynamically whenever .rdl file is created.

I followed bellow link to create .rdl file dynamically 

https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms170239(v%3dsql.105)

Waiting for your response.

Thanks in Advance

add SSRS report link to mvc new windows remove password to user client

$
0
0

I have SSRS report server link 

http://myservers/reportserver

and in web.config  add key linkserver report

<add key="ReportViewerUrl" value="http://myservers/ReportServer/Pages/ReportViewer.aspx"/>

and in mvc i call via javascript  new  windows 

function getSSRP() {
        var SSRSReportURL = $("#SSRSUrl").val();

        SSRSReportURL = SSRSReportURL + "?" + $("#SSRSReportName").val()  
        window.open(SSRSReportURL, '', 'scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
    };

but when client view report the popup require user and pass to login windows server SSRS

my  question how to remove windows authentication when client view report

my report server config

Viewing all 1418 articles
Browse latest View live


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