Le 30/06/2020 à 19:24, Bernard Siaud alias Troumad a écrit :
Bonsoir
Et pour afficher ou non l'image de fond, je créerais 2 styles de 
page, l'un avec, l'autre non. Et en un clic tu passes de l'un à 
l'autre.
Bonne idée. Il va juste falloir automatiser par un bouton (checkbox 
par exemple) le choix du style.
j'ai fait une petite macro pour changer le style des deux pages si 
j'appuie sur un bouton :
Sub affect_Style
 if (ThisComponent.Sheets.getByName("verso").PageStyle="Default") then
     ThisComponent.Sheets.getByName("verso").PageStyle="Fond"
     ThisComponent.Sheets.getByName("recto").PageStyle="Fond"
ThisComponent.Sheets.getByName("recto").getCellByPosition(28,6).String="avec 
Fond"
 else
     ThisComponent.Sheets.getByName("verso").PageStyle="Default"
     ThisComponent.Sheets.getByName("recto").PageStyle="Default"
ThisComponent.Sheets.getByName("recto").getCellByPosition(28,6).String="sans 
Fond"
 endif
End Sub
Il me reste plus qu'à trouver une astuce pour faire imprimer les deux 
premières pages uniquement, ou tout ce qui est dans des zones 
d'impressions.
j'arrive à faire imprimer une page avec un bouton  ( le document est 
toujours ici : http://troumad.org/OOo/Feuille_Chronique.ods ). Il va 
falloir que je trouve pour faire imprimer deux pages et en mode 
recto-verso !
--
Amicalement vOOotre              Troumad Alias Bernard SIAUD
mon site : http://troumad.org : AD&D maths WEB...
Pour la liberté http://www.developpez.net/forums/f17/systemes/linux/ 
N'envoyez que des documents avec des formats ouverts, comme 
http://fr.libreoffice.org
--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy
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.