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.
Raja

Hi,
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

Similar Messages

  • 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

  • Jakarta POI

    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

  • 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.

  • 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,
    Christian

    ApEx 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
    bib

    Hard 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.

  • Jakart POI HWPF

    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,
    Paul

    I 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.

  • Jakarta poi and Jexcel

    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,
    ramu

    One 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!...

  • Jakarta Poi and Adf

    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 you

    Another reference:
    http://technology.amis.nl/blog/?p=450

  • Jakarta --POI doubt

    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 advance

    Don'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,
    Vijay

    hello,
    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

  • Jakarta POI VS JEXCEL

    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.
    Thanks

    TechnicalDoubts 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.

  • JavaDB / Apache Derby equivalent to the SQL Server IsNull and Oracle nvl

    Firstly, if questions for JavaDB are supposted to go somewhere else, sorry for posting in the JDBC section, but I couldn't find a specific section for it.
    I'm trying to add support for Apache Derby to a piece of software that already has support for Oracle, SQL Server and MySQL. There is a lot of DB specific coding involved to get the best performance possible. Several of these queries involve checking to see if a nested query returns a value and substituting 0 if no rows are returned.
    In Oracle the function is called: nvl
    In SQL Server the function is called: IsNull
    In MySQL the function is called: IfNull
    I can't find an equivalent for Derby. Does one exist?

    NULLIF
    http://db.apache.org/derby/docs/10.2/ref/rrefcasenullif.html

  • Apache Environment Variables inside PL/SQL

    How to access Apache Environment Variables inside HTMLDB (PL/SQL block)?

    Hi,
    You can use the owa_util.get_cgi_env packaged function -
    FUNCTION GET_CGI_ENV RETURNS VARCHAR2
    Argument Name                  Type                    In/Out Default?
    PARAM_NAME                     VARCHAR2                INSo, pass in the name of the Env var you want and it will give you back the value.

Maybe you are looking for

  • Saved IRs lost when installing a new version of an application

    Hello, is there any documented solution for the following problem: The client has saved some IR. Now a new application version is installed via script using the apex_application_install api. The application_id of the exported version and the imported

  • .mac trash in mail

    When I trash an email in goes into my .mac trash box, in the Mail program. Now I also show a trash bin called "on my mac" but trashed email never goes into it. I want to be able to keep deleted emails on my .mac account but erased from my Mail progra

  • JTable SLOW to fill

    I am trying to populate a JTable from a ResultSet. The ResultSet is about 30 x 30 and takes almost 30 seconds to populate the table and display ANY HELP would be GREATLY apprieciatted. Here is my code: public void RetrieveCompanyData(boolean all)    

  • Search via classification in CV04N returns incorrect documents

    When doing a search in SAP DMS CV04N using classification, and incorrect list of DIRs return. The search criteria is for one signle value, but it returns documents that does not form part of the search criteria. Any suggestion as to what the problem

  • SNMPv2-SMI::mib-2 = No more variables left in this MIB View (It is past the end of the MIB tree)

    Hi, Would like some help with the following error message: SNMP: bash-3.00$ /usr/sfw/bin/snmpwalk -v2c -c <community-string> 172.17.6.224 SNMPv2-SMI::mib-2 = No more variables left in this MIB View (It is past the end of the MIB tree) bash-3.00$ /usr