Creating/editing Excel files(.xls)

hi,
does anyone knows java opensource library for produce/modify excel files?
I need a very simple library because i'have not a lot of time for my activity. moreover i need to produce simple excel report from a ResultSet with simple basic formatting infos.
for example i need to bold the header fields,etc...

Imagine if the forum had an extra layer between the "Post" button and actually posting the thread.
It would automatically search the forum (google too perhaps) based on identified key words (create edit excel) in this case and suggest a list of existing threads.
That would give the originator the chance to find the answer they were looking for without starting a new thread.
We know that some of these users can't be bothered to search (the beauty of the internet...) so why not do it for them.

Similar Messages

  • How can I create an Excel file?

    Hi,
    How can I create an Excel file using Forms 6i.
    What I'm doing is to create a file using TEXT_IO package an name it .XLS. If a read it double-clicking over the file, it opens Ok but If I open directly from Excel it opens the Convert dialog.
    I need to create an excel file as it was made from within Excel.
    Thank in advance,
    Benjamin

    When you are talking about subfiles, are you talking like Package contents of an application?
    Terminal application in Applications -> Utilities can give a command line grasp of all your files using the du command.
    Type
    man du
    when entering the terminal, followed by the enter key.
    Note, by default the terminal opens at the Home folder.   To navigate outside the Home folder enter "/Volumes/name of mounted drive/folder/subfolder" as your path.  If there are spaces in the name, putting quotes around the whole path can help.    If you end your du command with a > name.txt a text file with the name name.txt will be plugged into your Home directory.  That you can open with Excel and parse by /es thus giving you everything in Excel.

  • How to create an Excel file from XML in the Receiver File Adapter Comm Ch

    How do I create an Excel file from XML in the Receiver File Adapter Communication Channel? I have my mapping done and I am outputting the file as a comma delimited csv file. However, the target can only process an Excel file (.xls). How can I generate an Excel in XI?
    I saw this blog, but I don't know how to create a XSLT transformation.
    /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
    Any help would be appreciated. Thanks.

    Here are the steps I took to create an XSLT transformation in XI 3.0:
    1. I created my source and target XSDs using XMLSpy.
    2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
    3. I created another XSLT mapping to format the target into Excel XML.
    4. Import the source and target XSDs in the IR's External Definitions
    5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
    6. Reference the XSL mappings in the Interface Mapping

  • Is it possible in java to send a excel file (.xls) as a parameter ???????

    hey guyz iam new to java technology
    please tell me whether i ca send a EXCEL file(.xls) extention as a parameter to a method (later i have to create a backup file for that excel sheet) if any one know this method please give me suggestions !!!
    posting some code would be helpful
    thankyou
    bye n cheers
    harsha

    lol
    If all you want is to create a backup of some file you can do:public class Foo
        public static void main(String[] args) {
            Foo f = new Foo();
            f.createBackup("something.xls");
        public void createBackup(String inFile) {
            FileInputStream in = null;
            FileOutputStream out = null;
            try {
                in = new FileInputStream(inFile);
                out = new FileOutputStream(inFile + ".bak");
                int read;
                while ((read = in.read()) > -1) {
                    out.write(read);
                out.flush();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } finally {
                if (in != null) {
                    try {
                        in.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                if (out != null) {
                    try {
                        out.close();
                    } catch (IOException e) {
                        e.printStackTrace();
    }

  • Create an Excel File in background

    Ladies and Gentlemen,
    I have a requirement to create an Excel file in a program that will only be executed in background mode.  This automatically rules out GUI_DOWNLOAD or any download funtion that presents the file on the presentation server.
    I think that the 'Open Dataset...' command will work to create the file on the Application server, but this seems a bit archaic to me.  Is there another way of creating the excel file on the application server in background?  I am working on a 4.7 system at the moment, but this is scheduled for a upgrade to ECC6 sometime in the next 12 months, so I'm after a process that will be valid both before and after the upgrade.
    Cheers,
    Steve

    Hi Stephen,
    Use Open dataset, Transfer, Close dataset to create file on Application server.
    Use FM Z_CONV_ITAB_TO_TAB_DELIMITED to convert your lines in TAB delimited format. you can download file from your application server to presentation server using T Code CG3Y and give extension as .xls ...
    As you data is Tab delimited it will automatically get formatted in columns in your EXCEL file.
    Regards,
    Mohaiyuddin

  • How to edit Excel files online

    HI, is it possible to edit Excel files online, which where uploaded to webserver. I mean, opening an ecxel sheet changing different fields, and saving the changes without opening the .xls with my local office?
    If yes, how?

    you could try it with http://jakarta.apache.org/poi
    That is a package that allows reading and writing of excel files, it wont be easy as you have to parse the excell file into HTMl that is editable.

  • Create an excel file from java

    I am using Jakarta's POI to create an excel file from MySql. The POI works well when a samll amount of data was written from MySql (created .xls file less than 3500KB). The problem is when a large amount of data need to be written to an excel file, java.lang.OutOfMemoryError Exception in thread "main" appears. In my project, I really need to have a large amount of data to be wriiten ton excel file. Do somebody has good solution for it?
    Thanks

    What about using some text files like csv
    (comma-separated value) file? It is plain text but
    Excel (and other spreadsheet programs) will be able to
    read it.
    But then there will be no formatting and bells and
    whistles. It was just an idea.Excel will also read HTML <TABLE>'s, with full formatting. There are some extra tags for numeric formatting, also. Just create an HTML table, and save to a file with .xls extension, e.g.:
    <TABLE>
    <TR bgcolor="#00FF7F">
    <TH>Agency ID</TH>
    <TH>POS ID</TH>
    <TH>Machine Serial</TH>
    <TH>Disk Serial</TH>
    <TH>MAC ID</TH>
    <TH>System Manufacturer</TH>
    <TH>Machine Type</TH>
    <TH>BIOS Manufacturer</TH>
    <TH>BIOS Version</TH>
    <TH>BIOS Date</TH>
    </TR>
    <TR bgcolor="#9ACD32">
    <TD>1000</TD>
    <TD>1069</TD>
    <TD STYLE='vnd.ms-excel.numberformat:@'>US215199248</TD>
    <TD STYLE='vnd.ms-excel.numberformat:@'>5C5AE88F3</TD>
    <TD STYLE='vnd.ms-excel.numberformat:@'>000423155334</TD>
    <TD>Hewlett-Packard</TD>
    <TD>Desktop</TD>
    <TD>American Megatrends Inc.</TD>
    <TD>JA.01.03US</TD>
    <TD>07/19/2001</TD>
    </TR>
    </TABLE>

  • Help creating an excel file

    I am trying to create an excel file from a table in sql server.
     I want to basically copy the template file I created into a new folder, then input data to this new file.
    However, I am having trouble because the package wont run because the excel connection manager is pointing to the file that has yet to be created.

    Hi lrj1985,
    If I understand correctly, you would like to create Excel Connection Manager dynamically. In other word, you want to new an Excel file every time the package run. Am I right?
    If so, we can use expression in ExcelFilePath to name the file dynamically. We can create the destination sheet every time before the data flow task is running. Here are the detailed steps:
    Creae a dummy Excel in a specified folder
    New a Excel Connection Manager, and point to the file we created in step1. Yes, it is pre-created. But it won't be used while the package is running
    New a variable, use expression in it to dynamically set its value. This value is going to be used as the ExcelFilePath in runtime. The expression can be something like this: "D:\\Libraries\\Desktop\\Excel\\"  + SUBSTRING( (DT_WSTR, 30) GETDATE(), 1,
    10)+   "_destination.xls"
    Right click the Excel Connection Manager we created in step2, click Property
    In the properties window, click Expressions
    In the Expression window, set Property as ExcelFilePath, and the value as variable we created in step 3
    Now, go to Control flow, add a Execute SQL Task before Data Flow task.
    In the Excel SQL Task, set connection type as Excel, connection as the connection we created in step1, and the SQL Statement as something like the following one
    CREATE TABLE `Excel Destination` (
    `Id` Double,
    `Value` LongText
      9. Go ahead, and add the Data flow task
    After that, each time we run the package, a new Excel file will be created. We can then use File Sytem Task to move it to a specified folder.
    Thanks,
    Jinchun Chen

  • Create a Excel File in a Background Job

    Hi SAP Gurus,
    I am trying to create an Excel file using a background job but it is not possible.
    In foreground mode i get a file.
    Can someone give an explanation for that? Or someone have a workaround ??
                   Best Regards
                          João Fernandes

    João,
    If you have successfully demonstrated that SAP can write an output to an excel file, then it can do this in background as well as foreground.  The problem is probably not with the fact that it is 'Excel', but that it is trying to write a file in the background to a destination file location that is unknown to the system.
    Generally, without special setup, SAP software is unaware of most file locations that are outside of the SAP system itself.  When you log on through the SAP Gui, the SAP back end can "learn" about certain additional file locations through your PC setup and the SAPGUI session.  This 'knowledge' is lost as soon as you commit your program to a background process.
    Talk to your Basis person, and tell him what you wish to do.  This functionality is possible to do, but probably not in the way you are expecting.
    Best Regards,
    DB49

  • How do I create an excel file that has the volume output and the time at which it occured?

    Hello:
    I am using Labview to control a New Era Pump Systems automatic syringe pump and to record diameter measurements from a LaserMike optical comparator. My program is fully functional, the code is attached with all auxilliary files in the NE-50X folder. I mostly understand my program, I used drivers for the NE-50X pump found on the NI website to build my code and added to it as needed.
    If anyone has ideas about how to do any of these three things, your help is greatly appreciated. I have the output from the syringe pump going into a line graph while I run the test with the time on the x-axis and volume on the y-axis. How would I be able to create an excel file from this information? I would like the excel file to have the time in one column and the volume at that time in the next column. I though that I had wired it correctly, however I feel that the time seems to be a little off and very exact. Attached is the block diagram of what I have done.
    Hello:
    If anyone has ideas about how to do any of these three things, your help is greatly appreciated.
    Attachments:
    RATETEST.vi ‏202 KB

    Let me start by answering the specific question, and then I will provide some suggestions on the code.
    The function you want is the "Write to Spreadsheet File", which you're already using, albeit in a confusing means (more later). I was not able to find any place in your code where you're actually acquiring time information, so I don't understand your comment about the time not being exact. (I'm assuming you mean "not", even though that word was not in your actual sentence.)
    As for the code:
    As I mentioned, you're using the "Write to Spreadsheet File" twice, as well as the "Write to Measurement File" Express VI. All three seem to be logging the same information, though one of the "Write to Spreadsheet File" functions is logging some sort of volume and diameter information. Please pick one.
    You're looping around the path for one of the "Write to Spreadsheet File" functions, but not for the other two functions. Why are you looping the path in the first place?
    You' re continuously accruing data into an array to put onto an XY Graph. Please keep in mind that this means the program will slow down as it progresses as this array gets larger and larger, and LabVIEW needs to shuffle memory around. Depending on how fragmented your memory is, you may find the program will crash since LabVIEW cannot allocate a large enough contiguous block of memory for the array.
    Your wiring really needs to be cleaned up. Tip: Right-click on a wire and select "Clean Up Wire".
    In the middle of the diagram you have a case structure in which the True part has a single iteration loop that's adding 1 to the iteration and updating some local variable, and in the False part you're doing something else with it. I have no idea what you're trying to do, but surely there must be a better way to do it.
    You seem to have two tank indicators on top of each other on the front panel and then flipping the visibility of them based on some value. I would think that it would be easier to simply display both at the same time, no? As a user, I would find it somewhat perturbing to see the tanks appear and disappear.

  • Exception while creating a excel file in BPM 10g

    Hi,
    We are facing following issue while creating an excel file from BPM.
    java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at fuegoblock.net.web.NewJspAjaxController.processMethodInvocation(NewJspAjaxController.java:264) at fuegoblock.net.web.NewJspAjaxController.service(NewJspAjaxController.java:46) at fuego.web.execution.servlet.ServletRedirector$ControllerRedirector.forward(ServletRedirector.java:197) at fuego.web.execution.servlet.ServletRedirector.redirect(ServletRedirector.java:58) at fuego.web.papi.TaskExecutor.processRedirect(TaskExecutor.java:224) at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:104) at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117) at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229) at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook at xobject.Views.ReportingView.exportToExcel(ReportingView.xcdl:9) ... 35 more Caused by: java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.Workbook at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 36 more
    There is a JSP file which invokes the method of BPM, which inturn creates a excel file.
    In JSP we are calling the method in the following way:
    function exportSelectedItemsToExcel(){
         var url="<f:invokeUrl var='reportingView' methodName='exportToExcel'/>";
         url = url + "&bpmRespContentType=application/vnd.ms-excel";
         var windowHandle = window.open(url,'windowName','width=800, height=600, resizable=1, menubar=1');
    POI jars are used to create the excel.
    Also we recently did the migration and applied a patchset of 10.3.3 on 10.3.2. In the previous verison(10.3.2) it was working perfectly fine. When i am trying to test it on localstudio, it is generating the excel file properly.
    Have any one faced any such issues while migration or any other time?

    Manifests are saved with the .mf file extension. Rename your manifest mainfest.mf.

  • Creating an Excel file from table with 40,000 records

    I need help with creating an Excel file for client that has a
    table of 40,000 records. I have code that generates the Excel and
    has worked well in the past but with this much data it is timing
    out.
    I've already informed the client that Excel has limit of
    66000 records. So it might be better to export to CSV as the data
    in this table is going to keep growing.
    If you have time to work with me on this , contact me a
    alexagui [at] gmail [dot] com
    and I can send you more details so you can put together an
    accurate quote.
    Thanks,
    Alex

    asdren_one wrote:
    > I need help with creating an Excel file for client that
    has a table of 40,000
    > records. I have code that generates the Excel and has
    worked well in the past
    > but with this much data it is timing out.
    >
    > I've already informed the client that Excel has limit of
    66000 records. So it
    > might be better to export to CSV as the data in this
    table is going to keep
    > growing.
    >
    > If you have time to work with me on this , contact me a
    alexagui [at] gmail
    > [dot] com
    > and I can send you more details so you can put together
    an accurate quote.
    For so many records my guess is that the concatenation times
    the most
    time so you'll need to use StringBuffer to build the string.
    Google for
    coldfusion and stringBuffer:
    http://www.stillnetstudios.com/2007/03/07/java-strings-in-coldfusion/
    Mack

  • How to edit Excel files in MacBook Pro

    I just got my first Mac and I am wondering if there are any programs/apps other than numbers or excel for Mac that I can use to edit excel files I have stored in my Dropbox account.  I only have a few files and don't really want to spend alot of money on the previously mention apps/programs since I probably won't be using it alot.   Any suggestion would be appreciated..thanks

    I agree with Niel - OpenOffice is the way to go - http://www.openoffice.org/download/.
    I have Office 2011, so I don't use OpenOffice too often, but it's nice to have something which costs nothing (save the blood and sweat of those who participate in making it work) that will open Word, Excel, etc., documents.
    Good luck,
    Clinton

  • How to create an EXCEL file in Presentation server

    hello experts,
    please suggest  me a solution for the following problem :
    I have an internal table with some data.
    how can i create an excel file with that data in Presentation Server.
    Thanks & Regards
    sasi.

    hi,
        u can use FM: 'DOWNLOAD'.
    it will prompt u for destination - just give the requd filename and extension.                      
    Ex:
        call function 'DOWNLOAD'
             exporting
                 filename                =
                  filetype                = 'DAT'
             tables
                  data_tab                = tb_output
                  fieldnames              = tb_fld_nam
             exceptions
                  invalid_filesize        = 1
                  invalid_table_width     = 2
                  invalid_type            = 3
                  no_batch                = 4
                  unknown_error           = 5
                  gui_refuse_filetransfer = 6
                  customer_error          = 7
                  others                  = 8.
    where,
             tb_output = internal table having the fields which u want in the O/P
    Ex:
             data:  begin of tb_output occurs 0,
                               name_1(20)      type c,
                               name_2(20)      type c,
                       end of tb_output.
             tb_fld_nam = Field headings :
    Ex:
             data:  begin of tb_fld_nam occurs 0,
                            name(25)              type c,
                      end of tb_fld_nam.
                     tb_fld_nam-name = 'Name 1'.
                     append tb_fld_nam.
                     tb_fld_nam-name = 'Name 2'.
                     append tb_fld_nam.
    Thanx & Regards,
    Ajoy

  • How to create an excel file from SAP?

    I needed to create an excel file(with out data) format with fields read from a table.

    check FM
    EXCEL_OLE_STANDARD_DAT
    Regards
    prabhu

Maybe you are looking for

  • Unable to load file ..jsp

    Hi When Iam forwarding a jsp page to other jsp page after some condition meets using jsp forward than some times when i access it it gives "Unable to load as it is not a top level class" for file while is forwarded for example:-- <jsp:forward page="L

  • If you have forgotten your security question how can you change them?

    Have not had to use this option so I really have forgot all about setting this up till the other day.. But when this come up that I did have to use I found out I forgot what I had use.. Stupid me.. Any way I did get my password rest and thought chang

  • Are JDev autogenerated paths needed to create ear, war and jar files ?

    Hi We want to create ear, war and jar files from Ant build script generated from JDeveloper 11.1.1.7. We also like to use ojdeploy with it. In the process of creating build.xml files from projects, we see these paths. We also have standalone Weblogic

  • How to use same form for Editing info and creating info.

    Hi all, Here my aim is to select the user from list and edit the user info. There is one more option to create the new user. Currently I am using two separate input forms one for Editing and one more creating new user. Can anyone tel me, how to use t

  • Video quality bad!

    Ok, so I bought my 30GB iPod video like close to a month ago. Just a few weeks ago i threw some movies on it, but the video quality is horrible. Well not with resolution or anything, because the video is detailed. But it has black x-ray looking resol