Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Création d'un fichier RTF

2 réponses
Avatar
Patrick
Bonjour,

Je crée un fichier au format RTF en VB en utilisant les "balises" que j'ai
pu comprendre en ouvant un autre fichier RTF avec Notepad. Mais je n'arrive
pas à spécifier la taille du papier (lettre ou légal) ni les marges du
document.

Savez-vous comment faire ?

Merci pour votre aide.

--
Patrick

2 réponses

Avatar
François Picalausa
On Oct 4, 3:43 pm, Patrick wrote:
Bonjour,

Je crée un fichier au format RTF en VB en utilisant les "balises" que j 'ai
pu comprendre en ouvant un autre fichier RTF avec Notepad. Mais je n'arri ve
pas à spécifier la taille du papier (lettre ou légal) ni les marges du
document.

Savez-vous comment faire ?



Hello,

Dans la spécification de RTF 1.9, page 51, on peut lire ceci:
<quote src="http://www.microsoft.com/downloads/details.aspx?
FamilyIdÝ422B8D-FF06-4207-B476-6B5396A18A2B&displaylang=en">
Page Information
paperwN Paper width in twips (the default is 12,240).
paperhN Paper height in twips (the default is 15,840).
pszN Used to differentiate between paper sizes with identical
dimensions in Microsoft Windows NT®. Values 1 through 41 correspond to
paper sizes defined in DRIVINI.H in the Windows 3.1 SDK (DMPAPER_
values). Values greater than or equal to 42 correspond to user-defined
forms in Windows NT.
marglN Left margin in twips (the default is 1800).
margrN Right margin in twips (the default is 1800).
margtN Top margin in twips (the default is 1440).
margbN Bottom margin in twips (the default is 1440).
</quote>

Je n'ai personellement jamais travaillé avec cette partie de la spec,
mais en lisant le document de référence, je suis certain que tu pourra
déterminer exactement comment utiliser ces informations.

François Picalausa
Avatar
Patrick
Merci beaucoup. Je vais regarder cela.

--
Patrick


"François Picalausa" wrote:

On Oct 4, 3:43 pm, Patrick wrote:
> Bonjour,
>
> Je crée un fichier au format RTF en VB en utilisant les "balises" que j'ai
> pu comprendre en ouvant un autre fichier RTF avec Notepad. Mais je n'arrive
> pas à spécifier la taille du papier (lettre ou légal) ni les marges du
> document.
>
> Savez-vous comment faire ?

Hello,

Dans la spécification de RTF 1.9, page 51, on peut lire ceci:
<quote src="http://www.microsoft.com/downloads/details.aspx?
FamilyIdÝ422B8D-FF06-4207-B476-6B5396A18A2B&displaylang=en">
Page Information
paperwN Paper width in twips (the default is 12,240).
paperhN Paper height in twips (the default is 15,840).
pszN Used to differentiate between paper sizes with identical
dimensions in Microsoft Windows NT®. Values 1 through 41 correspond to
paper sizes defined in DRIVINI.H in the Windows 3.1 SDK (DMPAPER_
values). Values greater than or equal to 42 correspond to user-defined
forms in Windows NT.
marglN Left margin in twips (the default is 1800).
margrN Right margin in twips (the default is 1800).
margtN Top margin in twips (the default is 1440).
margbN Bottom margin in twips (the default is 1440).
</quote>

Je n'ai personellement jamais travaillé avec cette partie de la spec,
mais en lisant le document de référence, je suis certain que tu pourra
déterminer exactement comment utiliser ces informations.

François Picalausa