This question already has answers here:
Is there a Java API that can create rich Word documents? [closed]
(16 answers)
Closed 8 years ago.
I'm working on a project for work that requires me to ask some informations to the user, then write them down in a Word document. The thing is that I have to write those informations in a document that already exists, containing tables, checkboxes and so on... I tried using Apache POI, which is useful when it comes to creating a Word document, but does not seem to help me filling an existing one. How should I proceed ? What API should I use ?
Thanks in advance for any help.
What you could do as well in such a case is renaming the .docx file to .zip. Unzipping it, update the content xml (so filling it up with your values) and zip and rename it again.
Related
This question already has answers here:
How to create a multi language report?
(2 answers)
Closed 5 years ago.
I am newbie to JasperReports and I have this problem creating a single report with multiLingual support. It works when I create separate reports for each language. But I need it to be done with a single report. I found in some article, it was mentioned that we should import a Unicode font as .jar file and that would make the report support multiple languages. But that did not work.
I went through several articles and nothing helped.
Is it necessary to use Jasper Reports? If it is not, I was using a couple of years ago Dynamic Reports
It give you opportunity to programmatically creates your reports. That way you can internationalize your labels, messages etc and in your code load appropriate resource file and use it with your code for generating reports. You do not have to use jrxml files.
Hope this help.
This question already has answers here:
Using Java to pull data from a webpage?
(5 answers)
Closed 5 years ago.
Can anyone suggest me a way to retrieve contents on a web page page using java?
I need to redirect to a web page, expand a block, and copy certain strings under it. Now I need to feed part of that string into another text box on a different page. How can this be done using java?
You should use Selenium (http://www.seleniumhq.org/). You can look up a tutorial on how to properly implement it for pulling data from websites. Assuming this is your own website, however, you can use a Socket.IO connection to communicate data.
Have you looked at Jsoup? https://jsoup.org/ it is a nice library for getting documents, parsing, etc.
This question already has an answer here:
How read Doc or Docx file in java? [closed]
(1 answer)
Closed 8 years ago.
I want to read text from doc file and write it into text file. How can I do it? Any suggestion will be highly appreciated.
Thanks
Mohit Singhal
Use Apache POI to handle Microsoft Office Documents. Apache POI will give you access to the text which you can then write to a simple text file using a FileOutputStream (tutorial here).
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Generating excel documents programmatically
I want to generate excel reports using Java/J2EE. Can anyone let mw know which is the best open source API to do this, which is simple & easy to use.
If anyone can provide me the link to sample programs will be great.
Thanks in Advance
You can try to use the Apache POI. They have examples on their web page. See their website here.
This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
How to create pdf files on android
I need to create app for exporting text into pdf file. But I don't know how to do it, because I never used it ever. Help me please, give me an example for this task or link for tutorial.
Some libraries in java to acheive this
http://pdfbox.apache.org/
http://itextpdf.com/