Bonjour,

J'ai un problème tout simple que je n'arrive pas à régler.
Lors de l'édition de rapport en ODS RTF, une ligne blanche supplémentaire entre le titre et la table apparait systématiquement sur la première page, mais pas sur les suivantes, sans que je ne sache pourquoi.

Voici un code simplifié qui permet d'identifier le problème.
Merci par avance.

Erwan

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ods escapechar='^';
ods rtf file="test.rtf" 
notoc_data nogtitle nogfootnote WORDSTYLE='(\h1 Title \s1 Heading 1 \s2 Heading 2 \s3 Heading 3 \s4 Heading 4 \s5 Heading 5 \s6 Heading 6 \date Standard)';
 
ods rtf text = "^S={protectspecialchars=off}{\pard\s1\qc{Titre Page 1}\par}"; 
 
proc report data = sashelp.failure(where = (day eq 17958)) nowd split='@'; 
column cause process count day;
define cause /  display width=10  style(header)={just=center} style(column)={cellwidth=7 cm verticalalign = bottom  just=left};
define process / display width=10  style(header)={just=center} style(column)={cellwidth=3.0cm verticalalign = bottom just=center};
define count / display width=10  style(header)={just=center} style(column)={cellwidth=3.0cm verticalalign = bottom just=center};
define day / display width=10  style(header)={just=center} style(column)={cellwidth=4.5cm verticalalign = bottom just=center};
quit;
 
ods rtf startpage = NOW;
ods rtf text = "^S={protectspecialchars=off}{\pard\qc{Titre Page 2}\par}"; 
 
proc report data = sashelp.loc nowd split='@'; 
column num text;
define num /  display width=10  style(header)={just=center} style(column)={cellwidth=7 cm verticalalign = bottom  just=left};
define text / display width=10  style(header)={just=center} style(column)={cellwidth=3.0cm verticalalign = bottom just=center};
quit;
 
ods rtf startpage = NOW;
ods rtf text = "^S={protectspecialchars=off}{\pard\qc{Titre Page 3}\par}"; 
 
proc report data = sashelp.omaverb nowd split='@'; 
column CLASNAME ID VERB;
define CLASNAME /  display width=10  style(header)={just=center} style(column)={cellwidth=4 cm verticalalign = bottom  just=left};
define ID / display width=10  style(header)={just=center} style(column)={cellwidth=6.0cm verticalalign = bottom just=center};
define VERB / display width=10  style(header)={just=center} style(column)={cellwidth=6.0cm verticalalign = bottom just=center};
quit;
 
ods rtf close;