galurgi Posted March 23, 2023 Share Posted March 23, 2023 Hello,How can we change text field width according to the data size, we want every row's width according to the data without whitespace.For eg we want output in below format, there is a text field between every two delimiters and blank when null is enabled.D4889110531221MOF ABC19.09.2017545 0000000.00\But getting output in below format because of fixed width of text fieldD2904889 110531221MOF ABC 19.09.2017922 00000000000000.00 Note: Report output should be in .txt formatPlease provide suggestionsThanks in advance! Link to comment Share on other sites More sharing options...
eduardo_rhamos Posted March 24, 2023 Share Posted March 24, 2023 Define your columns headers and fieldsthen define in report the property<property name="net.sf.jasperreports.export.csv.field.delimiter" value=""/> Link to comment Share on other sites More sharing options...
galurgi Posted March 26, 2023 Author Share Posted March 26, 2023 thank you for your response!I tried this solution, but the report needs to be in text format and this solution doesn't work for text files. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now