3 messages in org.openoffice.fr.progRe: [prog] comment cacher le nom de l...
FromSent OnAttachments
Sebastien RemyMay 19, 2006 5:03 am 
Francois GattoMay 19, 2006 1:31 pm 
Sebastien RemyMay 22, 2006 12:49 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] comment cacher le nom de la feuille exportée ?Actions...
From:Francois Gatto (oo@volcar.org)
Date:May 19, 2006 1:31:44 pm
List:org.openoffice.fr.prog

Bonsoir,

Sebastien Remy a écrit :

Bonjour à tous, Je cherche à savoir comment masquer le nom des feuilles de classeur (sous openoffice) exportées en pdf. En effet, leur nom s'affiche en haut des documents pdf !!! Merci d'avance...

Une proposition ...

Sub SheetInPdf() Dim args(0) as new com.sun.star.beans.PropertyValue

oDoc = ThisComponent oSheets = oDoc.Sheets oSheet = oSheets.getByIndex(0) styleFam = oDoc.StyleFamilies stylePageStd = styleFam.getByIndex(1).getByIndex(0)

'cacher entete et pied de page With stylePageStd .HeaderIsOn = False .FooterIsOn = False End With

'cacher feuilles inutiles (ici on ne garde que la Feuille1) For i=1 to oSheets.Count-1 oSheet = oSheets.getByIndex(i) oSheet.IsVisible = False Next

args(0).Name = "FilterName" args(0).Value = "calc_pdf_Export" destination = "file:///home/francois/calctopdf.pdf" oDoc.storeToURL(destination,args()) End Sub