Which is a better option to write to an Excel file?

Back from the crypt...
I googled for APIs to write to an Excel file and I stumbled upon JExcelAPI and Jakarta POI. I am not sure which one to use; both are equally confusing.
Could anyone tell me which I should opt for? I just want your opinion so that I can start reading the documentation straightaway. Reading docs for both would be rather a waste of time IMO.
I am open to more suggestions.
Thanks
UW

Great to find that someone makes use of Google!
Personally, I find Jakarta POI better. It has a really HorribleSpreadSheetFormat called HSSF, which I find pretty good. And there's a quick guide to write simple code for starting off.
BTW, I never tried JExcelAPI.
x

Similar Messages

  • CSM Redundancy : FT or HSRP +FT .. Which is the better option?

    Hi,
    I would like to know for redundancy between CSMs which is the better option FT or HSRP with FT.. and why ?
    Regards
    Kas

    The CSM does not run HSRP.
    So your only option is FT failover.
    Gilles.

  • How to Write data in Excel File using java

    Hi
    can anybody help me to write data in excel file
    using java code
    Thankx In Advance

    How much are you willing to pay for that?
    If you want it for free, http://jexcelapi.sourceforge.net/

  • I can read but not write to an Excel file!

    Hello,
    I hope someone can help me witht this. I am writing a program that reads and writes to an Excel file with the use of Jakarta's HSSF.
    I can read the excel file with no problems, but when it comes to writing on it it only works the first time! Then when i try again, I get this:
    java.io.FileNotFoundException: N:\Servers.xls (Access is denied)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(Unknown Source)
         at java.io.FileOutputStream.<init>(Unknown Source)
    On some PCs i have no problems, but on others it works only once and then I get the above error. I am using Java 1.5.0. Thanks.
    Message was edited by:
    nnt01

    ya..evrything is fine..my program even creates that file
    I was doing some searching, is it true that this is a bug in Java..because I can't understand how sometimes it works and sometimes it doesn't

  • Which is the better option?

    Hey, I'm looking at getting a new mac but I'm not sure what's the better option. My choice right now is between the base 21.5 inch iMac or the Mac mini ( $799 model), and my main use for it would be recording instruments, music production, and movies / netflix. The 21.5 inch Mac would only give me 8gb of ram, whereas the Mac mini I'd instantly be able to upgrade to 16gb. Another bonus to the mac mini is that I can hook it up to whatever screen I want including my TV for movies.Also, the firewire on the mac mini would be extremely useful as some of the higher quality recording interfaces use firewire. And from what I understand I can also add a SSD to the mac mini? For these reasons I'm leaning towards the Mac mini but I've been recommended by representatives at apple to get the iMac as it's more powerful supposedly, so I'm not sure which one would be better. I know the iMac has a dedicated graphics card vs the integrated hd 4000 on the Mac mini, but I'm not exactly sure how that affects me for what I plan on using the computer for. I'd have to buy a monitor and mouse + keyboard for the mac mini, so it ends up costing me the same as the base model iMac. Any suggestions/ opinions would be appreciated, thanks.

    I would recommend getting the 16GB iMac. If money is an issue then consider using Apples refurbished store, there is no downside to buying from it as they sell current machine, the products have the same warranty as a new machine, and are eligible for AppleCare.
    Because you did not compelete a profile we have no idea where on the planet you are located. To find the US refurb store click:
    http://store.apple.com/us/browse/home/specialdeals

  • Creating default Row which one is better option

    hi,
    for creating dummy row in ViewObject which one is better and appropriate option..
    1) CreateInsert as default activity
    2) Creating row in Create method of ViewObjectImpl
    Regards
    Kiran
    Edited by: Kiran S on Aug 26, 2010 4:38 AM

    Kiran,
    CreateInsert is an action that is exposed via a data control. If you invoke this action, it will call the Create method of your View Object, so your question really doesn't make sense. If you need to have a row created and inserted into the row set of a VO, then using the CreateInsert action in a task flow will work just fine.
    John

  • Which is a better option : VO on DB View or a VO with two EOs

    I have 2 tables:
    ITEMS_BASE and ITEMS_TL ( contains all translatable column of base table: ITEM_BASE).
    What is better option for me:
    1. TO create a DB View on top of ITEMS_BASE & ITEMS_TL and then create my VO on the DB View OR
    2. Create 2 EOs on ITEMS_BASE and ITEMS_TL and create my VO on these 2 EOs.
    Please also explain reason behind selection of your choice.
    regards -Anuj

    Jdev ver : 11.1.1.4
    Use Case:
    I want to display a rule message in the language as per users local. Only rule name & rule description is a translatable column so i have kept it into separate table.
    Table design:
    Table name : RULE_B
    Columns : PlantCd, ModuleCd, IsRuleApplicable, Value
    Example data : 101, safety, Y, 5
    Table name : RULE_T
    Columns : PlantCd, ModuleCd, RuleName, RuleDesc, Lang
    Example data : 101, safety, 'Minimum Observation required', 'Total number of observation required per site', 'EN'
    101, safety, 'garbage input', 'garbage input', 'gr'
    So i have 2 choices here. either I should create 2 EOs on RULE_B and RULE_T and make my VO on these 2 EOs Or
    create an updatable DB View comprising RULE_B and RULE_T and create my VO on the DB View.

  • Unable to write data into excel file when it's close

    Hi,
    I'm facing this problem and it's a bit weird. I'm using the following method to insert data into excel file. But when excel file is close, it unable to write data into the excel sheet. But it was able to write the data into the excel sheet if i open the excel file when running the program.
    Can anyone please tell me what's wrong to the code?
    public int updateLog(String sheet, String no, String cpId, String CatId, String rbtCode, String rbt, String rbtName, String artistName, String price, String rbtFileName, String songId, String msg){
            int result = -1;
            try{
                SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss",Locale.ENGLISH);
                String actionDate = formatter.format(new Date());
                rbtName = rbtName.replaceAll("'", "''");
                artistName = artistName.replaceAll("'", "");
                String sql = "insert into [Sheet3$] (Code, CpID, CategoryID, RBTCode, RBT, RBTName, ArtistName, Price, RBTFileName, SongID, UploadStatus, FileUploadedDateTime) ";
                sql = sql + " values ('" + no + "', '" + cpId + "', '" + CatId + "', '" + rbtCode + "', '" + rbt + "', '" + rbtName + "', '" + artistName + "', '" + price + "', '" + rbtFileName + "', '" + songId + "', '" + msg + "', '" + actionDate + "')";
                System.out.println(sql);
                log.writeLog(sql);
                result = stmnt.executeUpdate(sql);
            } catch(Exception e){
                e.printStackTrace();
                log.printStackTrace(e);
            return result;
        public int openConnection(){
            int result = -1;
            try{
                Class.forName(dbDriver);
                c = DriverManager.getConnection(conStr + excelFilePath+";ReadOnly=0;");
                stmnt = c.createStatement();
            } catch(Exception e){
                e.printStackTrace();
                log.printStackTrace(e);
                return -1;
            return 1;
        }Thanks

    HI,
    i hv a doubt regarding reading / opening of a
    password protected Excel file using jxl( java ) .
    How to read / open a password protected Excel file
    thro Java (jxl ) program .plz let me know some
    example also .
    Regards,
    Ramesh P
    845935822cross posting !! answered here
    http://forum.java.sun.com/thread.jspa?threadID=710466&messageID=9507085#9507085

  • Which is a better option url iview or bsp iview?

    Hi all,
    We have so set of BSP applications to be integrated in the portal. Our requirement is that the BSP application has to be stateless. Could any one suggest us which one would be the best option (BSP iview or URL iview) along with the pros and cons.
    Thanks and Regards,
    Gauri Gosavi.

    Hi!
    BSPs should always be integrated into the portal as BSP iViews. Whether a BSP application is stateful or stateless is never decided by the portal but by the BSP application. If you want to avoid that the portal takes over the session management then do not use the parameter sap-syscmd=nocookie whithin the definition of the BSP iView.
    Hope this helps.
    Regards,
    Volker

  • Which is the better option for using windows on mac ...parallel or vm ware fusion

    i want to use c# ,.net, c++ , on my macbook pro ....which software i should purchase parallel or vmware fusion

    They both work well. I like Fusion. Others like Parallels. Still others like VirtualBox.
    They all have free trials, VirtualBox is a free product, so try them for yourself and stick with the one that works best for you.
    I opted to install Windows using Boot Camp Assistant.

  • Which API can be used to write to an XML file(web.xml) programmatically

    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    It is important and am looking forward to pointers.
    Thanks in advance!
    Regards,
    Shikha

    S. Bajaj
    org.w3c.dom Api
    Deepak
    shikha wrote:
    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    I am unable to find answer to this.
    Looking forward to pointers and help.
    Thanks in advance!
    Regards,
    Shikha

  • Which one is better if I want to convert AW5 files? iWork06 or AW6?

    Hello,
    Since last month, I've been using an imac w/ AW 5.0.3 . Lastly, I've bought a brand new MacBook Pro, and I'd like to keep my old files created on AW5.
    I haven't found any clear answer about the AW5 to AW6 converting process. So, is iWork06 working w/ old AW5 files? (Sorry, I know this is not the iWork forum, but I think it's better to to ask on a global topic). I'm asking this because in the iWork helping guide, it is said that you can load your old AW or Word files, in order to convert them; but it's not working when I try to do so.
    If iWork06 is not compatible w/ AW5 files, is there any problem about old AW5 files being not converted w/ AW6?
    Thanks in advance for yours answers, it 'll be really helpful...
    MacBook Pro   Mac OS X (10.4.9)  
    MacBook Pro   Mac OS X (10.4.9)  

    Welcome to Apple Discussions
    If any of your AppleWorks 5 documents are database, draw or paint, AppleWorks 6 is really your only option. Pages, the word processing/page layout application in iWork can only open AppleWorks 6 word processing documents. It cannot open AppleWorks 5 documents. Neither Pages or Keynote can open spreadsheets, but spreadsheet data can be pasted into tables in either.
    icWord & icExcel from Panergy Software can open AppleWorks 5 word processing & spreadsheet documents & save them as AppleWorks 6. You can't work on the documents in these programs, they are for viewing & converting. They are shareware & cost approx $20 US each or $39 US for both.
    Considering that AppleWorks 6 can often be found at bargain prices, I think it's the best option. AppleWorks 6.2.4 or 6.2.9 run very well on an Intel Mac.
    You could try <a href=http://listings.ebay.com/aw/listings/list/all/cat egory3792/index.html>eBay and do a search for "AppleWorks" or "Apple Works" (some people put a "space" in the name). Hardcore Mac sells AppleWorks 6.2.4. And, last but not least, you could buy a new retail box of AppleWorks from the Apple Store (in person or online) or any reseller who sells Apple software.

  • How to write a data type into an excel file?

    Hi everyone,
    What I am trying to do is to get some data from MS SQL then write into an excel file.
    stmtExcel.executeUpdate("Insert into [Output$] (CustomerID, ProductID, [Date], OrderQty) Values(" + rsSQL.getInt("CustomerID") + ", " + rsSQL.getInt("ProductID") + ", '" + (rsSQL.getString("Date")).substring(0,10) + "', " + rsSQL.getInt("OrderQty") + ")");
    There is no problem to write into an excel file, however, after all data is imported, excel sheet treats the the integers or dates as Text format. The funny part is, after I double click one of the cells with an integer value, that cell's format will be changed to integer, same thing happens with the date type.
    I am wondering if there is any way I can write an integer or whatever type into an excel file, which excel can recognize their own types instead of Text format. Thank you so much in advance.
    Sincerely,

    Yes, use an API that supports such things, like Andy
    Khan's JExcel:
    http://www.andykhan.com/
    %Thanks, duffymo. I haven't tried it yet, but according to the website, it seems that is possible! thanks again!

  • Need SQL Query which saves query results to an excel file

    Hi,
    I am looking for a sql query which saves/ export results of an query to a excel file
    Thanks,
    Chetan

    I am looking for a sql query which saves/ export results of an query to a excel file
    Thanks,
    Chetan
    Options:
    1) You can use
    BCP command to export result to excel
    2) Insert into excel by using OPENROWSET
    3) Use Import and Export Wizard and provide SQL query as source and Excel as destination
    Please refer:
    http://stackoverflow.com/questions/87735/how-do-you-transfer-or-export-sql-server-2005-data-to-excel
    http://www.codeproject.com/Questions/617527/Export-sql-query-result-in-excel-file
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Write to Excel file in KM Folder with DynPage

    Hi,
    I want to create and read/write to a Excel file in KM Folder using DynPage.
    Searched the SDN but could not get any links which will demo on using excel with Dynpage. Lot of links to use excel with WebDynpro are available.
    Can anyone give the code or links for this purpose.
    Regards
    Sumant

    Hi,
       May be we can expect a blog for this too.. Actually, it is not very different. You can use the same blog for your purpose.
    Uploading files to KM repository using Webdynpro APIs
    Creating folders in KM dynamically
    Here the code can be written in doContent or doProcessBeforeOutput method. Import the required jars. References can be written in SharingReferences in application-config of portalapp.xml. Otherwise, the same code should work in portal application too.
    Regards,
    Harini S

Maybe you are looking for