Esempio n. 1
0
        public void DownloadSubList()
        {
            DataControl.BLUser      objUser    = new BLUser();
            DataControl.CurrentInfo objCurInfo = new CurrentInfo();
            string  companyCode = objCurInfo.GetCompanyCode();
            DataSet Ds          = new DataSet();

            Ds = objUser.DownloadSubList(companyCode);
            Ds.Tables[0].TableName = "State Details";
            Ds.Tables[1].TableName = "City Details";
            Ds.Tables.RemoveAt(3);
            Ds.Tables.RemoveAt(2);
            HttpResponse  response = System.Web.HttpContext.Current.Response;
            DownloadExcel excel    = new DownloadExcel();

            excel.Convert(Ds, "State_City" + "_" + DateTime.Now.ToShortDateString(), response);
        }