Android Question Excel library - Auto column size.

Erel

B4X founder
Staff member
Licensed User
Longtime User
Based on this answer: https://stackoverflow.com/a/2128445/971547
B4X:
Sub SetAutoSize(ColumnIndex As Int)
Dim jsheet as JavaObject = sheet1
Dim jcell As JavaObject = jsheet1.RunMethod("getColumnView", Array(ColumnIndex))
jcell.RunMethod("setAutosize", Array(True))
jsheet.RunMethod("setColumnView", Array(ColumnIndex, jcell))
End Sub
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…