<?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 Export to excel with wrong font in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-to-excel-with-wrong-font/m-p/528973#M22224</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I run this code and the header font and size is correct.&lt;/P&gt;
&lt;P&gt;However, the body table has font is Arial with font_size 9.5 instead of Calibri 10.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run the proc registry and Calibri is listed on log file.&lt;/P&gt;
&lt;P&gt;proc registry &lt;BR /&gt; startat='core\printing\freetype\fonts'&lt;BR /&gt; list&lt;BR /&gt; levels=1&lt;BR /&gt; ;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me to fix it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much.&lt;/P&gt;
&lt;P&gt;HHCFX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods excel file="C:\Users\_temp\exp6.xlsx"   
                    options (sheet_interval = "none" sheet_name = "T7" );

	proc report data=T7_short nowd
	STYLE(Header)={background=charcoal foreground=white }		/*top row*/
     	style(header)={font_face="Times New Roman" font_size=11pt}
     	style(report)={font_face="Calibri" font_size=11pt};

		column project_code	Total_cost total_hour ;


		compute Total_cost;
		call define (_col_,"style","style={background=gray}");
			endcomp;

		compute total_hour;
		call define (_col_,"style","style={background=lightgray}");
			endcomp;

		run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jan 2019 04:10:05 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2019-01-22T04:10:05Z</dc:date>
    <item>
      <title>Export to excel with wrong font</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-to-excel-with-wrong-font/m-p/528973#M22224</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I run this code and the header font and size is correct.&lt;/P&gt;
&lt;P&gt;However, the body table has font is Arial with font_size 9.5 instead of Calibri 10.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run the proc registry and Calibri is listed on log file.&lt;/P&gt;
&lt;P&gt;proc registry &lt;BR /&gt; startat='core\printing\freetype\fonts'&lt;BR /&gt; list&lt;BR /&gt; levels=1&lt;BR /&gt; ;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me to fix it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much.&lt;/P&gt;
&lt;P&gt;HHCFX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods excel file="C:\Users\_temp\exp6.xlsx"   
                    options (sheet_interval = "none" sheet_name = "T7" );

	proc report data=T7_short nowd
	STYLE(Header)={background=charcoal foreground=white }		/*top row*/
     	style(header)={font_face="Times New Roman" font_size=11pt}
     	style(report)={font_face="Calibri" font_size=11pt};

		column project_code	Total_cost total_hour ;


		compute Total_cost;
		call define (_col_,"style","style={background=gray}");
			endcomp;

		compute total_hour;
		call define (_col_,"style","style={background=lightgray}");
			endcomp;

		run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 04:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-to-excel-with-wrong-font/m-p/528973#M22224</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2019-01-22T04:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with wrong font</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-to-excel-with-wrong-font/m-p/529070#M22225</link>
      <description>Hi:&lt;BR /&gt;  Style(report) will NOT change the data cells. Have you tried style(column) instead? You usually use style(report) for table level settings like interior tables lines, whether there's a frame around the table and overall table width, etc.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 22 Jan 2019 15:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-to-excel-with-wrong-font/m-p/529070#M22225</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-22T15:07:52Z</dc:date>
    </item>
  </channel>
</rss>

