since the new release I’ve some broken tables.
The first 3 tables in my document look good (Good.png) the following tables all look strange. At first they took only about 2cm of width in my document. I then added table.setPreferredWidth(PreferredWidth.fromPoints(pageWidth));
Now they’re looking like you can see in attatchment (Bad.png).
What am I doing wrong. Please help!!
Thanks for your request. Could you please attach your documents and sample code that will allow us to reproduce the problem? We will check the issue and provide you more information.
10.0pt;font-family:“Courier New”;color:#2B91AF;mso-no-proof:yes”>Table<span style=“font-size:10.0pt;font-family:“Courier New”;mso-no-proof:yes”> table =
Ok that looks good so far. Thanks.
But can you tell me what’s the difference between table.setAllowAutoFit(boolean) and table.autoFit(AutoFitBehavior)
What’s the difference between these two?
Thanks for your request. table.setAllowAutoFit(boolean) simply sets or resets “Allow Auto Fit” option of the table. table.autoFit(AutoFitBehavior) adjusts width of columns in the table according to the specified AutoFitBehavior.