Bonjour,
j'ai un souci de mise en forme des header sur des entêtes de colonnes.
Je n'arrive pas à mettre à blanc les entêes de 0 à 9 :
Voici mon code :
J'ai cherché sur le forum du code qui puisse m'aider mais je n'ai pas trouvé.
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55 data tab_nps ; magasin ="1" ; NQ_7="215" ; RM_DET="13%"; RM_NEU="71%"; RM_PRM= "16%"; RM_NPS = "3"; RM_NPS_MP = "3"; RM_NPS_E = "="; CHAINE = "4"; item="Recommandation" ; output ; run ; ODS HTML FILE="&basedir.\sorties\test_fiches_magasin.xls" style=sasweb; Title "Fiche magasin" ; proc report data=tab_nps (where=(magasin= "1")) nowd split="@" style(report)=[cellspacing=0 background=white bordercolor =black FRAME=VOID] style(header)=[just=c vjust=c fontsize=11pt background=#FF0066 FOREGROUND = WHITE ] style(column) =[bordercolor = black] ; column ("0" "5" item ) ("1" "6" NQ_7 ) ("2" "7" RM_DET ) ("3" "8" RM_NEU ) ("4" "9" RM_PRM ) ("Net Promoteur Score (NPS)" "(% Promoteurs - % Détracteurs)" RM_NPS RM_NPS_MP RM_NPS_E CHAINE ) ; define item / display "item" style(column)=[background=WHITE foreground=#FF0066 just=c vjust=c fontsize=10pt font_weight=bold] style(header)=[background=WHITE foreground=WHITE ]; define NQ_7 / display "N" style(column)=[background=WHITE just=c vjust=c fontsize=10pt ] style(header)=[background=WHITE foreground=white]; define RM_DET / display "Détracteurs" style(column)=[background=#FF0000 foreground=black font_weight =bold just=c vjust=c fontsize=10pt ] style(header)=[background=WHITE foreground=BLACK]; define RM_NEU / display "Neutres" style(column)=[background=#D9D9D9 foreground=black font_weight =bold just=c vjust=c fontsize=10pt ] style(header)=[background=WHITE foreground=BLACK]; define RM_PRM / display "Promoteurs" style(column)=[background=GreenYellow foreground=black font_weight =bold just=c vjust=c fontsize=10pt ] style(header)=[background=WHITE foreground=BLACK]; define RM_NPS / display /*"NPS Score"*/"V" style(column)=[background=WHITE just=c vjust=c fontsize=12pt ] style(header)=[bordercolor=black] ; define RM_NPS_MP / display "V-1"/*"Rappel Score V-1"*/ style(column)=[background=WHITE just=c vjust=c fontsize=10pt ] style(header)=[bordercolor=black]; define RM_NPS_E / display "Evol." style(column)=[background=WHITE just=c vjust=c fontsize=10pt ] style(header)=[bordercolor=black]; define CHAINE / display "Chaîne" style(column)=[background=WHITE just=c vjust=c fontsize=10pt ] style(header)=[bordercolor=black]; run ; title ; ods html close ;
Merci.
Partager