Hi Aspose Team,
Below are library detail which are we are using in our project
Java Version : 17
Aspose : 22.11
Template Used: Word to PDF, Word to Word.
Formatting Problem encounter during Export:
- We are using table to display data with 3 column, N Rows.
- If one of my row data has long text it’s not wrap properly.
- We have used Auto fit option of word table which is not worked properly in portrait and Landscape option. kindly refer attach screenshot.
kindly help us to choose correct option for best fit data in table for landscape and portrait mode. Any help would be highly appreciated.
MicrosoftTeams-image (3).png (118.6 KB)
MicrosoftTeams-image (2).png (90.8 KB)
Regards,
Kalpesh
@kalpeshAspose1997 Could you please attach your input and output documents here or testing? We will check the issue and provide you more information.
Unfortunately it is not possible to analyze the issue using screenshots.
Hello @alexey.noskov
How to set minimum width and maximum width of table for long data. I have attached below attachments, pls refer
you can see second column shrink in long data for bot portrait and landscape, but the in original template that column looking good so can you suggest any solution for that.
output_result_potrait.docx (22.0 KB)
test_template.docx (22.7 KB)
output_result_ladscape.docx (22.2 KB)
Regard,
Kalpesh
@kalpeshAspose1997 I think, in your case, you should use fixed column widths of cells to get the desired output:
Also it looks like the table was postprocessed after filling it with data. Could you please provide code used to produce the problematic output documents?
@alexey.noskov we can’t give you code. we have set table as ‘AutoFit to Window’ in this case facing this issue if we choose ‘Fixed Column Width’ then it will not dynamically change base on orientation like landscape and portrait. so any other solution please provide me.
@kalpeshAspose1997 The simples solution, I see, is to setup two templates - one with landscape another with portrait page orientation. Then use the appropriate template depending on what page orientation is required. In this case you will be able to use Fixed Column Width
.