Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Le samedi 03 septembre 2011 à 18:25 +0200, andriant.sandy a écrit :
Le 03/09/2011 18:08, Virgule a écrit :
Bonjour,

voilà j'ai un petit soucis avec des checkbox:

Dans un dialogue j'ai mis 2 checkbox afin d'imprimer deux pages distincts
d'un document calc bien définies pas la commande "Zone d'impression".

A chaque chekbox est ajoutée un macro comme cela :

valeurCheckBox1 = Dlg.getControl("CheckBox1")
valeurCheckBox2 = Dlg.getControl("CheckBox2")

    
If (valeurCheckBox1.State = 1) Then
             Print1
            
If (valeurCheckBox2.State = 1) Then
            Print2
End If

Mais si je coche les 2 checkbox je n'ai que la première feuille qui
s'imprime.

Je suggère:
If (valeurCheckBox1.State = 1)
Then Print1
End if
If (valeurCheckBox2.State = 1)
Then Print2
End if
jmb


-- 
Envoyez un mail à users+help@fr.libreoffice.org pour savoir comment vous désinscrire
Les archives de la liste sont disponibles à http://listarchives.libreoffice.org/fr/users/
Tous les messages envoyés sur cette liste seront archivés publiquement et ne pourront pas être 
supprimés

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.