Apr 26, 2014

Reporting in C# Using Visual Studio 2010

Do check this Code :->

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace wfpRKMVS
{
    public partial class rpCCAStudentWise : Form
    {
        public rpCCAStudentWise()
        {
            InitializeComponent();
        }

        private void rpCCAStudentWise_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'CCA.Student_wise' table. You can move, or remove it, as needed.
        //    this.Student_wiseTableAdapter.Fill(this.CCA.Student_wise);
            this.reportViewer1.LocalReport.ReportEmbeddedResource = "wfpRKMVS.rpCCAStudentWise.rdlc";
      //      ReportParameter rp = new ReportParameter("University_RollNumber",textBox1.Text);
      //      this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp });

         //   reportViewer1.ShowParameterPrompts
           
            this.reportViewer1.RefreshReport();
           
        }
    }
}

For any query do reply..............

No comments:

Post a Comment