protected void Page_Load(object sender, EventArgs e) { ReportViewer1.LocalReport.DataSources.Clear(); OracleConnection oracon = new OracleConnection(); oracon.ConnectionString = ConfigurationManager.ConnectionStrings["myConnection"].ConnectionString; OracleCommand cmd = new OracleCommand("select * from emp ", oracon); cmd.CommandType = CommandType.Text; OracleDataAdapter da = new OracleDataAdapter(cmd); DataSet dsHeader = new DataSet(); da.Fill(dsHeader); ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DS1_LoadHeaderData",dsHeader.Tables[0])); ReportViewer1.LocalReport.Refresh(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)