Hello guys,
I have a problem with jPOI, here are my codes :
It raised an error :
Error occurred on line: 38 (Main)
java.lang.RuntimeException: Object should first be initialized (PoiRow).
Line 38 point to Cell = row.GetCell(1).
Where am I missing here?
Thanks in advance.
I have a problem with jPOI, here are my codes :
B4X:
Sub btnStart_Action
wb.InitializeExisting(File.DirApp,"RcpMonthly.xlsx","")
ws = wb.GetSheet(0)
Private row As PoiRow
Private Cell As PoiCell
row = ws.GetRow(7)
row.IsInitialized
Cell = row.GetCell(1)
Cell.IsInitialized
Cell.ValueString = "Java"
wb.Save(File.DirApp,"test.xlsx")
fx.Msgbox(MainForm,"OK","Info")
End Sub
It raised an error :
Error occurred on line: 38 (Main)
java.lang.RuntimeException: Object should first be initialized (PoiRow).
Line 38 point to Cell = row.GetCell(1).
Where am I missing here?
Thanks in advance.