I am trying to add custom file system metadata on rtf file using Apache POI API.
But later I found that POI is not supporting rtf file.
Can anybody help me which API should I use ?
Related
Good morning
I need to add HTML text to my DOCX file using Apache POI.
This HTML has a photo. The link to the photo points to a resource that is visible only in the internal lan. So when the .docx is generatated when I open the document outside the lan I can't see the image.
Is it possible to save the imagine in the "media" folder of .docx and create a reference to it in the "_rels" folder?
If yes, where I can find the documentation that describe how to do it with Apache Poi?
Thanks
Regards
I am developing a web application with spring-mvc, hibernate and MySQL.
I need to :
export data from Database table to an EXCEL document.
import an excel file , read data, and insert this data in my Database (MySQL).
In the two case, I am using a large sized excel files with .xls or .xlsx format.
Can you help me to find the best API TO READ/WRITE EXCEL files (Apache poi ,JExcel ,....).
And if there are some tutorial dedicated to this need.
I just want to know witch API should i use Apache poi or JExcel and if there is other API and why?.
If you want to process both .xlsx and .xls files than Apache poi is better because Jexcel supports only .xls files. There are other libraries like xlsx4j which supports only .xlsx files. Based on my experience (not opinion, I have worked with all of them) Apache poi has pretty good documentation and a lot of examples/tutorials so it's easier to use. Also support of the both types (.xlsx and .xls) is a huge advantage.
I am quite new for the Talend tool.
I have the requirement to place the xls/.csv file in sharepoint application using Talend.
How can I achieve this and which components we need to use to achieve the result.
You can try using tFileFetch component.
In the advanced settings enable Upload File option.
You can refer this link
Is there any way to replace a file in the media library in orchard 1.9.x through the administrative UI? I can go into the file base and replace the files, but I am hoping to find a way that content editors can go in and replace a file using the same URL without having to delete the current file first.
There is a recent pull request adressing the replace issue. You could download the changes recompile Orchard to get the replace functionality.
https://github.com/OrchardCMS/Orchard/pull/7160
I have created an agent that generates an Excel document and sends it to specific users through mail. The Excel file generation is done at run time and as such I am not storing the file anywhere. However, the issue is that the agent is supposed to be run on server. The server does not have MS Office installed it. How can this can be done through HTML.
Have a look at POI 4 XPages on OpenNTF that uses the Apache POI project to generate Word and Excel files.
You create a normal HTML page with a <TABLE> containing your record data. Then you need to set the Response contentType to "application/vnd.ms-excel".
The following MS tech note will detail how to write out the HTML.
http://support.microsoft.com/kb/260239
There is also sample XPage code in the XPages Cheatsheet. See the following link.
http://xpagescheatsheet.com
And Lekkim has sample code of setting the contentType in an agent (Java).
http://lekkimworld.com/2006/03/30/show_n_tell_thursday_setting_the_content_type_from_a_java_agent_30_mar_2006.html
If you need to send the Excel file by email then it's best to create a real Excel file with Apache POI.