cs_neodante
Messages postés2835Date d'inscriptionlundi 11 août 2003StatutModérateurDernière intervention16 décembre 200611 24 oct. 2003 à 19:31
:big) Neodante :big)
JAVA / Microsoft -> euh ... ca va pas ensemble pas marcher ensemble !
Lancer un fichier Word pourquoi pas mais d'ici là l'afficher ça me semble un peu compromis ! ;-)
Mais peut être qu'il existe une classe qui fait cela !
Sinon essaye avec les fonctions win avec un JNI ! :-p
@+
cs_Dobel
Messages postés333Date d'inscriptiondimanche 25 mai 2003StatutMembreDernière intervention23 novembre 20091 25 oct. 2003 à 11:40
Pour l'instant, ya pas grand chose !!!!
mais surveille http://jakarta.apache.org/poi/index.html le composant HWPF est toujours en début de développement mais peut-être que bientôt...
tominfo
Messages postés93Date d'inscriptionsamedi 17 mai 2003StatutMembreDernière intervention30 janvier 2009 26 oct. 2003 à 12:13
De façon externe (avec Office XP sur Windows XP)
public class Word {
/** Creates a new instance of Word */
public Word() {
try {
Process pr=Runtime.getRuntime().exec(""C:\\Program Files\\Microsoft Office\\Office10\\WINWORD.exe" "C:\\Documents and Settings\\tom\\Mes documents\\fichier.doc"");
}catch(IOException e) {
System.out.println("erreur fichier "+e.toString());
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
new Word();
}