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.
Related
I have an PDF file and there are certain inputs that ought to be filled in the same. There are two approaches to this. Either, I create an entirely new screen that looks like the PDF file and get the user inputs and parse it to the iText library to create a PDF file or open the template PDF and fill in the contents through the android screen and save it in different file.
I am trying to concentrate on the second option. Here, I will have to open the existing template PDF and enable the user to enter the input items. I will also have to allow the users to scribble in certain areas. Is this feasible? I have done some research and am not sure, if all these are possible using iText.
Please can someone help me?
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
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).
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