private void bPSUPX_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { wrProducts.Server2Client sc = new wrProducts.Server2Client(); wrProducts.wsProducts pd = new wrProducts.wsProducts(); sc = pd.ProductListBySupplierExtended(); 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, "Quantity"); rpt.lbBCD.DataBindings.Add("Text", null, "BarCode"); dv.PrintingSystem = rpt.PrintingSystem; rpt.CreateDocument(true); }