<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic sgrender graphs on RTF different than on HTML viewer in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgrender-graphs-on-RTF-different-than-on-HTML-viewer/m-p/400983#M19503</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I am generating a .rtf file with several pages. Among other Outputs there are graphics generated by the SGRENDER procedure (with modified templates) in this document. While developing the templates i always took a look in the HTML Viewer if they look how i want them to look. Once the result was satisfying i transfered the graphics in the RTF document. Following the difference in layout:&lt;/P&gt;&lt;P&gt;HTML Results Viewer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.PNG" style="width: 352px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15610i5721FED625AF4C97/image-dimensions/352x249?v=v2" width="352" height="249" role="button" title="pic1.PNG" alt="pic1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the RTF file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.PNG" style="width: 355px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15612i62272E5F2FEFBBCE/image-dimensions/355x250?v=v2" width="355" height="250" role="button" title="pic2.PNG" alt="pic2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see that the linesize is different.... not how i defined it in the template. HOW can i modify the underlying Options which cause different linesizes on RTF file?&lt;/P&gt;&lt;P&gt;- does it have sth. to do with rtf-tag sets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is some code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph temp_5_1;

[.... several definitions ... ]

     discretelegend 'bar_5_1' 'timeline_5_1'/  LOCATION= INSIDE HALIGN = RIGHT VALIGN = TOP ACROSS = 1 opaque=false ;     /* following is to determine which reference-lines to draw. */
     referenceline x=2 / lineattrs=(color=black pattern = Dash THICKNESS=7 )   /*curvelabel="normal DE"*/ CURVELABELLOCATION = OUTSIDE CURVELABELPOSITION = MAX  DISCRETEOFFSET=+0.5; 
     referenceline x=3 / lineattrs=(color=black pattern = Dash THICKNESS=2 )   curvelabel="°"             CURVELABELLOCATION = OUTSIDE CURVELABELPOSITION = MAX  DISCRETEOFFSET=+0.5; 
   endlayout;
   entryfootnote  halign=right textattrs=(weight=bold size=8pt)"°Countries performing extended data-entry in Argus.";
endgraph;
end;
run;

PROC TEMPLATE;                                                                
  DEFINE STYLE dummy;                                            
  PARENT = styles.rtf;
  STYLE body from document  /                                              
     protectspecialchars = off;

  STYLE table from output   /                                                           
     bordertopstyle = NONE                                                
     borderwidth    = 0.025cm                                                
     rules          = NONE                                                         
     frame          = VOID                                                         
     padding        = 0.1cm                                                      
     cellpadding    = 0cm
/*     width        = 100%   */
     textalign      = left;                                                  
  STYLE fonts /                                                           
     'FixedFont'            = ("Times New Roman",9pt,bold)                           
     'BatchFixedFont'       = ("Times New Roman",6.7pt,bold)                    
     'FixedHeadingFont'     = ("Times New Roman",9pt,bold)                    
     'FixedStrongFont'      = ("Times New Roman",9pt,bold)                     
     'FixedEmphasisFont'    = ("Times New Roman",9pt,bold)                   
     'footFont'             = ("Times New Roman",9pt)                                 
     'docFont'              = ("Times New Roman",9pt)                                  
     'headingFont'          = ("Times New Roman",9pt,bold)                         
     'headingEmphasisFont'  = ("Times New Roman",10pt,bold)                
     'EmphasisFont'         = ("Times New Roman",9pt,bold)                        
     'StrongFont'           = ("Times New Roman",9pt,bold)                          
     'TitleFont2'           = ("Times New Roman",9pt)                               
     'TitleFont'            = ("Times New Roman",9pt);                               
  STYLE color_list /                                                      
     'bg'   = white                                                         
     'fg'   = black                                                         
     'bgH'  = white                                                        
     'link' = blue;                                                       
  END;                                                                       
RUN;   


FILENAME rtfout "Name.rtf" LRECL = 100000;

ODS RESULTS = OFF;
/*ODS LISTING CLOSE;*/
ODS TAGSETS.rtfDS_CSPV_tag 
  FILE = rtfout 
  UNIFORM
/*  NOGTITLE*/
  NOGFOOTNOTE
  OPTIONS(TOC_DATA= "ON" CONTENTS = "YES" SECT= "NONE");
  OPTIONS NOQUOTELENMAX;

[viel viel code]

/*erzeugen der Grafik*/
ods graphics on / height=11cm;
proc sgrender data=WORK.LsoAf_grouped_s template=temp_5_1;
dynamic [....];
run;
ODS _ALL_ CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it's the part with the &lt;EM&gt;Dummy&lt;/EM&gt; template? How can i change the Option defining the line-styles of the graph?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Felix&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 13:59:01 GMT</pubDate>
    <dc:creator>Felix_</dc:creator>
    <dc:date>2017-10-04T13:59:01Z</dc:date>
    <item>
      <title>sgrender graphs on RTF different than on HTML viewer</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgrender-graphs-on-RTF-different-than-on-HTML-viewer/m-p/400983#M19503</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I am generating a .rtf file with several pages. Among other Outputs there are graphics generated by the SGRENDER procedure (with modified templates) in this document. While developing the templates i always took a look in the HTML Viewer if they look how i want them to look. Once the result was satisfying i transfered the graphics in the RTF document. Following the difference in layout:&lt;/P&gt;&lt;P&gt;HTML Results Viewer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.PNG" style="width: 352px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15610i5721FED625AF4C97/image-dimensions/352x249?v=v2" width="352" height="249" role="button" title="pic1.PNG" alt="pic1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the RTF file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.PNG" style="width: 355px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15612i62272E5F2FEFBBCE/image-dimensions/355x250?v=v2" width="355" height="250" role="button" title="pic2.PNG" alt="pic2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see that the linesize is different.... not how i defined it in the template. HOW can i modify the underlying Options which cause different linesizes on RTF file?&lt;/P&gt;&lt;P&gt;- does it have sth. to do with rtf-tag sets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is some code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph temp_5_1;

[.... several definitions ... ]

     discretelegend 'bar_5_1' 'timeline_5_1'/  LOCATION= INSIDE HALIGN = RIGHT VALIGN = TOP ACROSS = 1 opaque=false ;     /* following is to determine which reference-lines to draw. */
     referenceline x=2 / lineattrs=(color=black pattern = Dash THICKNESS=7 )   /*curvelabel="normal DE"*/ CURVELABELLOCATION = OUTSIDE CURVELABELPOSITION = MAX  DISCRETEOFFSET=+0.5; 
     referenceline x=3 / lineattrs=(color=black pattern = Dash THICKNESS=2 )   curvelabel="°"             CURVELABELLOCATION = OUTSIDE CURVELABELPOSITION = MAX  DISCRETEOFFSET=+0.5; 
   endlayout;
   entryfootnote  halign=right textattrs=(weight=bold size=8pt)"°Countries performing extended data-entry in Argus.";
endgraph;
end;
run;

PROC TEMPLATE;                                                                
  DEFINE STYLE dummy;                                            
  PARENT = styles.rtf;
  STYLE body from document  /                                              
     protectspecialchars = off;

  STYLE table from output   /                                                           
     bordertopstyle = NONE                                                
     borderwidth    = 0.025cm                                                
     rules          = NONE                                                         
     frame          = VOID                                                         
     padding        = 0.1cm                                                      
     cellpadding    = 0cm
/*     width        = 100%   */
     textalign      = left;                                                  
  STYLE fonts /                                                           
     'FixedFont'            = ("Times New Roman",9pt,bold)                           
     'BatchFixedFont'       = ("Times New Roman",6.7pt,bold)                    
     'FixedHeadingFont'     = ("Times New Roman",9pt,bold)                    
     'FixedStrongFont'      = ("Times New Roman",9pt,bold)                     
     'FixedEmphasisFont'    = ("Times New Roman",9pt,bold)                   
     'footFont'             = ("Times New Roman",9pt)                                 
     'docFont'              = ("Times New Roman",9pt)                                  
     'headingFont'          = ("Times New Roman",9pt,bold)                         
     'headingEmphasisFont'  = ("Times New Roman",10pt,bold)                
     'EmphasisFont'         = ("Times New Roman",9pt,bold)                        
     'StrongFont'           = ("Times New Roman",9pt,bold)                          
     'TitleFont2'           = ("Times New Roman",9pt)                               
     'TitleFont'            = ("Times New Roman",9pt);                               
  STYLE color_list /                                                      
     'bg'   = white                                                         
     'fg'   = black                                                         
     'bgH'  = white                                                        
     'link' = blue;                                                       
  END;                                                                       
RUN;   


FILENAME rtfout "Name.rtf" LRECL = 100000;

ODS RESULTS = OFF;
/*ODS LISTING CLOSE;*/
ODS TAGSETS.rtfDS_CSPV_tag 
  FILE = rtfout 
  UNIFORM
/*  NOGTITLE*/
  NOGFOOTNOTE
  OPTIONS(TOC_DATA= "ON" CONTENTS = "YES" SECT= "NONE");
  OPTIONS NOQUOTELENMAX;

[viel viel code]

/*erzeugen der Grafik*/
ods graphics on / height=11cm;
proc sgrender data=WORK.LsoAf_grouped_s template=temp_5_1;
dynamic [....];
run;
ODS _ALL_ CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it's the part with the &lt;EM&gt;Dummy&lt;/EM&gt; template? How can i change the Option defining the line-styles of the graph?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Felix&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 13:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgrender-graphs-on-RTF-different-than-on-HTML-viewer/m-p/400983#M19503</guid>
      <dc:creator>Felix_</dc:creator>
      <dc:date>2017-10-04T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: sgrender graphs on RTF different than on HTML viewer</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgrender-graphs-on-RTF-different-than-on-HTML-viewer/m-p/400999#M19506</link>
      <description>&lt;P&gt;I don't see anyplace in that code where you are specifying the use of the style dummy.&lt;/P&gt;
&lt;P&gt;By default each output destination defaults to a different style and without something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods html style=styles.dummy;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;ods tagsets.rtfDS_CSPV_tag style=styles.dummy;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the default ODS style for the destination will be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the line thickness attribute when a unit of measure is not used will default to different measures depending on ODS destination.&lt;/P&gt;
&lt;P&gt;You might try setting a unit like PT or cm for the line attribute so each destination has a chance of having the same thickness.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sgrender-graphs-on-RTF-different-than-on-HTML-viewer/m-p/400999#M19506</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-04T14:43:06Z</dc:date>
    </item>
  </channel>
</rss>

