Ejemplo n.º 1
0
        private bool CreateDocumentDetailsSheet(ISheet documentPage, List <Document> list)
        {
            try
            {
                var excelRow  = documentPage.GetRow(0) ?? documentPage.CreateRow(0);
                var excelCell = excelRow.GetCell(0) ?? excelRow.CreateCell(0);
                SetHeader(excelCell);
                excelCell.SetCellValue("Documents Report");
                var iRunningRow = 2;

                var drep = new DocumentsDetailedReport(list);
                iRunningRow = WriteReportToPage(documentPage, drep.AttributesGrid, iRunningRow, false);

                Debug.WriteLine(iRunningRow);
                return(true);
            }
            catch (Exception e)
            {
                //log the error
                Logger.Error("Failed to create Summary Sheet", e);
                return(false);
            }
        }
Ejemplo n.º 2
0
        private bool CreateDocumentDetailsSheet(ISheet documentPage, List<Document> list)
        {

            try
            {
                var excelRow = documentPage.GetRow(0) ?? documentPage.CreateRow(0);
                var excelCell = excelRow.GetCell(0) ?? excelRow.CreateCell(0);
                SetHeader(excelCell);
                excelCell.SetCellValue("Documents Report");
                var iRunningRow = 2;

                var drep = new DocumentsDetailedReport(list);
                iRunningRow = WriteReportToPage(documentPage, drep.AttributesGrid , iRunningRow, false);
                
                Debug.WriteLine(iRunningRow);
                return true;
            }
            catch (Exception e)
            {
                //log the error
                Logger.Error("Failed to create Summary Sheet", e);
                return false;
            }
        }