我有一個有3列的表,它有大約10行。但是我想要做的是在特定行之後跳過一行。在特定行後跳過一個額外的行
這是我的代碼;
Paragraph paragraphTable3 = new Paragraph();
paragraphTable3.SpacingBefore = 20f;
paragraphTable3.SpacingAfter = 10f;
PdfPTable third_table = new PdfPTable(3);
third_table.TotalWidth = 560f;
third_table.LockedWidth = true;
third_table.SetWidths(new float[] { 2.4f,0.1f, 6.6f });
third_table.AddCell(new PdfPCell(new Phrase("Responsibilities Held ", other)) { BorderWidth = 0 });
third_table.AddCell(new PdfPCell(new Phrase(": ", other)) { BorderWidth = 0 });
third_table.AddCell(new PdfPCell(new Phrase(Responsibilities_held, other)) { BorderWidth = 0 });
third_table.AddCell(new PdfPCell(new Phrase("Description of Work Done", other)) { BorderWidth = 0 });
third_table.AddCell(new PdfPCell(new Phrase(": ", other)) { BorderWidth = 0 });
third_table.AddCell(new PdfPCell(new Phrase(Description_of_work_done, other)) { BorderWidth = 0 });
我得到這樣的輸出;
Responsibilities Held : Blah bluh bluh bluh bluh ............................
bluh ..........bluh ...
Description of Work Done : Blu....................................h..............
bluh.........................
Present Address : Blu....................................h..............
bluh.........................Extra space after here
Additional Qualifications : Blu....................................h..............
bluh.........................
我想以後現住址,以增加額外的空間
請幫我.... 謝謝
@DKKoch避免編輯會改變含義。插入只是跳過。 – SimpleVar 2015-02-11 06:27:39
如果您希望我們能夠了解您的情況,您必須告訴我們您的期望和目前正在獲得的信息。 – SimpleVar 2015-02-11 06:28:36
我是這樣得出來的; – 2015-02-11 06:45:53