6 messages in org.openoffice.fr.prog[prog] Réf. : Re: [prog] VBscript: sa...
FromSent OnAttachments
yannick privateApr 28, 2004 6:02 am 
Laurent GodardApr 28, 2004 6:21 am 
yannick privateApr 28, 2004 6:50 am 
yannick privateApr 28, 2004 7:07 am 
Alexandre MILLOTApr 28, 2004 7:30 am.gif
yannick privateApr 29, 2004 12:21 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:[prog] Réf. : Re: [prog] VBscript: saut de pageActions...
From:Alexandre MILLOT (alex@mistral.fr)
Date:Apr 28, 2004 7:30:43 am
List:org.openoffice.fr.prog
Attachments:

Bonjour, moi j'utilise le code suivant dans un document writer et cela fonctionne parfaitement

'------------------------------------------------ '---- Insérer un saut de page dans un document '------------------------------------------------- Sub InsertPageBreak( oCursor ) oText = oCursor.getText() oText.insertControlCharacter( oCursor, com.sun.star.text.ControlCharacter PARAGRAPH_BREAK, False ) oCursor.BreakType = com.sun.star.style.BreakType.PAGE_BEFORE End Sub

Amicalement Alexandre

-------Message original-------

De : pr@fr.openoffice.org Date : 04/28/04 16:22:27 A : pr@fr.openoffice.org Sujet : Re: [prog] VBscript: saut de page

j'ai aussi essayé avec la constante vbFormFeed (dont la valeur est Chr(12) ) qui permet de faire un saut de page, en faisant:

objCursor.BreakType = vbFormFeed ( et aussi objCursor.BreakType = Chr(12) )

et j'ai une erreur du type:

Type incompatible: 'objCursor.BreakType'

je comprend pas...

Yannick

From: Laurent Godard <list@wanadoo.fr>

Reply-To: pr@fr.openoffice.org To: pr@fr.openoffice.org Subject: Re: [prog] VBscript: saut de page Date: Wed, 28 Apr 2004 15:22:12 +0200

Bonjour Yannick,

'Create a cursor object Set objCursor= objText.createTextCursor

'Inserting some Text objText.insertString objCursor, "The first line in the newly created

text document." & vbLf, false

ça fait pas mal d'heures que je suis dessus et j'y arrive vraiment pas...donc si vous avez une idée permettant d'obtenir ce saut de page (ou un équivalent du genre: ce mettre à la fin du document courant avec le curseur et faire Entrée...).

Regarde du coté de fusionnedocument http://fr.openofficE.org/Documentation/Macros/indexmac.html writer 08 - FusionDocument Macro permettant de fusionner les documents dans un seul fichier lors d'un mailing

tu devrais avoit tout ce qu'il te faut