Dynamic column cell width

后端 未结 3 1580
走了就别回头了
走了就别回头了 2020-12-04 02:21

I have some Jasper reports which are displayed in HTML format. I would like the width of the columns in the HTML tables to automatically resize to fit the content of the wid

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 02:58

    While not perfect, you could flag the field to stretch with overflow. This would at least give you all the data. In your jrxml file it would be similar to:

    
        
        
        
            
        
    
    

    I'm afraid I don't know of any feature of Jasper reports that would allow the dynamic resizing of column widths - It is probably one of those things that makes sense for HTML but little sense for other output formats such as PDF.

提交回复
热议问题