I am creating a PDF using iTextSharp. I see how to create a new table with multiple columns, but I still cannot dynamically add a new column. The problem I have is that I will not know the number of columns that I need right now, so they need to add them
Can someone please enlighten me, or will I have to re-create the table every time I need to add a column?
Thanks Mat
Would it not be appropriate then to create an intermediate model that contains the table you need, and can it create a PDF table for you?
, , , , "" PdfPTable?
PdfPTable , .
, , - ... , . . , , , , .
. .
, , ... " " . (String [] [] - ), , , , . , , , .
, /. . , .
ITextSharp - HTML- (, , ).
, , , , .
Suppose you created pdfptable with 5 columns. The 5th cell that you add will be in the first row, and the 6th cell will be in the 1st column of the second row.
The only drawback of this is the need to add lines in which not all cells are filled, but I usually get around this by simply adding an empty cell or a cell with a space in it.
Source: https://habr.com/ru/post/1734577/More articles:Caching SQL Execution Plans - performanceiPhone and iPad - including the class will increase the binary file? - iphoneJtable content will not be updated after adding data as a parameter - javaFlex builder3 does not create html wrapper when targeting flex 4 sdk - flexWhat type of data will I use if I want to save a file with a user using PHP and MySQL? - typeskeeping the screen static when clicking a link - jqueryTwitter Error for IP Addressing and Authentication - securityHow to implement string (xml) in memystream for a file in C #? - c #Can I use Rakefile from another task? - ruby | fooobar.comInternal join in Insert query? - c #All Articles