Go to GoReading for breaking news, videos, and the latest top stories in world news, business, politics, health and pop culture.

How to Adjust the Cell Size in iTextSharp

104 17
    • 1). Open the document containing the cell you wish to edit.

    • 2). Locate the commands for the cell you want to edit. If the cell you want to edit contains the text "Profits," locate the command titled, "(cell=Profits)." Locate the command above the "Profits" command titled, "widths = Xf, Yf" where "X" and "Y" are numbers.

    • 3). Delete the "X" and "Y" numbers and replace them with the adjusted width you want the cells to have. The numbers represent the width of the cells and must equal the total width of the table. For instance, if the total width of the table is 200, "X" and "Y" must equal 200. If the width of the table is 200, the command "widths = 75f, 125f" is correct; the command "widths = 20f, 45f" is not.

Source...

Leave A Reply

Your email address will not be published.