Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
In excel you can copy a cell and paste it in another using the excel paste special from the right click menu.
How can I write such a link in java to paste in excel?
Its too broad a question. What lib do you use to working with Excel? For example, using Apache POI you can just read cell to java object and save to new place (all values, or just, for instance, formulas or text only). A lot of example, to working with Excel you can found this
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
My question is simple:
Is it possible to use a program via Java? Meaning, can I for example code in java exactly what I want my Microsoft Word file do? Add paragraphs, lists,import a picture, etc?
Short answer: Yes. Some programs allow you to use scripts and such, that is the beauty of open source software.
To actually edit the document you can use Apache POI which is an API for Microsoft Documents. Granted it cannot handle .docx but simple text documents. You may also want to take a look at docx4java which supports .docx, .pptx and .xlsx files.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am novice in JAVA and using Oracle SQL 11g, I have a requirement on my JAVA program to export data from Oracle Database in excel format.
I've searching in youtube but i can't find a way.
You can use Apache POI to export data to excel format.
You can use CVS format, witch can be imported in Excel.
1. Select data from DB.
2. Convert DTOs to CVS string.
3. Save them in file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am going to develop RCP Desktop Software in which I have mechanism like Import/Export data for that if I export my data then one secured extension file should be created which I will be able to import in this tool only. Same like .java .sql .db ect. Steps or Code would be appreciated.
You can do this
File myFile = new File("myfile.rmpdb");
You can then pass this file object to a Writer. Nothing actually stops you from having custom extensions. You can even have files which have no extensions.
However, as Pherion mentioned in the comment, the OS will not know how to handle this. Your program/tool will have full responsibility to know how to read/create this type of file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want my program to support all the formulas that one can use in Excel file into java code.
The requirement was that all the functions that are supported by excel both mathematical and logical like (add, multiply, substract or 'OR', 'IF') and others like Vlookup etc into java with the same format?
Is there any way to achieve that?
The Apache NPOI Project seems to support Excel formulas. Some examples are available here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am working on a dashboard project with the use of excel and java GUI. I would like to find out from the community if there is anyway I can collect data from various columns and worksheet in the excel and transfer it to another excel which would then generate the dashboard and open it with a click of the open button. Can I ask for sample codes because I am still quite a newbie when it comes to solo IT project. Thanks.
Okay. I need code example as guide on how to read data from multiple selected excel sheet that is chosen by a user from a JList and then when i click okay, it will put all the datas into a single excel dashboard template that I have created.
Have a look at http://poi.apache.org. This is a library that allows you to read and write Excel files. They have a lot of examples on their website on how to work with Excel files: http://poi.apache.org/spreadsheet/examples.html. This should get you started to read from one file, and write to another file.