Programming Excel from Java

How can I copy an EXCEL file from a NT machine to a Unix machine and then present it on client's workstation, when the application server is in Unix. Please think of a situation wherein the EXCEL file got created on NT Server, the application server is installed on a Unix, web application is a Servlet running in Unix and the User initiates a request from a browser.
can someone please help. this is urgent for us.

Can you please help by elaborating a little further?Yes - but SEARCH THE FORUMS, similar questions:
"how do I send an image the browser"
"how do I send a pdf the browser"
"how do I send a word/doc the browser"
set the mime type appropriately in the http response
write your byte stream to the http response output stream

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.

  • Reading Excel from Java

    Hello,
    I would want to read excel data from Java. I do not want to register any excel drivers as I will not be able to know the file to be read before hand. Are there any better ways to solve this ?
    Thanks in Advance,
    Prasanna

    hi prasanna
    if you are using jdbc-odbc bridge I would recommend you to test the
    program with excel files with varying sizes like 3,5, 12, 20 etc. There
    is a some problem with the driver that it chops off some data.
    For example if you have 20k excel file the driver may read in 9k chunks so you get 18k of data read and the driver ignores rest 2k.
    Make sure of that it works on all sizes of input data.
    bib/-

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

  • Excel from JAVA or C++ --  Urgent -- help

    Hi
    I know it might not be possible, but i want to use couple of Financial Functions which excel provides within itself.
    Is there anyway i can use them from my JAVA or C++ code ?
    In short, would it be possible to call excel functions from JAVA or C++ code
    TIA
    Vikram

    Actually you can... In quite a few different ways. You can access any COM or OLE object in windows from within java by using the Java/COm bridge, or purchasing shrink wrapped products... The links are below:
    These people provide some very cool solutions for java. This link is specifically for excel.
    http://www.intrinsyc.com/pdfs/java-excel_bridge.pdf
    Some Resources for Java/COM...
    http://users.rcn.com/danadler/javacom/

  • Excel from Java

    Hi ,
    could any one help me in creating two excel worksheets from Java.
    I know using <%@ page contentType = "application/vnd.ms-excel" %> it will create workbook and reads data from html table .
    But I want the data from 2 html tables into 2 excel work sheets with in the same work book ..
    Thanks in Advance.

    Maybe Jakarta's POI can help you out.

  • Using word/excel from java (client or weblogic server)

    Hi everybody,
    i want to use excel / word functionality from java in two different variants:
    -> serverside
    -> clientside
    I tried the weblogic.comc and i got serveral classes but in the remote-package i got only a utitlity-class.
    My knowlege about COM is rather bad.
    Does anybody did this bevor and
    -> can say me, if it is correct, that i only got a utility-class (so how will i use it from the client ?!)
    -> has a example for using Excel / Word from Java in bea weblogic
    -> has a example for using Excel / Word directly in a client (not via rmi)
    Thanks
    Ciao
    Sven

    Sven, This is a really bad idea. Why don't you tell me
    what your trying to do and I wil surely give you a better alternative
    JRadecki
    "Sven Roesner" <[email protected]> wrote:
    >
    Hi everybody,
    i want to use excel / word functionality from java in two different variants:
    -> serverside
    -> clientside
    I tried the weblogic.comc and i got serveral classes but in the remote-package i got only a utitlity-class.
    My knowlege about COM is rather bad.
    Does anybody did this bevor and
    -> can say me, if it is correct, that i only got a utility-class (so how will i use it from the client ?!)
    -> has a example for using Excel / Word from Java in bea weblogic
    -> has a example for using Excel / Word directly in a client (not via rmi)
    Thanks
    Ciao
    Sven

  • Call c++ program .exe from java

    Hello every body
    i have a problem while calling Hello.exe from java
    c++ code
    #include "stdafx.h"
    #include <iostream>
    # include <string>
    using namespace std;
    int main(int argc, char *argv[])
         int x;
         cout<<"Just test ";
    return 0;
    }java code:
    import java.io.IOException;
    public class runtime{
        public static void main(String[] args){
        try
        Process process = Runtime.getRuntime().exec("Hello.exe");
        }catch (IOException e)
         e.printStackTrace();
    }it display nothing!!

    alexxzius wrote:
    String line="";
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(process.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    There is a danger of deadlock in this code. The OP should read the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and implement ALL the recommendations.

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

  • Starting program�s from Java.

    Hi!
    Do anyone know how to start, for examples Outlook or IE from my Java application?
    //Thanks!

    Runtime.getRuntime().exec("<my program>")

  • Can programs run from java that is on web browser

    i have written a program and used autorun to run when a cd is put on but not every body will have java on their computer a firend told me that most people will have java on the web browser that will be able to run the cd is this true or will i have to give download instructions to download jav first. this is obviously not ideal as i want people to be able to run the program by putting the cd in and nothing else.

    1. You can create a Java applet, which is a Java program that runs
    from a web page. It will need to be a signed applet. Your autorun will start the browser with the web page carrying the Java applet.
    I don't think this is optimal.
    2. Search for "embed JRE", which describes how you can supply your
    private JRE with your program. It does not install the JRE, nor does it
    care if one is already installed. I did this many times, there is no problem
    at all, but here I have no idea whatsoever what happens if your JRE originates from write protected media. I guess it should work. Experiment or wait for others to see what they think.

  • Generate the Chart in Excel from Java

    Hi All,
    I have a typical problem that is I want to generate the
    Excel charts through Java coding dynamically . Now Iam able to
    create a excel sheet and populating the Data in that,but Iam not
    able and not even have the Idea how to generate the Chart with
    the popuated data , please can any body suggest me ...with the
    code snippet ( iam using the jxl 2.4.2 jar ) .
    Thanks in Advance

    Still Looking forward for the reply...Pls Help meGod, what a loser, to wait for 7 days for what I could find in less that 7 minutes on Google. And I'd never even heard of jxl.jar.
    Incidentally -- what do you think this has to do with Swing, that you posted it here in the Swing forum?
    db

  • Export tableview data to pdf or excel from java

    Hi
      How do i Convert tableview data generated using defulttableviewmodel to pdf excel format. Any APIs are their ?
    Regards
    Ganesan

    Hi Ganesan,
    Check these blogs on pdf and excel APIs.
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1468">PDF API</a>
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1390">Excel  API</a>
    Hope it helps.
    Regards,
    Saravanan

  • How to display UTF - 8 when genereate excel from java

    I use Jsp to input chinese words as UTF-8, and store them to Oracle. When I display these words in Jsp, there is nothing wrong. But if I generate Excel through servlet, these words display as "???e????", how can I resolve this problem?
    Thank you!!!

    What library are you using to generate xls files? Then find that library's support fora.

  • Background color in POI (Excel report from java)

    I'm generating report in Excel from Java.how can background color is set for single cell.

    i write code like
    style.setFillBackgroundColor(HSSFCellStyle.RED);
    it shows error that can not resolve symbol variable RED.why?give me solution

Maybe you are looking for

  • HP Officejet Pro X576dw MFP scan to network folder

    HP Officejet Pro X576dw MFP Scan to Network Folder function is producing error messages in the Network Folder Setup.   The error message reads:   """A problem occurred during the test. Click "Edit" to check your settings, and then try again. For more

  • TV Display through MBP - Does it stress the MBP?

    So I have been plugging in my MBP into my TV to watch some streaming movies. I think I read somewhere that having it plugged into the MiniDP will put extra stress on the computer (ie: games and stuff shouldn't be played in this mode). Does anyone kno

  • Password remembering turned off

    Not fixed I read another post on the same subject. Will follow this . Look for the topic : "can't save my password for websites; invitation to save doesn't come up". I upgraded to 3.6.8. When i log in on specific sites my login name is remembererd ,

  • TS4006 Adding a device after its been stolen.

    Am I able to add a device(iPhone) say from a computer after the device has been stolen?

  • Duplicate recurring birthdays on calendar

    All the birthdays I have entered in the birthday field of the contact are duplicated. No other appointments are duplicated. How do I stop that from happening when I sync?