Results 1 to 3 of 3
  1. #1
    simon is offline Member
    Join Date
    Jul 2007
    Posts
    44
    Rep Power
    0

    Default How can I generate MsWord from java?

    how can I generate Ms-Word from java?? I want to paste information from my Java program to Ms-Word directly. Do you have tutorials samples or something that could help me?
    thank you

  2. #2
    karl is offline Member
    Join Date
    Jul 2007
    Posts
    4
    Rep Power
    0

    Default This is pretty simple

    Okay first of all do u need to enter data into a .doc document or u want it in excel format . well just google it up .. all you need to create is a file where you want to store this data. Then using
    String tempfilepathnameDA = "D:\\........doc";
    File tempDA = new File(tempfilepathnameDA);
    FileWriter fwDA = new FileWriter(tempDA);

    String source= "here goes your website address";
    now connect to the website
    URL url = new URL (source);
    http.... and all that jazz
    line = rd.readLine();
    then start reading and simultaneously enter into doc file
    fwDA.write(line+ ",");

  3. #3
    simon is offline Member
    Join Date
    Jul 2007
    Posts
    44
    Rep Power
    0

Similar Threads

  1. Generate an event to another java application
    By i_berbeu in forum Advanced Java
    Replies: 18
    Last Post: 05-12-2008, 02:57 PM
  2. Generate XML request from web form
    By sabatier in forum XML
    Replies: 1
    Last Post: 08-09-2007, 08:53 PM
  3. how to generate dynamic pdf
    By valery in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 11:01 PM
  4. how to generate xml with Dom4j
    By leonard in forum XML
    Replies: 1
    Last Post: 08-06-2007, 05:39 PM
  5. How to generate random number in java
    By fernando in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 08:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •