Donnez vie à vos documents numériques !
 

Répondre à : Bouton imprimer qui ne fonctionne pas

abracadabraPDF Forums PDF – Général Bouton imprimer qui ne fonctionne pas Répondre à : Bouton imprimer qui ne fonctionne pas

#60519
Merlin
Maître des clés

Bonjour et bienvenue.

C’est parce-que la fonction Initialisation() que tu appelles n’a pas été déclarée avant d’être appelée.
Mais comme apparemment elle ne sert à rien le mieux est de la supprimer.

Code:
console.clear();
console.println(“Contrôle de l’imprimante utilisée:”)
var ppp=this.getPrintParams();
ppp.interactive = ppp.constants.interactionLevel.full;
console.println(“Nom de l’imprimante effectivement utilisée:””+ppp.printerName+”””);
indexcase=0;
console.show();
//app.alert(indexcase);
while (indexcase<4)
{
//app.alert(indexcase);
if(this.getField(“ccpage.”+indexcase).isBoxChecked(0))
{
if (indexcase === 0) {
//app.alert(“indexcase = 0”);
            this.print(true, 2, 2);
            this.print(true, 2, 3);
        }
if (indexcase === 1) {
            this.print(true, 5, 5);
            this.print(true, 2, 3);
}
if (indexcase === 2) {
            this.print(true, 6, 6);
            this.print(true, 2, 3);
}
if (indexcase === 3) {
            this.print(true, 4, 4);
            this.print(true, 2, 3);
}
}
indexcase++;
}
app.alert(“Impressions terminées”);
//console.show();