Apache Jakarta POI
Hi all,
Any one has code sample for how to integrate Apache Jakarta POI in PLSQL...
Thanks for your help.
Raja
This is the standalone Forms forum, you would increase chances to get an answer by posting in either:
the PL/SQL forum - PL/SQL
the Oracle Applications Server forum - Oracle Application Server - General
Similar Messages
-
Apache Jakarta POI in PL/SQL
Hi all,
Any one has code sample for how to integrate Apache Jakarta POI in PLSQL...
Thanks for your help.
RajaHi,
Thanks for your reply.
Yes I have seen this document. Our requirement is writing data from multiple tables into same worksheet and at the same time XL will have different worksheets.
Regards,
Raja -
How to read .doc files using jakarta POI api......
Hi all,
I've googled a lot on reading the file contents of an MS word file. I couldn't get a solution yet. Can you please give some sample codes for using the POI api for extracting only the text contents from an MS word file.
Thanks and Regards,whenever i click the folders, it's taking
to the internal folders. but there's no
option to download the whole package.Thats because you're looking at a tool which displays the contents of an svn repository through a web site.
What you need is a subversion client (the repository is a subversion repository).
There are several easy to use clients available:
Here's two:
1) subclipse: If you use eclipse. Dammed great tool IMHO. http://subclipse.tigris.org/
2) tortoise svn http://tortoisesvn.tigris.org/
When you've got a client, you'll need to give it a repository URL from which to check out.
For the POI project, that URL is http://svn.apache.org/repos/asf/jakarta/poi/trunk/
~D -
Jakarta-poi-1.5.0-FINAL-20020506.jar
Where do I download jakarta-poi-1.5.0-FINAL-20020506.jar from ???
Can anybody help me ???Hi Friends,
I'm also on the same track. I download the jw-0332-poi from Resources of http://www.javaworld.com/javaworld/jw-03-2004/jw-0322-poi.html
I compile CreateXL.java & ReadXL.java files & got compilation errors like:
"cannot resoleve symbol class HSSFWorkbook
"Cannot reslove symbol class HSSFSheet"
and more error for HSSF package from org.apache.poi
To solve this I download "poi-bin-3.0-Final-20070503.zip" from http://www.apache.org/dist/jakarta/poi/release/bin/
and poi-src-3.0.1-FINAL-20070705.zip files fromApache download mirrors. i put it in classpath & then compile but still I got the same error.
I didn't find jakarta-poi-1.5.0-FINAL-20020506.jar on http://www.apache.org/dist/jakarta/poi/release/bin/
From where should I get the jakarta-poi-1.5.0-FINAL-20020506.jar ?
I would appreciate your help for this topic. -
The problem is that when i open the XLS file that I create using POI the DATE Cells are not formatted as DATE Cells and the code is well.
It's
private void llenarFila(ResultSet rs, HSSFRow row, HSSFWorkbook wb) throws SQLException {
ResultSetMetaData rsmd = rs.getMetaData();
//DateFormat df = DateFormat.getDateInstance();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
HSSFDataFormat format = wb.createDataFormat();
SimpleDateFormat formatter2 = new SimpleDateFormat("dd/MM/yyyy", new Locale("es"));
//DateFormat formatter2 = DateFormat.getInstance();
for(int i = 1 ; i <= rsmd.getColumnCount() ; i++) {
int columnDataType = rsmd.getColumnType(i);
System.out.println(columnDataType);
HSSFCell cell = row.createCell((short) (i-1)); if(columnDataType == 93) { // java.sql.Types.DATE y oracle.jdbc.driver.OracleTypes.DATE son 91 y no funcionan... de la basde devuelve 93 para DATE
try {
Object obj = rs.getObject(i);
if(obj != null) {
String dateString = ((Object)rs.getObject(i)).toString();
java.util.Date date1 = formatter.parse(dateString);
String newDateString = formatter2.format(date1);
System.out.println(date1.toString());
java.util.Date date = formatter2.parse(newDateString);
System.out.println(date.toString());
HSSFCellStyle cellStyle = wb.createCellStyle();
cellStyle.setDataFormat(format.getFormat("dd/mm/yyyy"));
cell.setCellType(HSSFCell.CELL_TYPE_NUMERIC);
cell.setCellStyle(cellStyle);
cell.setCellValue(date);
//.... the rest...
}Any ideas ? Thanks a lot. This is going me crazy since yesterdya.I've not used POI, but this might be helpful for you:
http://jakarta.apache.org/poi/hssf/quick-guide.html#CreateDateCells
http://linux.com.hk/docs/poi/org/apache/poi/hssf/usermodel/HSSFDateUtil.html
Good luck
Lee -
Apache Jakarta JETSPEED and ApEx (Authentication)
Hi everybody!
I would like to integrate ApEx into the Apache Jakarta Java Framework Jetspeed. Therefore I would like to use the usermanagement and and session handling of this framework (authentication in Jespeed is also used for ApEx - no new login necessary).
Does anyone have an idea, how this can be setup in ApEx/Jetspeed? Or does anyone have a ready solution for this question?
Thanks in advance and best regards,
ChristianApEx is not JSR168 compliant - but that doesn't mean to someone couldn't come up with a way to plug some ApEx content into a JSR168 portlet. When you're doing this kind of thing there are lots of considerations.
Like:
what is the content?
who needs to be able to see it?
who needs to update it, if anyone?
what are the security implications?
One very simplistic approach that could be used to get ApEx content into the Jetspeed portal is to use a standard HTML portlet with an iframe embedded in it that points over to the ApEx content. Obviously, this doesn't include any kind of authentication to ApEx.
You'd probably have to look into some of the SSO stuff that's buit into ApEx.
Earl -
Jakarta POI Excel97-2000 (Excel 2003?)
Hi All
I need to read data from Excel 2003 spreadsheet using my java program.
I looked at Jakarta POI, and JDBC-ODBC bridge options.
POI says Excel97-2000
Creating system DSN does not show Excel 2003 options. It shows Excel97-2000, Excel 3.0 etc
My environment is Windows XP 2002.
Can I read Excel 2003 documents using POI?
If I deploy this program on a machine which has earlier versions of excel on it will it be able to read.
I just have plain text in excel spreadsheet.
Please let me know.
Thanks
bibHard to answer this question definitively because it very much depends upon exactly what is in the file. If you have saved a complex, formatted document that makes extensive use of features that were introduced into Excel for version 2003 then you will face problems. If the file contains simply plain text, then you should be fine. Most of the API authors base their product on an earlier version of the BIFF8 format to ensure compatibility with as wide a range of Excel versions as possible. That is why they all mention that the API will handle files that are based upon a specific version of Excel. Hopefully, you will be fine distributing the application onto machines that run earlier versions of Excel.
By the way, have you also considered JExcel? It handles a few things differently to HSSF (POI) and you may prefer the way it approaches parsing an Excel spreadsheet file and exposing it's contents. -
I am trying to create/edit a Word document using a pure Java approach. So far the most succesful approach has been using JIntegra (which claims that can do everything that you can do with VBA). However, JIntegra has a commercial license. So, I am trying to look into Jakarta POI which has been in development for ever. It seems to have some functionality that I can use as far as creating/editing word documents but one big fuctionality that I need is inserting images, which so far I haven't been able to figure out.
Any body out there has been succesful at implementing an application using POI HWPF, if so, I will really appreciate your input.
Regards,
PaulI have the same problem. Right now, we're using libraries from the JACOB project
(http://danadler.com/jacob/), but I haven't been able to find any really helpful documentation. If anybody
has another solution, I'd be thrilled to hear about it also. -
Hello techies,
I want read an Excel sheet using Java. I had gone through net and found two Api's.
One is Jakarta's POI and another one is JExcel.
Iam totally confused, which one i need to implement and is there any performance difference b/w these two api's.
Also can any body tell me from which url i have to download these two s/w and how to install them.
regards,
ramuOne is Jakarta's POI and another one is JExcel.
Iam totally confused, which one i need to
e i need to implement and is there any performance
difference b/w these two api's.Don't know, i'm sure a google would tell you.
e.g 1
2
Also can any body tell me from which url i
which url i have to download these two s/w and how to
install them.I'm suprised you found out about the libs, but not the download URLs Google Jakarta POI and: First Hit!... -
Hi All
I have a requirement to create a web application that interfaces with microsoft com.
I have searched through the forum and the Jakarta poi looks like a good option.
My question is, has anyone integrated jakarta poi with adf and deployed the app to the web application server.
I am using Jdeveloper 10.1.2.
Has anyone done a mail merge ?
Thank youAnother reference:
http://technology.amis.nl/blog/?p=450 -
I am using a servlet to create an xls file using Jakarta-POI.Rt now i am saving the file to the server,then copy to the client s/m which accesses the servlet
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("export");
FileOutputStream fileOut = new FileOutputStream("test.xls");
wb.write(fileOut);
fileOut.close();
This code directly saves the file to the server.
Can i write the workbook directly to client's s/m using any buffering?
bcoz my boss told me this will create sme security issues .....
Anybody plz help me..
Thanks in advanceDon't a different stream, like the servlets output stream?!
-
Problems in Using Jakarta POI in Jserv- NoClassDefFound
Hi,
I'm trying to deploy an application on Jserv which used the Jakarta's POI API. I placed the Jar file in the server folders and specified the same path in the file Jserv.properties.
But then when trying to access that folder it gives the error NoClassDefFound for the poi's packages meaning its not picking up the classes under this jar.
I restarted the Jserv several times after mentioning the path.
Can anybody help me on this in pointing out wat i have missed here.
Thanks in advance,
Vijayhello,
i'm also having problems using poi. I've copied the poi jar to tomcat/lib and also to the lib directory of the systems jdk. I've done the same with the commoms-logging.jar.
Within a jsp is import these things:
<code>
<%@ page
buffer="128"
import="java.util.*,
org.apache.poi.hssf.usermodel.*,
org.apache.poi.hssf.util.*"
%>
</code>
But when calling the url of the page i get:
Package org.apache.poi.hssf.usermodel not found in import.
Why, it is in the import? Whats wrong there?
Thank you,
Hava a nice day,
Nico -
All
I'm from Japan. My English is very poor and sorry.
I want to operate Excel Spread sheet on Java program. I found out an information for excel spread sheet operation on Java program by using API's POI or JEXCEL.
But I have no idea which is better. Please advice me the following topics.
1,What's different POI and JEXCEL?
2,What's merit and demerit POI and JEXCEL?
My environments are
1,Applicatoin Server :Websphere
2,Programing Language: Java
3,Database UDB in Z-os(MainFrame)
My requirements are
1,I want to pick up data from database, and create excel spread sheet on application server, and down load excel spread sheet to client.
2,I want to update data to database created by excel spread sheets on client.
Please advice.
ThanksTechnicalDoubts wrote:
Apache POI vs JExcel
5.POI do not provide password capability for the spreadsheet.
6.POI consumes lot of heap memory when we write data to excel sheet which causes outofmemory error.JExcelAPI also does not offer support for passwording a spreadsheet. Even if it did, breaking the password on a spreadsheet only takes seconds with the right tool.
JExcelAPI, until recent versions, has been known to consume memory as well. Changes have been made to the code which greatly improves it's memory usage.
Having used JExcelAPI for nearly 3 years now I would highly recommend using it. Here are some links to help:
http://jexcelapi.sourceforge.net/resources/faq/
http://tech.groups.yahoo.com/group/JExcelApi/
The forum is active as well, myself and others are always there to help. -
Apache Jakarta Commons Logging
Hi guys,
I found this note in the log4j.properties file. Could you expand this note by just a little to
explain where to put the file so that its settings are found and used? That would be a lot more
user friendly than sending someone off to another site to figure this out.
Thanks,
David Ezzio
# This is a configuration file for using log4j with Kodo logging.
# For details about log4j configuration, see:
# http://jakarta.apache.org/log4j/docs/index.htmlHi Marc,
Well, now I know I'm confused. Which one does Kodo 2.4.0 use, log4j or AJCL or are they the same?
Does the log4j.properties file control Kodo's logging?
David
Marc Prud'hommeaux wrote:
>
David-
If log4j.properties file is located anywhere in the root of one of the
elements in your CLASSPATH, then it will be used. Log4J has a myriad of
different options (as does the Jakarta Commons logging package), so this
can be tuned to your specific needs.
In article <[email protected]>, David Ezzio wrote:
Hi guys,
I found this note in the log4j.properties file. Could you expand this note by just a little to
explain where to put the file so that its settings are found and used? That would be a lot more
user friendly than sending someone off to another site to figure this out.
Thanks,
David Ezzio
# This is a configuration file for using log4j with Kodo logging.
# For details about log4j configuration, see:
# http://jakarta.apache.org/log4j/docs/index.html
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Apache Jakarta Commons FileUpload misleading message
I have a JSP page doing file upload using commons FileUpload package. The code looks like this:
<%
DiskFileUpload upload = new DiskFileUpload();
List items = upload.parseRequest(request);
Iterator itr = items.iterator();
while(itr.hasNext()) {
FileItem item = (FileItem) itr.next();
// check if the current item is a form field or an uploaded file
if(item.isFormField()) {
String fieldName = item.getFieldName();
if(fieldName.equals("name"))
request.setAttribute("msg", "Thank You: " + item.getString());
} else {
File fullFile = new File(item.getName());
File savedFile = new File("c:\\tmp\\", fullFile.getName());
item.write(savedFile);
%>
The JSP successfully uploaded the files but it still show me HTTP Status 404 - c:\tmp (Access is denied).
What's wrong with my code? Thank you.I just found out that the problem that I have mentioned in my previous post has nothing to do with Jakarta Commons Fileupload. It happens whenever I try throwing an exception. And it happens only when I use Internet Explorer
Thanks,
Joe
See the code below...
/**** throw-error.jsp ***/
<%@ page language="java" session="false" isErrorPage="false" errorPage="catch-error.jsp" %>
<%
throw new Exception("Catch this!");
%>
/****** catch-error.jsp ****/
<%@ page language="java" session="false" isErrorPage="true" %>
<html>
<head>
</head>
<body>
<%
out.println(exception.getMessage());
%>
</body>
</html>
Maybe you are looking for
-
IPOD not being recognized by itunes
When I attach my IPOD suddenly I get a page that identifies my IPOD and has a check mark to syncronize it, but I already have all my music from ITUNES on it. when I uncheck it, the IPOD drops off
-
Error M7044 posting goos issue (VL02N) - valuation type
Hello! We have a delivery (for a consignment fill-up) which we want to post goods issue. But when i try to post goods issue i get the error "choose a valuation type" - M0744 But the item line has a valuation type "EIGEN" Checking the material data -
-
Error in opening PDF from web ()
Hi Folks I have 9.3.4 installed in XP Pro. recently (last week), it downloaded an update, and since then, i cannot view PDFs via the web (usually via Firefox 3.6) - whenever i click on a pdf link, i get an empty error dialog box. (see image below) Th
-
Why are images converted into pdfs instead of jpgs?
When saving an image that's been corrected, as a jpg, it is automatically converted to a PDF. Some sites I use will only accept jpg files. Where can I change this feature in acrobat XI?
-
Quick strange beginners design question
I have a non-crystal report whose format I need to duplicate EXACTLY or all heck will break loose. It contains a simple group with some detail records. I need the count of the detail records on the first line of the details as follows: GH1: