Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2007, 02:54 PM
Member
 
Join Date: Jul 2007
Posts: 44
simon is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-12-2007, 05:20 PM
Member
 
Join Date: Jul 2007
Posts: 4
karl is on a distinguished road
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+ ",");
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-01-2007, 05:40 PM
Member
 
Join Date: Jul 2007
Posts: 44
simon is on a distinguished road
thank you so much karl for your explanation
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +3. The time now is 02:19 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org