Example #1
0
        private PdfPTable CreateFrontPage()
        {
            PdfPTable table = new PdfPTable(2);

            table.SetWidths(new float[] { 25, 75 });
            table.WidthPercentage = 100;

            table.AddCell(new PdfPCell()
            {
                Phrase     = new Phrase(GlobalStringResource.ForOfficialUseOnly, FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 20)),
                Colspan    = 2,
                Border     = 0,
                PaddingTop = 70
            });

            table.AddCell(
                new PdfPCell()
            {
                Phrase        = new Phrase("Impact Analysis Report", FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 36)),
                Colspan       = 2,
                Border        = 0,
                PaddingLeft   = 0,
                PaddingBottom = 150
            });

            table.AddCell(
                PdfPHelper.CreatePaddingCell()
                );
            table.AddCell(
                PdfPHelper.CreatePaddingCell()
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell("Agenda", BaseColor.LIGHT_GRAY)
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell(this.filter.AgendaFilterText)
                );

            table.AddCell(
                PdfPHelper.CreatePlainCell("Business Policy", BaseColor.LIGHT_GRAY)
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell(this.filter.PolicyFilterText)
                );

            table.AddCell(
                PdfPHelper.CreatePlainCell("Business Rule", BaseColor.LIGHT_GRAY)
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell(this.filter.RuleFilterText)
                );

            table.AddCell(
                PdfPHelper.CreatePlainCell("Process", BaseColor.LIGHT_GRAY)
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell(this.filter.ProcessFilterText)
                );

            table.AddCell(
                PdfPHelper.CreatePlainCell("Application", BaseColor.LIGHT_GRAY)
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell(this.filter.ApplicationFilterText)
                );

            table.AddCell(
                PdfPHelper.CreatePlainCell("Sub-Process", BaseColor.LIGHT_GRAY)
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell(this.filter.SubProcessFilterText)
                );

            table.AddCell(
                PdfPHelper.CreatePlainCell("Module", BaseColor.LIGHT_GRAY)
                );
            table.AddCell(
                PdfPHelper.CreatePlainCell(this.filter.ModuleFilterText)
                );

            table.AddCell(
                new PdfPCell()
            {
                Border        = 0,
                PaddingBottom = 100,
                Colspan       = 2
            }
                );

            return(table);
        }