Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
i want to create box in pdf using c#
Amit Shrivastava
9y
373
1
Reply
Hi
i want to create box in header row in PDF like that and i had write code
PdfPTable ClaimaintHeader = new PdfPTable(3);
PdfPCell OurReferenceHeader = new PdfPCell(new Phrase("Our Ref", _font10BoldBlack));
PdfPCell Claimant = new PdfPCell(new Phrase("Claimant", _font10BoldBlack));
PdfPCell ClaiminigFor = new PdfPCell(new Phrase("Claiming For", _font10BoldBlack));
OurReferenceHeader.BorderColor = iTextSharp.text.BaseColor.BLACK;
Claimant.BorderColor = iTextSharp.text.BaseColor.BLACK;
ClaiminigFor.BorderColor = iTextSharp.text.BaseColor.BLACK;
OurReferenceHeader.BackgroundColor = new iTextSharp.text.BaseColor(System.Drawing.Color.LightGray);
Claimant.BackgroundColor = new iTextSharp.text.BaseColor(System.Drawing.Color.LightGray);
ClaiminigFor.BackgroundColor = new iTextSharp.text.BaseColor(System.Drawing.Color.LightGray);
OurReferenceHeader.HorizontalAlignment = Element.ALIGN_LEFT;
Claimant.HorizontalAlignment = Element.ALIGN_LEFT;
ClaiminigFor.HorizontalAlignment = Element.ALIGN_LEFT;
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
to send mail in office outlook using
Display values in Gridview