protected void Page_Load(object sender, EventArgs e) { ReportDocument reporte = new ReportDocument(); ServiceReference1.WebService1SoapClient ws = new ServiceReference1.WebService1SoapClient(); if () { reporte.Load(Context.Server.MapPath("~/reporte.rpt")); reporte.SetDataSource(ws.MostrarDatos()); CrystalReportViewer1.ReportSource = reporte; } }
protected void Page_Load(object sender, EventArgs e) { ServiceReference1.WebService1SoapClient ws = new ServiceReference1.WebService1SoapClient(); GridView1.DataSource = ws.MostrarDatos(); GridView1.DataBind(); }