Showing posts with label rdl. Show all posts
Showing posts with label rdl. Show all posts

Wednesday, March 28, 2012

Parameter missing

Hi,

I was developed the rdl report and i deployed to the server, In my report having the single input parameter When i run the report

asking parameter value and i was gave the value it was generated the report it is working fine.

Then this rdl report bind to the reportviewer control using

Report viwer tasks :

Choose Report : < Server Report>

Server Report Url:http://localhost/reportserver

Report Path : /Sales/Details

then i run the error should shown:

  • An error has occurred during report processing.
  • Query execution failed for data set 'Details'.
  • Procedure 'Usp_Details' expects parameter '@.PId', which was not supplied.

    How i pass the parameter value in reportviewer.

    Plz any one would help to me.

    regards

    kumar

    First deploy it and go to the IIS and open the Report folder and browse it.You can find your report there.Run that report.If that is working fine so some other problem was there.Do like that way if it is working so the page should work fine.

    |||

    Hi,

    Thanks for your response

    I did you told that way it is working fine and i was bind the rdl report to Reportviewer in my webpage then i ran the error should occured

    An error has occurred during report processing.

  • Query execution failed for data set 'Details'.
  • Procedure 'Usp_Details' expects parameter '@.PId', which was not supplied|||

    ptParameters[0] =
    new Microsoft.Reporting.WebForms.ReportParameter("ClientId", sessParam );

    this.ReportViewer1.ServerReport.SetParameters(RptParameters);
    this.ReportViewer1.ServerReport.Refresh();

    check this article for more infohttp://www.codeproject.com/sqlrs/ReportViewer2005.asp

    |||

    It is working fine thanks lot

    regards

    kumar

    sql
  • Monday, March 26, 2012

    parameter is missing a value error

    I am trying to populate a report "rdlc" file within a reportviewer control in a webpage. It works fine when is ran as a RDL file as a report services solution. Now that I created my datasource that will populate my report, I get an error "The 'beg_date' parameter is missing a value", which is a field that is specified back from the result of the procedure. Anyone know how to approach this?

    Private connAs String Protected Sub Page_Load(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Me.Load conn = System.Configuration.ConfigurationManager.ConnectionStrings("ESQLConn").ConnectionString()End Sub Protected Sub Button1_Click(ByVal senderAs Object,ByVal eAs System.EventArgs)Handles Button1.Click AddReportDataset()End Sub Private Sub AddReportDataset()Dim ds1As ReportDataSource =New ReportDataSource("DataSource1", sd1())Dim ds2As ReportDataSource =New ReportDataSource("DataSource2", sd2())Dim ds3As ReportDataSource =New ReportDataSource("DataSource3", sd3())Me.rptViewer.LocalReport.DataSources.Add(ds1)Me.rptViewer.LocalReport.DataSources.Add(ds2)Me.rptViewer.LocalReport.DataSources.Add(ds3)End Sub Private Function sd1()As SqlDataSourceDim compnameAs ControlParameter =New ControlParameter compname.DefaultValue =Me.txtCompany.Text.ToStringDim begdateAs ControlParameter =New ControlParameter begdate.DefaultValue =Me.txtBegDate.Text.ToStringDim enddateAs ControlParameter =New ControlParameter enddate.DefaultValue =Me.txtEndDate.Text.ToStringDim sqldsAs New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand ="csp_rpt_ef0115_db" sqlds.SelectCommandType = SqlDataSourceCommandType.StoredProcedure sqlds.SelectParameters.Add(compname) sqlds.SelectParameters.Add(begdate) sqlds.SelectParameters.Add(enddate)Return sqldsEnd Function Private Function sd2()As SqlDataSourceDim sqldsAs New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand ="SELECT DISTINCT RTRIM(Act_Type) + ISNULL(Act_Sub_Type,'') AS Type FROM AR_Act" sqlds.SelectCommandType = SqlDataSourceCommandType.Text Return sqlds End Function Private Function sd3() As SqlDataSource Dim sqlds As New SqlDataSource sqlds.ConnectionString = conn sqlds.SelectCommand = "select Item from dbo.Pick_Items with (nolock)
    where fPick_Name='asxdbLocations" sqlds.SelectCommandType = SqlDataSourceCommandType.TextReturn sqldsEnd Function

    hello,

    you seem to be commenting some of you code out by using ' instead of "

    See your original post and look at the text in green which is commented out. Could this be the problem?

    Regards

    Marco

    |||

    use those link it might help you http://www.c-sharpcorner.com/UploadFile/asif.blog/DynamicDataGrouping08042006115320AM/DynamicDataGrouping.aspx

    Friday, March 23, 2012

    parameter

    Dear all,

    May I know is it possible for me to pass the parameters from aspx page to rdl? If so, then how to do that? FYI, the data displayed in my rdl page is depend on the various parameters pass in from that corresponding aspx page. Thanks

    Levine

    What exactly do you mean?

    |||

    I have a class file in visual studio 2005 and I'm thinking of using it to pass the parameters to my rdl (sql server 2005) but I don't know how to made the rdl accept (get) the parameters pass to it. Thanks

    |||

    by the way.. did you use reportviewer control with rdlc or rdl?

    If you are using rdlc then this is how i understand

    tell me if i'm wrong, did you mean that you want to display a dynamic data (rdlc) in your page depending on the parameter?

    scenario:

    In my page ,I have drop down list for year wherein a user can choose an options, if user select an specific option then it will display the data in reportviewer based on the year selected?

    |||

    this is easy

    First it is necessary to ccreate aReportParameter object (be sure you have a reference toMicrosoft.Reporting.WebForms). The contructor takes two string parameters one for the Name and one for the Value. A new parameter would look like the code below.

    ReportParameter myReportParameter = new ReportParameter("Id",
    Request.QueryString["Id"]);

    Next, parameters on the ReportViewer are set using theSetParameters method. It takes an array of ReportParameter, so you would have syntax like the following.

    MyReportViewer.ServerReport.SetParameters(
    new ReportParmeter[] { myReportParameter });
     
    you can use report viewer control which you can download from this linkhttp://www.gotreportviewer.com/
    |||

    Hello,

    Thanks for the help. But what I'm trying to do is to create a rdl file which can accept the parameters which are passed from aspx page. May I know is it in a way that the rdl will have a "container" to get those parameters? Thanks again :)

    Levine

    |||

    Have you tried using aspnet Reportviewer control?

    Friday, March 9, 2012

    paging

    please let me know the steps to set
    =Int((RowNumber(Nothing)-1)/2)
    expression for pagebreak in rdl file.On Apr 18, 7:34 am, abhi <a...@.discussions.microsoft.com> wrote:
    > please let me know the steps to set
    > =Int((RowNumber(Nothing)-1)/2)
    > expression for pagebreak in rdl file.
    Something like this should work.
    1. Right click the list/table/matrix control and select 'Properties'
    from the drop-down list.
    2. Select the 'Edit details group...' button.
    3. On the 'General' tab, below 'Group on:' and 'Expression' type in
    something similar to the following:
    =Ceiling(RowNumber(Nothing)/25)
    Where, in this example, 25 is the number of rows per page. Then select
    'Page break at end' in the Properties of the list/table/matrix
    control. Hope this helps.
    Regards,
    Enrique Martinez
    Sr. Software Consultant

    Monday, February 20, 2012

    page setup parameters

    I have a report (.rdl) that I created in Visual Studio. Is there any way to
    send the page setup parameters along with the report so that the user isn't
    required to fiddle with the page setup? For example, I have a report that
    prints in landscape on legal paper, I want them to be able to click print and
    have it output with the landscape/legal setup as opposed to having to set
    that up in a print dialog box. I can see the margin setup, page width and
    Height in VS, but these don't affect the paper or orientation settings.
    Any ideas?I have same issue on Margine setting once i put it in production, the report
    layout are changed and it is not what i want.
    Can you solve it'
    "beeyule" wrote:
    > I have a report (.rdl) that I created in Visual Studio. Is there any way to
    > send the page setup parameters along with the report so that the user isn't
    > required to fiddle with the page setup? For example, I have a report that
    > prints in landscape on legal paper, I want them to be able to click print and
    > have it output with the landscape/legal setup as opposed to having to set
    > that up in a print dialog box. I can see the margin setup, page width and
    > Height in VS, but these don't affect the paper or orientation settings.
    > Any ideas?|||If you set the Width to be the Height and the Height to be the Width this
    will get you the Landscape option.
    Ie. for Letter Width=11in and Height=8.5in.
    Choosing the paper is a bit different since it depends on the printer for
    the local computer. However to get this to happen you can set the default
    printer and paper from the windows printers/faxes option. This will then
    default in to that box when they click print.
    Hope this helps,
    Craig
    "beeyule" <beeyule@.discussions.microsoft.com> wrote in message
    news:2B86CFB0-44BF-4566-B942-9AAD497BD73B@.microsoft.com...
    >I have a report (.rdl) that I created in Visual Studio. Is there any way
    >to
    > send the page setup parameters along with the report so that the user
    > isn't
    > required to fiddle with the page setup? For example, I have a report that
    > prints in landscape on legal paper, I want them to be able to click print
    > and
    > have it output with the landscape/legal setup as opposed to having to set
    > that up in a print dialog box. I can see the margin setup, page width and
    > Height in VS, but these don't affect the paper or orientation settings.
    > Any ideas?