private void BuildReport() { List <ReportParameter> paramarr = new List <ReportParameter>(); string addpath; string firstTitle = "dailySalesStatistic"; string secondTitle = ""; string subTitle = ""; string Title = ""; bool isArabic = ReportCls.checkLang(); if (isArabic) { if (selectedTab == 0) { secondTitle = "invoice"; addpath = @"\Reports\StatisticReport\Sale\Daily\Ar\dailySale.rdlc"; } else if (selectedTab == 1) { secondTitle = "order"; addpath = @"\Reports\StatisticReport\Sale\Daily\Ar\dailySaleOQ.rdlc"; } else { // selectedTab == 2 secondTitle = "quotation"; addpath = @"\Reports\StatisticReport\Sale\Daily\Ar\dailySaleOQ.rdlc"; } subTitle = clsReports.ReportTabTitle(firstTitle, secondTitle); } else { if (selectedTab == 0) { secondTitle = "invoice"; addpath = @"\Reports\StatisticReport\Sale\Daily\En\dailySale.rdlc"; } else if (selectedTab == 1) { secondTitle = "order"; addpath = @"\Reports\StatisticReport\Sale\Daily\En\dailySaleOQ.rdlc"; } else { // selectedTab == 2 secondTitle = "quotation"; addpath = @"\Reports\StatisticReport\Sale\Daily\En\dailySaleOQ.rdlc"; } subTitle = clsReports.ReportTabTitle(firstTitle, secondTitle); } string reppath = reportclass.PathUp(Directory.GetCurrentDirectory(), 2, addpath); ReportCls.checkLang(); Title = MainWindow.resourcemanagerreport.GetString("trSalesReport") + " / " + subTitle; paramarr.Add(new ReportParameter("trTitle", Title)); clsReports.SaledailyReport(itemTrasferInvoicesQuery, rep, reppath, paramarr); clsReports.setReportLanguage(paramarr); clsReports.Header(paramarr); rep.SetParameters(paramarr); rep.Refresh(); }