Excel libraries Java 6

Hi,
1) Can someone please let me know "whether there are excel libraries available in Java 6".
I have checked under javax but didn't find any.
2) I have to read the excel file and insert data into the database.
I don't want to use POI, JExcel / any other 3rd party libraries.
Could you please point me to some sample programs on the same.
Thanks in advnace.
Regards,
- Bharath.

865966 wrote:
1) Can someone please let me know "whether there are excel libraries available in Java 6".
I have checked under javax but didn't find any.Of course not. In your opinion the JDK should have support for loading and manipulating proprietary file formats? Because there are hundreds and it can be quite a legal mess.
2) I have to read the excel file and insert data into the database.
I don't want to use POI, JExcel / any other 3rd party libraries. Well then you're stuck.

Similar Messages

  • Report in excel from java

    I'm generating report in Excel from Java.In this is it posssible to place background color upto the text in the single cell

    If you are using POI, you can set the background colour for a single cell.

  • Aspose.Excel for Java Plan before End of June, 2005

    Now we are working on Aspose.Excel for Java. It�s a Java equivalent of Aspose.Excel. The first version will be released at the end of June which will include the following feature list:
    1. Edit cells� data
    2. Style settings
    3. Manipulate worksheets
    4. Protect/Unprotect a worksheet
    5. Access rows and columns
    6. Excel file options settings
    7. Hyperlinks
    8. Freeze panes
    9. Page Setup
    10. Pagebreaks
    11. Data formats
    12. Formula
    13. Import/Export JDBC data abstractions
    14. Keep pictures, charts,drawing objects in template file
    15. Keep VBA/Macro in template file
    16. Keep Pivot Table/Chart in template file

    Sorry but you have the wrong forum.
    ka

  • Integrating Excel with Java

    Hi,
    How can Excel be integrated with Java such that if a user is working on an Excel , my Java application should be able to capture all the events from Excel Sheet.
    I have looked into POI, but it seems to me , it can read and wriite to Excel from Java, but i would like that if a user is making changes to a spredsheet then my Java Application should be notified about those changes
    In short, i would like to expose front end of a web application in Execl!
    Is there any open source package that can help in doing the integration
    Kindly share your views/ suggestions

    jschell wrote:
    If you just want most of what is occuring in Excel only then there are probably events in the Excel API (OLE >probably) that allow you to modify and react to changes. In my experience figuring out how to do that is very >difficult even for small bits of functionality.Can u please explain a little more on this.
    Can i use JNI to listen to COM server, probaly if i create some proxies for Excel that use JNI to listen to COM Server.
    I found a link on the internet http://www.ibm.com/developerworks/java/library/j-bridge/
    This Java bridge can integrate COM objects into their applications. But i am not sure if i can capture the live stuff from an Excel file when somebody is editing it.
    Also i would like to know, what should be the best stratergy when i would like to expose the Front end of an application in Excel , since the application involves a lot of numbers and users are more comfortable with Excel interface, and the rest of the application you want in Java.
    Kindly share your views on this!

  • External Libraries DC load Excel Webdynpro java

    Hello my dear Experts.
    I have a DC that contain WD proyecto in wich i want to load excel into table wed dynpro.
    I have followowed the next links.
    http://forums.sdn.sap.com/thread.jspa?threadID=122856
    http://wiki.sdn.sap.com/wiki/display/Java/External+jar+file+error+and+Solution
    http://www.sapgeek.net/2010/10/web-dynpro-java-use-external-library/
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2361
    http://forums.sdn.sap.com/thread.jspa?threadID=1907794
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9515 (part 1)
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9517 (part 2)
    If I try to put references in DC properties: sap.com~ externallibrary_deployableunit i got the next Exception when i try to deploy my DC.
    15-sep-2010 17:24:58 /userOut/deploy
    (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy
    Thread,5,main]] WARNING:
    [007]Deployment finished with warning
    Settings
    SDM host : PORTAL
    SDM port : 50118
    URL to deploy :
    file:/C:/WINDOWS/TEMP/temp53671ebpartners.net~samplecargadescargaxcel.ear
    Result
    => deployed with warning :
    file:/C:/WINDOWS/TEMP/temp53671ebpartners.net~samplecargadescargaxcel.ear
    Finished with warnings: development component
    'samplecargadescargaxcel'/'ebpartners.net'/'local'/'20100915172420'/'0':
    Caught exception during application startup from SAP J2EE Engine's
    deploy service:
    java.rmi.RemoteException: Error occurred while starting application
    ebpartners.net/samplecargadescargaxcel and wait. Reason: Clusterwide
    exception: server ID
    17229150:com.sap.engine.services.deploy.container.DeploymentException:
    Clusterwide exception: Failed to prepare application
    ''ebpartners.net/samplecargadescargaxcel'' for startup.
    Reason=Clusterwide exception: Failed to start dependent library
    ''sap.com~externallibrary_deployableunit'' of application
    ''ebpartners.net/samplecargadescargaxcel''. Status of dependent
    component:  STATUS_MISSING. Hint: Is the component deployed correctly
    on the engine?
           at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1490)
           at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
           at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:171)
           at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:301)
           at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342)
           at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126)
           at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245)
           at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4761)
           at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4666)
           at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4639)
           at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)
           at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
           at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
           at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
           at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
           at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
           at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
           at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : Got problems during deployment
    Unfortunatelly I am stuck in it.

    Thanks for helping me.
    I have done exactly what you told me, i have the same problem.
    I fact i do not get compilation error:
    1) Escenary one problem during deploy DC
    If I try to put references in DC properties: sap.com~ externallibrary_deployableunit i got the next Exception when i try to deploy my DC.
    15-sep-2010 17:24:58 /userOut/deploy
    (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy
    Thread,5,main]] WARNING:
    007Deployment finished with warning
    Settings
    SDM host : PORTAL
    SDM port : 50118
    URL to deploy :
    file:/C:/WINDOWS/TEMP/temp53671ebpartners.net~samplecargadescargaxcel.ear
    Result
    => deployed with warning :
    file:/C:/WINDOWS/TEMP/temp53671ebpartners.net~samplecargadescargaxcel.ear
    Finished with warnings: development component
    'samplecargadescargaxcel'/'ebpartners.net'/'local'/'20100915172420'/'0':
    Caught exception during application startup from SAP J2EE Engine's
    deploy service:
    java.rmi.RemoteException: Error occurred while starting application
    ebpartners.net/samplecargadescargaxcel and wait. Reason: Clusterwide
    exception: server ID
    17229150:com.sap.engine.services.deploy.container.DeploymentException:
    Clusterwide exception: Failed to prepare application
    ''ebpartners.net/samplecargadescargaxcel'' for startup.
    Reason=Clusterwide exception: Failed to start dependent library
    ''sap.com~externallibrary_deployableunit'' of application
    ''ebpartners.net/samplecargadescargaxcel''. Status of dependent
    component: STATUS_MISSING. Hint: Is the component deployed correctly
    on the engine?
    at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1490)
    at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
    at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:171)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:301)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4761)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4666)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4639)
    at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    1) Escenary two problem in runtime:
    I try to not write the references in properties DC in Web dynpro references in Libraries references, in mi DC WD deploy correct, i got the next run time Exception:
    java.lang.ClassNotFoundException: jxl.Workbook
    Loader Info
    ClassLoader name: http://ebpartners.net/repguad Parent loader name: Frame ClassLoader References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization sap.com/tcwddispwda sap.com/tcwdcorecomp service:webdynpro service:sld library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:com.sap.mw.jco library:com.sap.lcr.api.cimclient library:sapxmltoolkit library:com.sap.aii.util.rb library:com.sap.util.monitor.jarm library:tcddicddicruntime library:com.sap.aii.util.xml library:com.sap.aii.util.misc library:tccmi Resources: /usr/sap/JDV/JC00/j2ee/cluster/server0/apps/ebpartners.net/repguad/webdynpro/public/lib/ebpartners.netrepguad.jar /usr/sap/JDV/JC00/j2ee/cluster/server0/apps/ebpartners.net/repguad/src.zip Loading model: {parent,references,local}
    Thanks a lot

  • Adapter module to read excel file -java code required for PI 7.1

    Hi PI experts,
    I am working on PI 7.1 SP 08.
    I am trying to develope an adapter module to read excel file
    http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns
    but here in this wiki , given java code is for pi 7.0 and it is using jar file from PI 7.0
    I tried with using corresponding PI 7.1 files
    com.sap.aii.af.lib.mod.jar:
    sap.comtcloggingjavaimpl.jar:
    com.sap.aii.af.svc_api.jar:
    com.sap.aii.af.cpa.svc_api.jar:
    com.sap.aii.af.ms.ifc_api.jar:
    jave program is not throwing any error in NWDS but After deploying file on server.
    i am getting this errot in communication channel
    2009-12-15 15:47:08 Information AO: Now calling the Convert Method to convert Excel to XML.
    2009-12-15 15:47:08 Error MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: Bad version number in .class file
    since i am not a JAVA expert so i am unable to resolve this error
    if some one has already deployed this module for PI 7.1, then please provide me java code for PI 7.1
    Thanks
    sandeep sharma

    hi,
    please try this:
    obj = inputModuleData.getPrincipalData();
    msg = (Message) obj;
    amk = new MessageKey(msg.getMessageId(),msg.getMessageDirection());
    XMLPayload xpld = msg.getDocument();
    Workbook wb = Workbook.getWorkbook((InputStream) xpld.getInputStream());
    xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n"+ "<ns0:"msgType" ""xmlns:ns0=\""nameSpace+"\">";
    Cell[] cells ;
    Cell[] cellNames ;
    cellNames = wb.getSheet(0).getRow(0);
    for(int j=1;j<wb.getSheet(0).getRows();j++)
    xmldata = xmldata+"<Record>";
    cells = wb.getSheet(0).getRow(j);
    for(int i=0;i<wb.getSheet(0).getColumns();i++)
    xmldata = xmldata"<"cellNames<i>.getContents()">"cells<i>.getContents()"</"cellNames<i>.getContents()+">";
    xmldata = xmldata+"</Record>";
    xmldata = xmldata"</ns0:"msgType+">"; 
    wb.close();
    byte byt[] = xmldata.getBytes();
    xpld.setContent(byt);
    inputModuleData.setPrincipalData(msg);
    Thanks,
    Mayank

  • How to embed excel in java bean area on oracle forms 9i?

    Hi,
    I am trying to embed excel in oracle forms 9i using java bean. I want to open excel sheet in the bean area not as seprate application. Means i donot want to excel running separately from forms on the machine.
    If any body knows the solution please reply.
    Best regrads,
    Shiraz

    Hi
    Is it possible to create a java bean, with a click event which populates data from database table to an excel sheet.
    The data(can be obtained in a string format with delimiters, but can anyone help me in exporting this into an excel sheet). and also to provide user to take prints of the data in the excel sheet.
    If Print of the JTable could be done(by settin printable as this), but this involves unwanted buttons to be printed, and entire table is not available in the spread sheet format.
    Thanks in Advance
    Deepa

  • Import Excel gives Java error

    When I try to import an excel spreadsheet, I get the following error:
    org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance, the following exception occured: null
         at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:237)
         at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
         at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
         at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
         at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportUtil.insertExcelToTable(ExcelImportUtil.java:37)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportEditor.importExcelToTable(ExcelImportEditor.java:79)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportEditor.importExcel(ExcelImportEditor.java:50)
         at oracle.dbtools.raptor.dialogs.actions.ExcelImport.launch(ExcelImport.java:11)
         at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:124)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
         at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    SQLDeveloper 1.1 .0.23
    Import/Export Support     oracle.ide.importexport     11.1.1.0.11.42.44     Loaded
    Win XP (SP2)
    Java JRE 1.5.0_06
    connecting to
    Oracle 10.2 on same box (Win)
    Oracle 10.2 (Solaris)
    Oracle 9.2 (Win)
    However, from home over a VPN connection it works.
    Same version of SQL Dev, but
    Mac OS X 10.4.8.
    JRE 1.5.0_06 (same as on Windows box)
    Apart from convincing my boss to buy me a Mac for the office, what do I need to do to make Import/Excel work on the Windows box?
    Simon

    Similar thing happens here with SQL Developer v1.1. Error message is:
    java.lang.NullPointerException
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportDialog.getStringValue(ExcelImportDialog.java:239)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportDialog.populateModel(ExcelImportDialog.java:295)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportDialog.displayExcelDialog(ExcelImportDialog.java:143)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportUtil.insertExcelToTable(ExcelImportUtil.java:41)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportEditor.importExcelToTable(ExcelImportEditor.java:79)
         at oracle.dbtools.raptor.dialogs.importdata.ExcelImportEditor.importExcel(ExcelImportEditor.java:50)
         at oracle.dbtools.raptor.dialogs.actions.ExcelImport.launch(ExcelImport.java:11)
         at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:124)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
         at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

  • Upload to Excel using Java Bean

    Hi
    My requirement is that to upload the data to an excel sheet from a JTable(JTable is actually a java bean which gets its input from forms) and the user need to be given either to view the excel/save the excel/print the excel in any of the networked printers.
    Please cud someone help me with their inputs.
    Thanks again
    Deepa

    can you send me your code bean and form?
    I have example that i can send you to export to excel using webutil and OLE object.

  • How to set the size of an Excel-file,Java created in tabbed forma

    Hi all,
    I'm creating an Excel-file by writing data to an outputStream in tabbed format.
    My problem is : How can I set the width of the columns of that Excel-file, not the default-size?
    If anyone can help, that would be very nice.
    Thanks a lot,
    Regards,
    Tim

    You can write a generic xls file containing a Macro to open and set the column widths of text or csv files. Your java program can then call this generic file to open your text files.

  • How to set Password protection in excel using java

    Dear all,
    I have no idea to write a java program that how to set password protection in excel. Please give me some solution using java tools. Thank a lot!
    Regards,
    kzyo

    Dear Bamkin ,
    I used your code and paste it in my program. The error is as the follow:
    Code:
         stmnt = c.createStatement();
                   String query = "select StudentNumber, Email, New_Email_Address from [Sheet1$] where Len(New_Email_Address) > 0";
                   System.out.println(query);
                   rs = stmnt.executeQuery(query);
                   stmnt.executeUpdate("SET PASSWORD=PASSWORD('Test')");
    Error:
    (Remark: Invalid SQL statement)
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] �����I SQL ���q���G�a����'DELETE'�A'INSERT'�A'PROCEDURE'�A'SELECT' �� 'UPDATE' �B
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288)
         at hk.gov.edb.util.ExcelHandle.updateNewEmail(ExcelHandle.java:414)
         at hk.gov.edb.core.AppMain.doUpdate(AppMain.java:369)
         at hk.gov.edb.core.AppMain$7.construct(AppMain.java:584)
         at hk.gov.edb.util.SwingWorker$2.run(SwingWorker.java:127)
         at java.lang.Thread.run(Thread.java:595)

  • Accessing excel from java code

    Hello
    our system uses reportNet to generate reports. When reports are generated in CSV format we have a problem:
    Report consists of people (can be more than one) so under name column we have same name in more than one row. BUT if more than one name is suppose to be in the CSV report then the header (column names row) is again printed.
    so for example if i requested rpeort for two names A and B (reportNet uses same template which is executed twice) then report will look like this
    Name (header - column name)
    A
    A
    A
    A
    A
    Name (header - column name)
    B
    B
    B
    B
    I want to be able to remove the second header that comes before B starts.
    so i was thinking i would be able to access this excel sheet from java. and keep record of every row. If the row changes from A to B...i delete the previous row (which would end up being the second header).
    Can this be done thru java. I havnt before accessed excel sheets from java so any pointers would be greatly appreciated.

    Hi, well CSV is not currently an Excel file, it is a Comma Separated Values
    file which can be read through Excel.
    Now, if you wish to remove the header, I would purpose that you develop an
    application that reads the CSV file, as it is mere text, and that it also reads
    another file (lets call it confirguration.txt) in which you determine the pattern
    you want to remove, then you just read your report and if a string line
    matches the pattern you defined in the configuration.txt file, then you simply
    erase it.
    And if you keep interested in reading real Excel files (xls), I would
    recommend you use POI-HSSF API from Apache.org
    http://jakarta.apache.org/poi/hssf/index.html
    Hope this helps, cya around.

  • Recalculation in excel thru java

    Hi,
    Thru java program i can able to read and write the values into the excel sheet. but...Latest re calculating values are not available to read
    Example, for the following situation i am not getting right values
    In worksheet1 cell A1 = 10 (writing this value thru java pgm)
    worksheet1 cell B1 = 5 (writing this value thru java pgm)
    worksheet1 cell C1 = A1 * B1 (writing this formula manually)
    close the excel thru program
    open the worksheet1 and read the cell C1 value thru program now newly calculated is not available.
    if i open the excel sheet manually and read the cell value C1 thru program.then new value is available.
    could you please help me.
    thanks in advance
    GS

    I have a similar problem using a JDBC-ODBC bridge, and i solve it closing the connection after an update.

  • Invoking MS Excel from Java

    HI,
    I'm trying to create a standalone application that would need to logon in a database.If the user is a valid one, the user can then choose which table he wanted to update. All the rows of the column will be shown in an excel format. (the program will invoke Excel to show all the records in that table). From that, the user can edit the content and after saving it, data in the databse will also be updated.
    Is there any Java API that I can use to make this application possible?
    Thanks,

    Crossposted: http://forum.java.sun.com/thread.jspa?threadID=678912
    Please don't answer on this duplicate copy.
    And @OP: QUIT IT!

  • From Time column in Excel to Java Date ?

    Hi there!
    After I have read range data from Excel to a Java Object[][]
    array/table, one of my excel time columns becomes "floats"
    numbers when I try to access them in Java, like this:
    from 15:00:00 in Excel to 0.625 in my Java program
    How can I avoid this OR transform/parse this 0.625 number
    back again to time/Date 15:00:00 inside Java ? hmmm
    Is there any setup of jCom that can controll this somehow ?
    I have been able to transform:
    from 11.15.01 in Excel, becomes "Thu Nov 15 00:00:00 CET 2001"
    with the jCom bridge ...
    When I have this "string" on this format, it's easy
    to get a Java Date of this with SimpleDateFormat.
    ... but not with this time of mine :-)
    Any clues where to look or a solution for this ?
    -- Thank you !
    -- Erlend

    Excel stores times as decimal fractions (representing portions of a day)
    There is no Time data type in VB so is probably represented by a Single
    object.
    This object is then converting to a java.lang.float on the Java side.
    0.625 can be parsed by multiplying by (24*60*60) to get the number
    of seconds after midnight.
    A list of supported COM data types and their java equivalents
    can be found in chapter 7 of the jCOMReference pdf file.
    damon
    "Erlend Bjorge" <[email protected]> wrote in message
    news:3be2983e$[email protected]..
    >
    Hi there!
    After I have read range data from Excel to a Java Object[][]
    array/table, one of my excel time columns becomes "floats"
    numbers when I try to access them in Java, like this:
    from 15:00:00 in Excel to 0.625 in my Java program
    How can I avoid this OR transform/parse this 0.625 number
    back again to time/Date 15:00:00 inside Java ? hmmm
    Is there any setup of jCom that can controll this somehow ?
    I have been able to transform:
    from 11.15.01 in Excel, becomes "Thu Nov 15 00:00:00 CET 2001"
    with the jCom bridge ...
    When I have this "string" on this format, it's easy
    to get a Java Date of this with SimpleDateFormat.
    ... but not with this time of mine :-)
    Any clues where to look or a solution for this ?
    -- Thank you !
    -- Erlend

Maybe you are looking for

  • Where can I find a tutorial about...

    I'm new to Flash CS3 and need some help...please. Where can I find a tutorial on how to customize a scroll box? I made one, but the pictures that are going inside, they are not center, I can only see, the bottom part of them. Thanks

  • Problem in creating recovery media disks

    I tried to create the recovery media and i am getting the message "Resources required by this application are already in use. Please retry after the other application completes". Can any one help me to solve this issue? I haven't created the recovery

  • All about a Transport! (ver y urgent)

    Hi all,       Can anyone help me knowing all the possible transaction codes helpful while doing or dealing with a transport. Any tables which reveal the effect of a transport , and is there a way to roll back the effect of a transport which has been

  • HT2534 I try to download free stuff my the iPad ask me for billing information a what can I do

    Somebody can help please!!!!! I did the mistake to buy a book from my iPad. And know I can't download anything without credit card. What can I do to resolve this big problem :(. 

  • Quicktime .mov files with MPEG-2 codec playback error

    I have a series of .mov files, and I'm not able to open them in QT X or QT 7.6.6. The codecs listed in the Info for the files are: MPEG-2, Linear PCM, and Timecode. Original format is MPEG HD, at 1920x1080. Does anyone know how I can play them back?