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
Printable View
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
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+ ",");
thank you so much karl for your explanation