protected override void GenerateReportHeader() { byte[] logoByte = Common.GlobalProfile.Logo; string contactInfo = Common.GlobalProfile.ContactInfo; if (logoByte != null || !string.IsNullOrWhiteSpace(contactInfo)) { PdfPTable headerTable = PdfElementGenerator.createTable(new float[] { 0.57f, 0.05f, 0.38f }); PdfPCell[] headRowCells = headerTable.Rows[0].GetCells(); if (logoByte != null) { headRowCells[0].Image = this.getImage(logoByte); } if (!string.IsNullOrWhiteSpace(contactInfo)) { headRowCells[2].Phrase = PdfElementGenerator.createPhrase(contactInfo, 6.1f, false); headRowCells[2].Border = 15; //headRowCells[2].HorizontalAlignment = Element.ALIGN_RIGHT; } foreach (var item in headRowCells) { item.FixedHeight = 35f; if (item.Phrase != null) { item.VerticalAlignment = Element.ALIGN_MIDDLE; } } document.Add(headerTable); PdfElementGenerator.AddEmptyParagraphToDocument(this.document, this.sectionMargin); } }