IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ODS et reporting Discussion :

sortie graphique en rtf avec ods


Sujet :

ODS et reporting

  1. #1
    Membre chevronné
    Homme Profil pro
    Biostatisticien
    Inscrit en
    Juin 2009
    Messages
    1 206
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Irlande

    Informations professionnelles :
    Activité : Biostatisticien
    Secteur : Industrie Pharmaceutique

    Informations forums :
    Inscription : Juin 2009
    Messages : 1 206
    Points : 1 868
    Points
    1 868
    Par défaut sortie graphique en rtf avec ods
    Bonjour,

    Voila, j'utilise ods rtf (et pdf) pour créer une sortie graphique dans un fichier. l'exportation pdf se passe sans soucis. par contre j'ai des soucis avec rtf, l'affichage n'est pas correct. je n'ai pas vu de bug reporté dans l'aide en ligne SAS.

    mon code est:


    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
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    %macro fig1(inlabtest=,
    						outlabtest=,
    						order1=,
    						order2=,
    						order3=);
     
    goptions/* reset=global device=bmp gsfname=grafout gsfmode=replace rotate=landscape ftext=swiss ftitle=swiss htitle=1.0
    htext=1.0 cback=white noborder*/;	
     
     
     title1 "&title1";
     footnote h=0.8 j=l "&path.\FIG1.sas  (&sysdate9)";
     symbol1 i=join color=blue v=triangle l=1 h=1.5;
     symbol2 i=join color=brown v=star l=1 h=1.5;
     symbol3 i=join color=red v=diamond l=1 h=1.5;
     symbol4 i=join color=black v=square l=1 h=1.5;
     symbol5 i=join color=orange v=circle l=1 h=1.5;
     symbol6 i=join color=grey v=dot l=1 h=1.5;
     symbol7 i=join color=green v=plus l=1 h=1.5;
     symbol8 i=join color=charcoal v=x l=1 h=1.5;
     symbol9 i=join color=cream v=hash l=1 h=1.5;
     symbol10 i=join color=cyan v=y l=1 h=1.5;
     symbol11 i=join color=olive v=z l=1 h=1.5;
     symbol12 i=join color=purple v=# l=1 h=1.5;
     symbol13 i=join color=magenta v=$ l=1 h=1.5;
     axis1  label=("Visit") minor=none major=none value=(height=0.8) order=(1 to 7 by 1);
     axis2  label=(angle=90 "&outlabtest.") value=(height=0.8) order=(&order1.);
     
    legend1 label=(justify=c '')
    	value=(tick=1 justify=c 'Pt 0101'
    		   tick=2 justify=c 'Pt 0104'
    		   tick=3 justify=c 'Pt 0203'
    		   tick=4 justify=c 'Pt 0303'
    		   tick=5 justify=c 'Pt 0305'
    		   tick=6 justify=c 'Pt 0702'
    		   tick=7 justify=c 'Pt 0801'
    		   tick=8 justify=c 'Pt 0803'
    		   tick=9 justify=c 'Pt 0902'
    		   tick=10 justify=c 'Pt 0905'
    		   tick=11 justify=c 'Pt 1102'
    		   tick=12 justify=c 'Pt 0401')
        cborder=black position=(bottom center outside);
     
    proc gplot data=LAB3(where=(GRP=1 and REP2 IN ("&inlabtest.")));
     plot LABRESI2*VISITNUM=PATNUM / legend=legend1 haxis=axis1 vaxis=axis2;
     title3 "Figure 1: &outlabtest. : Plots of raw data over time per subject, placebo group";
    run;
    quit;
     
     
    %mend fig1;
     
     
    options nodate nonumber orientation=landscape;
    ods listing close;
    ods escapechar='^';
    ods pdf file = "&path1.\FIG1.pdf" ;
    ods rtf file = "&path1.\FIG1.rtf" ;
     
    %fig1(inlabtest=Basophils,
    						outlabtest=Basophils,
    						order1=0 to 0.3 by 0.05,
    						order2=0 to 0.3 by 0.05,
    						order3=0 to 0.3 by 0.05);
     
    %fig1(inlabtest=Eosinophils,
    						outlabtest=Eosinophils,
    						order1=0 to 2.5 by 0.25,
    						order2=0 to 1.5 by 0.25,
    						order3=0 to 1.5 by 0.25);
     
    ods rtf close;
    ods pdf close;
    ods listing;

    Quelqu'un a-t-il déjà rencontré ce genre de problème?

  2. #2
    Membre habitué
    Profil pro
    Consultant en Business Intelligence
    Inscrit en
    Mars 2009
    Messages
    59
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Consultant en Business Intelligence
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2009
    Messages : 59
    Points : 185
    Points
    185
    Par défaut
    Quand tu dis que l'image n'est pas correcte, tu entends quoi exactement par cela ?

    L'image est non incluse dans ton rapport ou c'est autre chose ?

  3. #3
    Membre chevronné
    Homme Profil pro
    Biostatisticien
    Inscrit en
    Juin 2009
    Messages
    1 206
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Irlande

    Informations professionnelles :
    Activité : Biostatisticien
    Secteur : Industrie Pharmaceutique

    Informations forums :
    Inscription : Juin 2009
    Messages : 1 206
    Points : 1 868
    Points
    1 868
    Par défaut
    j'ai bien deux sorties, une pdf, et une rtf, mais elles diffèrent en terme d'apparence: le graph rtf est plus écrasé, la légende déconne..

    J'ai trouvé la parade, en fait. il faut utiliser les options suivantes pour le rtf

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    ods rtf file="&location\test_RTF.RTF";
    goptions reset   = goptions 
             device  = PNG
    target  = PNG 
    xmax    = 9 IN 
    ymax    = 6.5 IN 
    ftext   = 'Arial' 
    ftitle  = 'Arial/bo';


    Manoutz

Discussions similaires

  1. options sortie en lecture seule avec ods tagsets
    Par servane dans le forum ODS et reporting
    Réponses: 6
    Dernier message: 27/05/2011, 07h40
  2. Graphique qui disparaît avec ODS ESCAPECHAR et ODS PDF
    Par olivier.decourt dans le forum ODS et reporting
    Réponses: 5
    Dernier message: 19/05/2011, 16h09
  3. [ODS RTF] avec des graphiques (gplot et gchart)
    Par hammamr dans le forum ODS et reporting
    Réponses: 1
    Dernier message: 19/01/2011, 16h53
  4. Réponses: 4
    Dernier message: 28/07/2010, 16h33
  5. [Carbon] OpenGL en Fullscreen avec choix sortie graphique
    Par NiamorH dans le forum Développement OS X
    Réponses: 8
    Dernier message: 22/03/2007, 09h45

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo