Creating Excel + word document i java

Creating an MS Word+Excel Document in java
I am doing a project in jbuilder an using a mysql db on a remote server what i want to do is to generate reports either in ms word an or ms excel after executing a query for example if I search for students aged 20+ I want to generate an excel sheet with all the records ....
Does anyone knows how to do that or is there a good tutorial on the web that explains this issue
Your help is appreciated many thanks...........

First you should read the post about how to use these forums. Before you post it does not take much to see if your question has already been asked and answered. This question has appeared a few times in the last two days. It was asked and answered on this very forum only a couple of hours ago.
Try here:
http://jakarta.apache.org/poi/

Similar Messages

  • How To Create MS-Word Document in JAVA ?

    I want to create a MS-Word Document using JAVA.
    then i want to create table in that document.
    is there any way through which i can create a Object of MS-Word in JAVA.

    As far as I know. There is no support. And you can't get the file format specification for MS Word documents.
    My advice is to look in to RTF, the spec is out there, although its not very nice.
    I think you can do tables in RTF, and you just need to write your output as text and MS word will load it.
    One thing to do is create a table in Word and save it as RTF, then look at the text and try to see whats going on. Although it won't be pretty !! Good luck

  • Create Word document with Java

    I want to create a Word Document with Java. But I don't know how can I insert text in a Word document.

    I searched and found JXWord (probably limited to Windows): http://www.geocities.com/picmapicma/
    I'm interrested to know if it works fine...:)

  • Generating Excel/Word Document with PHP/MySQL

    Hi all,
    I would like to know the best way I could create a Excel/WORD
    document that can take the name, address, from my mailing list
    table and use mail merge to print envelopes?
    Any ideas? Or is there any software than can help me?
    Thank you in advance

    Luis Godinho Ramos wrote:
    > SELECT *
    > FROM produtos
    > WHERE prod_modelo LIKE %colname% AND prod_funcao LIKE
    %colname% AND
    > prod_descricao LIKE % colname% AND prod_tags LIKE
    %colname%
    > ORDER BY prod_modelo ASC
    The second example you give is closer, but you need to
    enclose the query
    fields in quotes and use OR rather than AND...
    SELECT * FROM produtos WHERE prod_modelo LIKE '%colname%' OR
    prod_funcao
    LIKE '%colname%' OR prod_descricao LIKE '%colname%' OR
    prod_tags LIKE
    '%colname%' ORDER BY prod_modelo ASC
    HTH,
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • HOW TO OPEN WORD DOCUMENT FROM JAVA???

    hi everyone! Can you please help me to come with this problem? Let me to set my main target I want to achieve:
    1) In my program user should first press a button;
    2) Then already created Word Document should be opened (I DO NOT NEED to open that Word Document in Java or something like JField). Just simply it should be opened as a Microsoft Word Document.
    I DO NEED YOUR HELP! PLEASE HELP ME....!

    Running cmd using the exec is also a windows only solution, there is no "more" or "less" it that solution compared to the rundll.
    Since word is a windows format its pretty obvious that the application is ran under windows platform.
    If you are running on a different platform (maybe using open office you can open word documents, i'm not sure) you might want to use the JDIC library (https://jdic.dev.java.net/) which enables you to open/edit/browse such files using the default viewer/editor/browser of the system you are working on.
    Look at the org.jdesktop.jdic.desktop.Desktop object for these methods.
    You can also find the Desktop object in J2SE6 but its still in beta.

  • Generating reports in .doc format (Word Document) using Java POI - HWPF

    Hi
    Can anybody help me how to generate the report in .doc format using POI API?
    Please share the sample code, if you have.
    Thanks in Advance
    Dhilip

    Hi,
    I dont think that your requirement has to do with ADF capabilities.
    You want to edit a word document with JAVA. For that reason, you will need an API, as the suggestions above.
    You can do it without ADF and by using standard JAVA and the API of your choice. a static void main will do for that matter.
    ADF comes into the game when you want to handle the document with your ADF application.
    This means that you either want to get your new data to be placed on your doc from BC or any other DataControl or you want to do something else with ADF..
    My guess is that you want to get data from ADF into your Doc.
    You could create an API on handling your Doc and then use it into your ADF application.
    Regards,
    Dimitris.

  • I have a new computer with Windows 7 professional, Office 2007, Adobe XI. I have just created a word document and tried save it as a PDF but the PDF option doesn't appear in the drop down menu. Any ideas please? Thank you.

    I have a new computer with Windows 7 professional, Office 2007, Adobe XI. I have just created a word document and tried save it as a PDF but the PDF option doesn't appear in the drop down menu. Any ideas please? Thank you.

    What is "Adobe XI" - Reader, or Acrobat?
    But either way, 'Save as Adobe PDF' is a Word function, independent of what Adobe software you have installed.

  • Create a word document with TOC, table,etc

    Hi,
    How to create a word document with Table of content(TOC),header, footer, table, etc?
    Help me with any APIs or examples. I have already tried with POI API, but couldnt create TOC.. So any other api or any solution is available to create complex word document.
    Thank you

    Hi BIJ001,
    Thanks for your valuable suggestion.
    Open standards WordprocessingML format is supports by Microsoft word. It is typical xml format of designing word document. But creating document with TOC,tables, different styles of paragraphs are complex. Using this format, i have created simple docs. I never tried with complex formats like TOC. The generating File should be in ".doc or .docx" format only.
    Hi gimbal2,
    I am parallely looking to find solution in OpenOffice format also. But i never try out ".docx" file format. I will try to look out this option.
    Thanks for the input.
    Edited by: user13735134 on May 24, 2011 6:55 AM

  • I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers.

    I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers. Any ideas?

    version 10.6.8

  • I've created a Word document from a pdf file. How do i make it editable?

    I've created a Word document from a pdf file. How do i make it editable?

    Hi Kaz1,
    The Word document should be editable after the conversion is complete.  What happens when you try to edit it?
    Thanks,
    David

  • Writing to word document using java

    hi,
    i want to retrieve the values from database and then write to .doc file. how can i write to a word document using java?
    thanks in advance

    Google for "java write to word file"
    and behold the magic results

  • Create Excel/Word Files on UNIX ?

    Hello Everyone,
    What are my options (including products) for creating Excel/Word files on UNIX/Linux (no OLE) using ABAP ?
    Thank you

    I did some asking around outside the forum
    and I was told there were plenty of ways to create Excel, Word, PDF files etc. any where using various functions in ABAP.
    The reason I'm asking is that I recently wrote a project for generating .DOCX and .XLSX (OpenXML) files directly (without using MS Office or Open Office etc.) on a different platform
    and I was thinking of writing a similar Open Source project in ABAP as a pet project.
    The way you would use it is visually design the Excel or Word file in Office and sort of mail merge the data in 1 or 2 commands in ABAP.
    It works everywhere without Office and on any OS, and is literally 100x times faster then ACTIVEX/OLE.
    So ... does anyone actually have a definitive answer ??
    Thank you.
    Edited by: Alon Blich on Jun 23, 2010 9:05 PM

  • Api POI read and replace my word document with java

    Hi
    Everyone
    I�d like to know if someone has a piece of code reading a word document with api POI to send me?
    I need read replace the word document wiht java j2ee.
    Thanks

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

  • Reading Microsoft Word Document in JAVA

    Hi friends,
    im using follwing code to read word document in java using apache poi package..
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hwpf.*;
    import org.apache.poi.hwpf.extractor.*;
    import java.io.*;
    public class readDoc
    public static void main( String[] args )
    String filesname = "Hello.doc";
    POIFSFileSystem fs = null;
    try
    fs = new POIFSFileSystem(new FileInputStream(filesname;
    //Couldn't close the braces at the end as my site did not allow it to close
    HWPFDocument doc = new HWPFDocument(fs);
    WordExtractor we = new WordExtractor(doc);
    String[] paragraphs = we.getParagraphText();
    System.out.println( "Word Document has " + paragraphs.length + " paragraphs" );
    for( int i=0; i<paragraphs .length; i++ ) {
    paragraphs[i] = paragraphs.replaceAll("\\cM?\r?\n","");
    System.out.println( "Length:"+paragraphs[ i ].length());
    catch(Exception e) {
    e.printStackTrace();
    but im getting exception that
    java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 bytes
    at org.apache.poi.poifs.storage.HeaderBlockReader.<in it>(HeaderBlockReader.java:78)
    at org.apache.poi.poifs.filesystem.POIFSFileSystem.<i nit>(POIFSFileSystem.java:83)
    how to solve this issue.. please suggest me .. its urgent..
    Add to satheeshtech's Reputation

    You might do better consulting [http://www.nabble.com/Apache-POI-f298.html|http://www.nabble.com/Apache-POI-f298.html] .

  • What's the best app I could use to create a word document

    What's the best app I could use to create a word document ?

    Have a look at the following (in my order of preference)
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1

Maybe you are looking for

  • Embedded Video in PDF

    Hi, I have window desktop application develop in Visual Studio.NET 2010 (C#.NET). The video is saved in *.MP4 or *.AVI format with high definition. The desktop application record the Live Web Cam Video, as soon the video is saved in need to export th

  • Issue Using both Firewire Ports on 24" iMac

    I just got a new 24" iMac with the 3.06 processor. I intend to use it with Pro Tools and other music making software. I have an audio interface that is firewire only and an external hard drive (where I store my audio files) that is both firewire and

  • HT1222 Can someone help me use the new iTunes 11?

    I can't seem to figure out how to move songs onto my iPhone.

  • How to change date format

    Can anyone help me with this, Please? I have a form with start date and end date and the date format I am getting is YYYY-MM-DD. But I would like to change it to MM-DD-YYYY format. How do I achieve this?? When I went to JFPREAMBLE_1, i see it reads:

  • Clearing Script

    I have a project that is loading 8 different RSS feeds and is populated using various buttons. I have it loading one RSS feed in the frame 1 and populating several information blocks loaded with an external .as file. When I have a button that sends t