Answered by:
pdfpcell height.

Question
-
User1472402676 posted
I am search the net for set the pdfpcell height i found this code.
PdfPCell header = new PdfPCell(new Phrase("Header")); header.setFixedHeight(72f); header.Colspan = 4; table.AddCell(header);
but i con't find any method setFixedHeight()
I am missing any references????.
Wednesday, March 4, 2015 4:14 AM
Answers
-
User-158764254 posted
Maybe the code below could help you using FixedHeight method.FixedHeight is not a method, it is a Property. Your code does not compile as it produces a Non-invocable member error...
When working with samples of iText, you will find that there are samples for the java version which are littered with set and get methods. The .NET version ( iTextSharp ) does not use separate set and get methods and has collapsed them into simple properties.
So we drop the set/get prefixes that the java library uses and access them as Properties like this:
header.FixedHeight=72f;
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, March 15, 2015 10:07 AM
All replies
-
User1568384800 posted
Did you import the corresponding namespaces and add the correct references?Wednesday, March 4, 2015 9:19 AM -
User-1151753377 posted
Hi satheeshsara,
Thank you for your post.
According to your description, you want to set pdfcell height.
Maybe the code below could help you using FixedHeight method.
PdfPCell header = new PdfPCell(new Phrase("Header")); header.FixedHeight(72f); header.Colspan = 4; table.AddCell(header);
More details information please refer to the link below.
http://forums.asp.net/t/1964148.aspx?setting+cell+height+iTextSharp+the+introducing+tables+sample
Regards & Summer
Thursday, March 5, 2015 5:40 AM -
User-158764254 posted
Maybe the code below could help you using FixedHeight method.FixedHeight is not a method, it is a Property. Your code does not compile as it produces a Non-invocable member error...
When working with samples of iText, you will find that there are samples for the java version which are littered with set and get methods. The .NET version ( iTextSharp ) does not use separate set and get methods and has collapsed them into simple properties.
So we drop the set/get prefixes that the java library uses and access them as Properties like this:
header.FixedHeight=72f;
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, March 15, 2015 10:07 AM -
User1472402676 posted
nk you mbanavige
Tuesday, March 31, 2015 3:51 AM