Recently i am working with reading excel file and need to show it on android view.
I have even tried with both the java libraries say apache poi and jexcel api which helps
in parsing excel sheet in java but failed to parse in android when i tried.
I am even tried with converting excel to xml,than parse the xml and show the contents
on android view but for this i have needed convertor which converts .xls to .xml.
Can anybody help me in parsing excel file in android.
Thanks And Regards
Pinkesh Gupta
jxl can be used in Android but it only supports xls format not xlsx.
While poi supports both. But when used in Android, you can only read xls file using HSSFWorkbook. For reading xlsx file you need XSSFWorkbook, but there is a issue when using XSSFWorkbook in Android (see this).
Related
I want to convert a html file to PDF
https://github.com/bullda/DroidText
I used this tutorial
http://karanbalkar.com/2013/05/tutorial-22-generate-pdf-using-droidtext-in-android/
And I can generate simple paragraphs.
I've looked over this library and found that there are some tools for HTML parsing
But I can't figure out how to do this.
I have one doubt regarding reading an Excel file in Android.
I have a button in XML file. When that button is clicked, it has to open the Excel file, which was there in my downloads, only for viewing purposes. Is it possible without using parsing techniques, converting Excel to sqlite?
I don't think that there is any way to directly convert excel to sqlite as there isn't any direct relationship between them but to read any excel file in android you can use this.
There is no inbuilt implementation from android.
Check this Blog post export-and-import-data-db-table-to-csv.
I have a spreadsheet in excel from which I would like to create a small android app for personal use,
Is there a way to convert an excel file in android xml format?
Thanks
I want to open an Excel file from an SDCARD on an Android phone. Which API should I use?
I think you have to use an API such as JExcelApi
I have no experience with this API but apparently you can use it with Android.
I think you'll still want to use the JExcelApi to read the contents of the file. As far as displaying the data on an Android device you'll probably want to look at TableLayout. Here is an answer outlining TableLayout to create a spreadsheet type display. This could also be done by reading the Excel file contents into HTML and displaying the HTML in a WebView
I read in some blog post that OpenXML4J have a Android Library for reading .DOCX file in Android and with help of that we can easily edit, read and create DOCX format.
My questions are:
Is it possible?
Using same code as I use in OpenXML4J will create DOCX? Is there a library in DocX4j for android?
From my experience I am pretty sure this should be all possible. And you do not need an android specific jar a regular one works fine since its the same java working on it