In my B4J appli, I am using WritableWorkbook to write an Excel file.
When the file is done I would that the appli open FileChooser to save the excel file where the user want it.
I don't know how this filechooser showsave works did not find example.
When the file is done I would that the appli open FileChooser to save the excel file where the user want it.
B4X:
newWorkbook.Write
newWorkbook.Close
Dim fc As FileChooser
fc.Initialize
fc.InitialFileName = "excelfile.xls"
fc.SetExtensionFilter("Excel Files",Array As String("*.xls"))
Dim fileName As String = fc.ShowSave(MainForm)
If fileName <> "" Then
If fileName.ToLowerCase.EndsWith(".xls") = False Then fileName = fileName & ".xls"
Dim out As OutputStream = File.OpenOutput("", fileName, False)
out.Close
Log("File saved: " & fileName)
End If
I don't know how this filechooser showsave works did not find example.