private void bPSUPS_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { wrProducts.Server2Client sc = new wrProducts.Server2Client(); wrProducts.wsProducts pd = new wrProducts.wsProducts(); sc = pd.ProductListBySupplierSimple(); rptProductBySup rpt = new rptProductBySup() { DataSource = sc.dataTable }; GroupField grp = new GroupField("SupplierName"); rpt.groupHeader.GroupFields.Add(grp); rpt.lbSUP.DataBindings.Add("Text", null, "SupplierName"); rpt.lbPNM.DataBindings.Add("Text", null, "ProductName"); rpt.lbBVL.DataBindings.Add("Text", null, "BuyingValue", "{0:C2}"); rpt.lbSVL.DataBindings.Add("Text", null, "SellingValue", "{0:C2}"); rpt.lbQTY.DataBindings.Add("Text", null, "SumOfQuantity"); rpt.lbBCD.Text = ""; dv.PrintingSystem = rpt.PrintingSystem; rpt.CreateDocument(true); }