Récupère les caractéristiques de l'imprimante en cours ou de l'imprimante par défaut.
// Récupération des caractéristiques de l'imprimante en cours
ImprimanteEnCours est une chaîne = iInfoImprimante()
// Récupération des caractéristiques de l'imprimante par défaut
ImprimanteDéfaut est une chaîne = iInfoImprimante(Faux)
// Affichage d'une boîte d'information
Info("L'imprimante en cours est : " + ImprimanteEnCours + RC + ...
"L'imprimante par défaut est : " + ImprimanteDéfaut)
Syntaxe
<Résultat> = iInfoImprimante([<Imprimante en cours> [, <Type d'information>]])
<Résultat> : Chaîne de caractères
Informations demandées.
<Imprimante en cours> : Booléen optionnel
- Vrai (valeur par défaut) pour obtenir des informations sur l'imprimante en cours,
- Faux pour obtenir des informations sur l'imprimante par défaut.
<Type d'information> : Constante optionnelle de type entier
Type d'information à récupérer. | |
iNomDriver | Nom du driver |
iNomImprimante (valeur par défaut) | Nom de l'imprimante |
iNomPort | Nom du port d'impression utilisé |
Composante : wd280prn.dll