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

This report requires a default or user-defined value for the report parameter ssrs error

$
0
0

I get this error when trying to print a report:

Experienced an exception while executing [RenderReport]; This report requires a default or user-defined value for the report parameter ''Inforbar''.

The parameter properties for Inforbar in SSRS is to Allow Null values. All the other properties are set to the defaults. I am trying to figure why I am getting this error and have gotten no where so far.

The query parameters in the SSRS code is:

<QueryParameter Name="@Inforbar"><Value>=Parameters!Inforbar.Value</Value></QueryParameter></QueryParameters>

The report parameters in the SSRS code is 

<ReportParameter Name="Inforbar"><DataType>String</DataType><Nullable>true</Nullable><Prompt>Inforbar</Prompt></ReportParameter>


SSRS Xml ElementPath

$
0
0

Hi,

I have an XML file with a namespace prefix, and I am unable to figure out the right path. I have tried a number of combinations, and I have not been successful.

I need help please.

My xml looks like this:

<Valuations xmlns:d2p1="http://schemas.datacontract.org/2004/07/ZZZ.YYY.III">

<d2p1:Valuation>

    <d2p1:AccountNumber>980080</d2p1:AccountNumber>

    <d2p1:AsOfDate>2012-05-31T00:00:00</d2p1:AsOfDate>

</d2p1:Valuation>

</Valuations>

ErnestoDeLaRuiz

Error : OLEDB provider SQLOLEDB has not been installed or is not valid..

$
0
0
Hi In the Report Wizard pane there are 2 buttons "Edit" & "Credentials" for creating a new data source. when i clicked "Edit" button after entering data source name as 'data1' & type as 'Microsoft SQL Server' it shows an Error :[OLEDB provider SQLOLEDB has not been installed or is not valid]. whereas if i give the connection name inside the "connection string" option it is accepting. through wizard it is showing ERROR. how to solve this problem. Thanks kamal anand

Printer icon missing

$
0
0

A couple users do not see the printer icon when the SSRS report is called up via url.  One user has IE11 and another user has windows 10 Edge browser.  All other users with IE11 have no problem.  How can I fix this?  I tried installing the latest .Net 4.5.1 on server and also added a .browser file into the App_Browsers folder as one site suggested but neither worked.  Any ideas?

How to Duplex printing in RDLC?

$
0
0

Hello Friends,

I  want to print a ID card via RDLC  the ID contains data on both sides front/back. I am wondering how could I do Duplex printing using RDLC in ASP.NET?

How to define Area. Any Samples?

Please help.

Imran.

how to view ssrs reports in winforms using vs 2013

$
0
0

Hi Everyone,

I have created and deployed ssrs  report in my local machine and now want view the report using vs2013 winform or webform using report viewer.Earlier I was able to view
reports in vs2008.but not getting any control in toolbox to see ssrs report in vs2013.can anybody help me for detail steps?

Thanks in advance

Multiple if statement in SSRS

$
0
0

I'm trying to write the following if else statement statement.

If Fields!CurrencyCode.Value = "EUR" then display this : Code.EuroFmt2Decimal(Fields!InvoiceTotal.Value) + " " + Fields!CurrencyCode.Value

IF  Fields!CurrencyCode.Value = "EUR AND Fields!SoldToCustomer.Value = 121654 then display this : Code.EuroFmt2Decimal(Fields!InvoiceTotal.Value) + " " + Fields!CurrencyCode.Value

else  then Display this:  Code.USFmt2Decimal(Fields!InvoiceTotal.Value ) & " " & Fields!CurrencyCode.Value

Need some help on how to write this

Report Viewer Configuration Error - VS2012 - Debugging (ie: not deployed)

$
0
0

Hi all, 

I know this error is documented in *many* post in the web. I've sure read all of them and can not make my report working. This is a small application I built using VS2012 and deployed in a server some weeks ago. Everything is working fine with deployed app. Now, I'm trying to add a report in VS2012 and this situation arises. 

When I debug my app and try to get the report, all I get is this message: 

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> to the system.web/httpHandlers section of the web.config file

As I said, this is well reported in posts around the web; I have applied some suggested solutions, but to no avail. 

As per some posts, I've added this sections to my web.config file: 

<httpHandlers><add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/></httpHandlers>

and this also: 

<system.webServer><modules runAllManagedModulesForAllRequests="true"/><validation validateIntegratedModeConfiguration="false" /><handlers><add name="ReportViewer" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/></handlers></system.webServer>

Still getting the error mentioned above. 

Can somebody help me with this issue. This is tormenting me. 

Thanks and bye ... 





how to render sub report recursively or section recursively in SSRS report

$
0
0

Hi All,

We have the below scenario.

We are building a report and at the bottom of the report we need to render list of users those are going to put their signature . We are going to export the report in pdf format.

Lets say we have a datatable called list of users. the number of users may vary different scenarios..

User

User1

User2

User3

Now at the end of the report we want to show something like this

Signatures:-

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

Name : User1

place          :_____________________

Date           :______________________

Signature   :_____________________

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

Name : User2

place          :_____________________

Date           :______________________

Signature   :_____________________

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

Name : User3

place          :_____________________

Date           :______________________

Signature   :_____________________

Please help me how to do this in report......

SSRS subtotal of exact number of values

$
0
0

Hi all,

I am troubling with a problem that I have been working on a project. The scenerio is like that:

I have a set of data which has 70000 rows. Each row has 10 numerical cells. This data consisting of departure cities and the destination cities of a plane. After some sorting I need to get, based on the origin city, the first 20rows and the 21st row must have the subtotal of all remaining rows.

For example by using 3-letter abbreviations of cities I have the following data:

Origin    Destination    FleetBodyType   Chargeableweight   Postweight

FRA        NYC                WIDE-BODY      3.000                       200

LAX        ACC                CARGO              65.000                     2.500

.

.

and so on

The final data should be like this

Origin    Destination    FleetBodyType   Chargeableweight   Postweight

FRA        NYC                WIDE-BODY      3.000                       200

FRA        CHI                 CARGO              60.000                     500

FRA        SAO                WIDE-BODY      35.000                     400

.

.

FRA       OTHER             -                        S.T                            S.T

This last row must consist of the subtotal of the data of the remaining rows.

Is it possible to do this?

System.OutOfMemoryException while rendering to PDF from reportviewercontrol

$
0
0

Hi All,

I am tring to render huge data (5000 records. sometimes even more) from reportviewer control to PDF. But getting following error. Below are the steps that i am doing in code.

1. Read data from SQL Server

2. Fill data in RDLC datasource (RDLC report is too complex having groups, sub reports etc which is business need. I don't think i can change anything in report)

3. Load RDLC report in reportviewer control

4. Render to PDF.

While rendering huge data, it is throwing following error.

An error occurred during local report processing.:Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.ReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

at System.IO.MemoryStream.set_Capacity(Int32 value)

at System.IO.MemoryStream.EnsureCapacity(Int32 value)

at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)

at Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF.AppendString(String nextString)

at Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF.EndPage()

at Microsoft.ReportingServices.Rendering.ImageRenderer.CompositionPDF.SendPhysicalPages(Boolean force)

at Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.ProcessPages(CompositionBase theComposition, Report theReport, Boolean needTotalPages, Int32 startPage, Int32 endPage, Boolean render)

at Microsoft.ReportingServices.Rendering.ImageRenderer.PdfReport.RenderReport(Report report, NameValueCollection deviceInfo, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStreamCallback, Int32 streamPageNumber)

at Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream)

--- End of inner exception stack trace ---

at Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, EvaluateHeaderFooterExpressions evaluateHeaderFooterExpressions, CreateAndRegisterStream createAndRegisterStream)

at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc, CreateReportChunk cacheDataCallback, Boolean& dataCached)

--- End of inner exception stack trace ---

at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc, CreateReportChunk cacheDataCallback, Boolean& dataCached)

at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc)

at Microsoft.Reporting.LocalService.RenderWithDataCache(PreviewItemContext itemContext, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, IRenderingExtension renderer, ReportProcessing repProc, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup)

at Microsoft.Reporting.LocalService.Render(PreviewItemContext itemContext, Boolean allowInternalRenderers, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup, ProcessingMessageList& warnings)

at Microsoft.Reporting.WinForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings):Microsoft.ReportViewer.WinForms: at Microsoft.Reporting.WinForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)

at Microsoft.Reporting.WinForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)

at Microsoft.Reporting.WinForms.LocalReport.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)

at ExportPDF.ExportPDFDocument.GeneratePDF()

I searched in microsoft forums, they say it is because less memory in system. Need to solve as soon as possible since it is error in production. Please help me!!!

Regards

Jyothi

 

 

 

 

SSRS inside ReportViewer - link not working

$
0
0

I have SSRS call in asp.net and inside report viewer

That is a textbook in ssrs report with action -> go to report;
If I run SSRS report alone, and click on the link in SSRS report, it will go to other report define in the action

When I run from ASP.net, report viewer, click on the link won't work, it will come back to the same page but not to other report define in the action

any help ?

Reportviewer shows Empty or Blank Report in VS2013

$
0
0

Hi All I am working with VS2013 ultimate on windows server 2008R2 OS and using Sql2012(SSRS 2012) Report.

I have Set Reportviewer Properties as Following:

Processmode=local,ServerURL=http://localhost/Reportserver and ReportPath as /ReportProject1/Report1 Now when I run Report it shows empty report on asp.net web page.

Could anybody tell me the reason??/what is missing??

Thanks in advance...

Rotate Image pulled from Database Table

$
0
0

Hello, I am using SSRS to print UPS labels.  These UPS Label images are stored in a table.  When we print, I need the label image to be horizontal to print on sticky labels but it comes up vertical from the database table.  I need to rotate it 90 degrees when displayed in my report viewer.  In some cases I have multiple labels which show up in different pages in my report.

I have found other websites that mention you can import System.Drawing and then create code to rotate text or an image using (RotateFlipType.Rotate90FlipNone).  I can't quite figure out how to write the code though for an image pulled from a table.  Suggestions?  Thanks!

Stream Specific pages from RDLC report

$
0
0

Dear All,

I am using the following code to stream RDLC report pages into image files and then print them,

My question is there a way to modify the code to stream only certain page number or a range of pages? 

Thanks

Public Class RepVuer
    Inherits System.Web.UI.Page
    Implements IDisposable
    Private m_currentPageIndex As Integer
    Private m_streams As IList(Of Stream)

 Private Function CreateStream(ByVal name As String, ByVal fileNameExtension As String, ByVal encoding As Encoding, ByVal mimeType As String, ByVal willSeek As Boolean) As Stream
        Dim stream As Stream = New MemoryStream()
        m_streams.Add(stream)
        Return stream
    End Function
    Public Function PageSizeParam(ByVal Format As String)
        Dim DW As String = Nothing
        Dim DH As String = Nothing
        Dim Mrg_top As String = Nothing
        Dim Mrg_Right As String = Nothing
        Dim Mrg_Left As String = Nothing
        Dim Mrg_Bottom As String = Nothing
        Dim RawData As String = PgeSize.SelectedValue
        Dim Arg = RawData.Split("/")
        Dim ParamDim = Arg(0).Split(",")
        Dim W As String = ParamDim(0)
        Dim H As String = ParamDim(1)
        Dim ParamMarg = Arg(1).Split(",")
        Mrg_top = ParamMarg(0)
        Mrg_Right = ParamMarg(1)
        Mrg_Left = ParamMarg(2)
        Mrg_Bottom = ParamMarg(3)
        Select Case PgeOri.SelectedValue
            Case Is = 1
                DW = W
                DH = H
            Case Is = 2
                DW = H
                DH = W
        End Select
        Dim deviceInfo As String = "<DeviceInfo>" & _"<OutputFormat>" & Format & "</OutputFormat>" & _"<PageWidth>" & DW & "in" & "</PageWidth>" & _"<PageHeight>" & DH & "in" & "</PageHeight>" & _"<MarginTop>" & Mrg_top & "in" & "</MarginTop>" & _"<MarginLeft>" & Mrg_Left & "in" & "</MarginLeft>" & _"<MarginRight>" & Mrg_Right & "in" & "</MarginRight>" & _"<MarginBottom>" & Mrg_Bottom & "in" & "</MarginBottom>" & _"</DeviceInfo>"
        Return deviceInfo
    End Function

    Private Sub Print()
        Dim warnings As Warning()
        m_streams = New List(Of Stream)()
        RepVuerCtl.LocalReport.Render("Image", PageSizeParam("EMF"), AddressOf CreateStream, warnings)
        For Each stream As Stream In m_streams
            stream.Position = 0
        Next
        If m_streams Is Nothing OrElse m_streams.Count = 0 Then
            Throw New Exception("Error: no stream to print.")
        End If
        Dim printDoc As New PrintDocument()
        If Not printDoc.PrinterSettings.IsValid Then
            Throw New Exception("Error: cannot find the default printer.")
        Else
            AddHandler printDoc.PrintPage, AddressOf PrintPage

            m_currentPageIndex = 0
            printDoc.Print()
            DisposeStrm()
        End If
    End Sub

   Private Sub PrintPage(ByVal sender As Object, ByVal ev As PrintPageEventArgs)
        Dim pageImage As New Metafile(m_streams(m_currentPageIndex))

        ' Adjust rectangular area with printer margins.
        Dim adjustedRect As New Rectangle(ev.PageBounds.Left - CInt(ev.PageSettings.HardMarginX), _
                                          ev.PageBounds.Top - CInt(ev.PageSettings.HardMarginY), _
                                          ev.PageBounds.Width, _
                                          ev.PageBounds.Height)

        ' Draw a white background for the report
        ev.Graphics.FillRectangle(Brushes.White, adjustedRect)

        ' Draw the report content
        ev.Graphics.DrawImage(pageImage, adjustedRect)

        ' Prepare for the next page. Make sure we haven't hit the end.
        m_currentPageIndex += 1
        ev.HasMorePages = (m_currentPageIndex < m_streams.Count)
    End Sub
    Public Sub DisposeStrm() Implements IDisposable.Dispose
        If m_streams IsNot Nothing Then
            For Each stream As Stream In m_streams
                stream.Close()
            Next
            m_streams = Nothing
        End If
    End Sub
Protected Sub PrntPnlBtn_Click(sender As Object, e As ImageClickEventArgs) Handles PrntPnlBtn.Click
Print()
End Sub
End Class


Error viewing ssrs 2012 reports in vs2013 ultimate edition

$
0
0

Hi I have created Simple report which is just fetching the table from sql 2012.I have deployed that on my localhost reportserver and able to run
properly.This I am doing on test server which is a workgroup and had OS win2008R2.

Now when I try to view it through ReportViewerControl it gives me error as: item '/Report_project1/Report1'not found(rsitemnotfound)

what should I do.I have configured properties as below.

Processmode:remote,Serverurl:http://localhost/Reportserver and Reportpath:/Report_project1/Report1 also I have referenced a Microosft.Reportviewer.winform namespace

can anyone help?

Migrating SSRS to ReportViewer - particularly multiple reports with different parameters

$
0
0

We are migrating multiple reports for a project from SSRS off the report server onto ReportViewer ( converting RDL files to RDLC files [?] )  and while researching these posting is the best example that I can find for this scenario, our concern also is varying parameters per report.   Using:  Visual Studio 2010, VB, ASP.NET 3.5

referencing these page to this Q&A regarding multiple reports with different parameters, is this the only way to code for numerous report and their related parameters ?

But is there a more dynamic method for this ?

http://forums.asp.net/t/1472608.aspx

http://forums.asp.net/t/1240076.aspx?Passing+Parameters+to+a+Local+Report+rdlc+

I found these as possible alternatives and would like you input and feedback....

http://stackoverflow.com/questions/5155169/how-to-get-parameters-and-theirs-values-from-parameterspanel-in-perpetuumsoft-re

http://helpcenter.perpetuumsoft.com/KB/a273/how-to-check-parameters-values-input-the-user-the.aspx

http://www.gotreportviewer.com/

http://spacefold.com/lisa/post/Dynamically-loading-reports-in-ReportViewers.aspx

Thanks again

George Lewycky

george.lewycky@nyct.com

RDLC all records in one row and one column

$
0
0

Hello All,

I currently have an RDLC with 9 columns with headers that displays the data if it belongs to that header category. The report works fine for now. However, I need to make a few changes to it. For instance:

1 - The headers are static and I want to make them dynamic pulling from the Data. Can I use an expression?  I have GroupID which contains ids from 1 to 9, If the GroupID matches one of them I want to display GroupName correspondent to the GroupID. Both DataFields are on my DataSet

2 - The records now show on individual rows. What I mean by that is, even if GroupID 1 has 10 records, it still shows 10 different lines and if GroupID 2 has records it will also show on different lines, making the report too long. Is there a way to combine all records of the same GroupID in one row, one column? Also if it has records that meet the criteria from a different GroupID to be on the same row/columns as the first GroupID?

Once again, thanks for the help in advance. I appreciate

Leo

First, Last and...Functions

$
0
0

Hello All,

I know that I can use something like:

=First(Fields!Group.Value, "helloWorldReport")
=Last(Fields!Group.Value, "helloWorldReport")

To get the first and last records of my dataset. However, how can I get the ones in between them? What if I have 9 or 10 other records, can it be done?

Thanks in advance,

Leo

Why my RDLC report is not getting populated with latest data ?

$
0
0

I have an rdlc report which is loading data from database table via Datatable but problem is that it only shows 27 records, not more. Even the sql table and datatable in c# has populated data but not populating in RDLC report.

I have used same code and same problem everywhere.

protected void Page_Load(object sender, EventArgs e)
{
//ASP.controls_resultlabel_ascx ResultLabel = new ASP.controls_resultlabel_ascx();

if (!IsPostBack)
{


Fill_AuditsReport();


}
}


public void Fill_AuditsReport() 
{
ReportViewer1.AsyncRendering = false;
ReportViewer1.SizeToReportContent = true;
ReportViewer1.ZoomMode = ZoomMode.FullPage;
this.ReportViewer1.Reset();

DataTable dt = new DataTable();
Audits.ManageAudits MngAudits = new Audits.ManageAudits();

dt = MngAudits.SelectAuditsInfo();

ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/DataManagementReports/AuditsReport.rdlc");
ReportDataSource rpds = new ReportDataSource("DataSetAudits", dt);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(rpds);
ReportViewer1.Visible = true;
}



Even datatable is getting populated with full data while debugging.

Viewing all 1418 articles
Browse latest View live


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