Topic: Create a subreport Posted: 13 Mar 2011 at 12:17am
Hello experts I have a master report with one sub report. I create all well. my code for execute report as belows: public void SelectAll(int id) {
SqlCommand cmd = dbs.Cmd("select * from ViewDetailDetailTest "); SqlCommand cmd1 = dbs.Cmd("select * from View_auction_Detail where auctionNo=" + id + " order by LotNo Asc");
SqlDataAdapter da = dbs.Da(cmd); SqlDataAdapter da1 = dbs.Da(cmd1); DataSet ds = new DataSet(); DataSet ds1 = new DataSet(); da.Fill(ds1, "ViewDetailDetailTest"); da1.Fill(ds, "View_auction_Detail");
doc.Load(Server.MapPath(".") + "\\Report\\breakup.rpt"); rptBreakup rb = new rptBreakup(); doc.SetDataSource(ds.Tables[0]);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum