Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1361 connectés 

  FORUM HardWare.fr
  Programmation

  [Java] PrinterJob

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Java] PrinterJob

n°100170
archangel
Un homme Une vision
Posté le 14-02-2002 à 10:21:18  profilanswer
 

Salut,
 
La classe PrinterJob dispose d'une méthode printDialog qui permet à un utilisateur de sélectionner une imprimante.
 
Ce pendant j'aimerais pouvoir récupérer l'imprimante qui a été sélectionné mais je sais pas comment faire.  :??:  
 
Help please  :benetton:


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
mood
Publicité
Posté le 14-02-2002 à 10:21:18  profilanswer
 

n°100221
archangel
Un homme Une vision
Posté le 14-02-2002 à 11:25:10  profilanswer
 

[:tomilou]


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
n°100224
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 14-02-2002 à 11:31:50  profilanswer
 

archangel a écrit a écrit :

Salut,
 
La classe PrinterJob dispose d'une méthode printDialog qui permet à un utilisateur de sélectionner une imprimante.
 
Ce pendant j'aimerais pouvoir récupérer l'imprimante qui a été sélectionné mais je sais pas comment faire.  :??:  
 
Help please  :benetton:  




 
bin tu appelles ta méthode avec un PrinterJob non ?
 
printDialog
public abstract boolean printDialog()Presents a dialog to the user for changing the properties of the print job.
Returns:
true if the user does not cancel the dialog; false otherwise.
 
 
si ca retourne truc bin ton printerJob contient automatiquement l'imprimante sélectionnée. T'as plus qu'a appeller la méthode pour imprimer ;)
 
A+


---------------
What is popular is not always right, what is right is not always popular :D
n°100231
archangel
Un homme Une vision
Posté le 14-02-2002 à 11:38:07  profilanswer
 

darklord22 a écrit a écrit :

 
 
bin tu appelles ta méthode avec un PrinterJob non ?
 
printDialog
public abstract boolean printDialog()Presents a dialog to the user for changing the properties of the print job.
Returns:
true if the user does not cancel the dialog; false otherwise.
 
 
si ca retourne truc bin ton printerJob contient automatiquement l'imprimante sélectionnée. T'as plus qu'a appeller la méthode pour imprimer ;)
 
A+  




 
Oui mais moi la méthode pour imprimer je m'en moque. Tous ce que je veux c'est l'utilisateur sélectionne une imprimante puis récupérer le nom de l'imprimante pour pouvoir le passer au produit d'éditique qui se chargera de l'impression.
 
@+


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
n°100233
archangel
Un homme Une vision
Posté le 14-02-2002 à 11:38:44  profilanswer
 

J'oubliais de préciser que ça faisait du bien d'avoir une réponse  :)


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
n°100317
archangel
Un homme Une vision
Posté le 14-02-2002 à 14:02:53  profilanswer
 

[:tomilou]


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
n°100411
archangel
Un homme Une vision
Posté le 14-02-2002 à 16:10:03  profilanswer
 

[:tomilou]  
 
Voilà dernier up après je vous embète plus  :(


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
n°100442
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 14-02-2002 à 17:02:14  profilanswer
 

tu as essayé de faire un getUserName() dessus pour voir ce qu'il crache?


---------------
What is popular is not always right, what is right is not always popular :D
n°100449
archangel
Un homme Une vision
Posté le 14-02-2002 à 17:19:46  profilanswer
 

darklord22 a écrit a écrit :

tu as essayé de faire un getUserName() dessus pour voir ce qu'il crache?  




 
Oui il me renvoie mon login NT, j'ai déjà essayé tous les get. Je pensais pê que qqn connaissais un autre objet qui aurait pu me permettre de trouver l'info.
 
Bon tant pis  :(


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
n°100450
archangel
Un homme Une vision
Posté le 14-02-2002 à 17:20:17  profilanswer
 

Au fait merci pour ton aide  :)


---------------
J'suis timide - Prêt à mourir, mais pas à vivre - Je suis vraiement très fatigué ... - more than meets the eye
mood
Publicité
Posté le 14-02-2002 à 17:20:17  profilanswer
 

n°100476
darklord22
Nightwish rulezzzzzzzzzzzzz
Posté le 14-02-2002 à 18:03:46  profilanswer
 

archangel a écrit a écrit :

Au fait merci pour ton aide  :)  




 
No problem. Reste à voir si c'est une info déterminable ou pas ...


---------------
What is popular is not always right, what is right is not always popular :D
n°100482
veryfree
Posté le 14-02-2002 à 18:07:57  profilanswer
 

archangel a écrit a écrit :

Au fait merci pour ton aide  :)  




c un up caché ca :D

 

[jfdsdjhfuetppo]--Message édité par veryfree--[/jfdsdjhfuetppo]


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [Java] PrinterJob

 

Sujets relatifs
[JAVA] et swing encore un qui a un projet à rendre !!!!Deplacement d'un objet graphique en Java
[JAVA] SpinEdit[JAVA] manipulation des fichiers .ico
[java] Questions de debutant...[JAVA] BufferedReader
[JAVA] System Tray[JAVA] Pb de calendrier
[Java] adresse IP[JAVA] Un soft pour creer un Jar avec seulement les classes utiles ?
Plus de sujets relatifs à : [Java] PrinterJob


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)