Greetings!!!
i downloaded the Excel library, from this post: Excel Library
I have a template file ... when i try to copy it into a new one, the new file does not contain the contents of the original.
This is the piece of code i am using, so far:
B4X:
Dim xlsEntrada As ReadableWorkbook
xlsEntrada.Initialize(File.DirAssets,"PURCHASE_TEMPLATE.xls")
Dim xlsSalida As WritableWorkbook
Dim hojaArticulos As WritableSheet
xlsSalida.Initialize2(File.DirRootExternal, "PURCHASEFILE.xls",xlsEntrada)
hojaArticulos = xlsSalida.GetSheet(0)
xlsSalida.Write
ToastMessageShow("File generated.",True)
I attach a screenshot, both template and copied file.
Thanx in advance, any ideas will be appreciated !!!!
Greetings !!!
I noticed the file is zero bytes size. I transferred it to my PC, I opened it with MS EXCEL, and it's empty. The name of the copied file is PURCHASE.xls, not PURCHASEFILE.xls (sorry for the typo error)
The EXCEL file has just one sheet, and no contents.