Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
i want to create box in pdf using c#
Amit Shrivastava
Oct 14 2015 5:49 AM
360
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;
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
to send mail in office outlook using
Display values in Gridview