<?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 Re: Wrapping of flyover text in ODS EXCEL in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-of-flyover-text-in-ODS-EXCEL/m-p/332355#M17916</link>
    <description>Thanks Cynthia - that works really well.  I will look at the underlying XML in future when trying to work out such things - thanks for the tip.</description>
    <pubDate>Mon, 13 Feb 2017 21:20:05 GMT</pubDate>
    <dc:creator>ABritinAus</dc:creator>
    <dc:date>2017-02-13T21:20:05Z</dc:date>
    <item>
      <title>Wrapping of flyover text in ODS EXCEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-of-flyover-text-in-ODS-EXCEL/m-p/332077#M17912</link>
      <description>&lt;P&gt;Hello SAS people&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know if it is possible to control the wrapping of flyover text of a proc report column header in ODS EXCEL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Purely to illustrate I have concocted a daft bit of flyover text for the sex variable which results in the M for Males not starting on its own line in the flyver text, at least not when I run the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All advice appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am running SAS 9.4M4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file='\\....\mytestfile.xlsx' options (sheet_name="My Sheet");

proc report data=sashelp.class style(header)={backgroundcolor=white color=black textalign=left fontfamily='Courier New' fontsize=8pt} 
style(column)={fontfamily='Courier New' fontsize=8pt};
define name /style(header)={flyover='This is the persons name'};
define sex /style(header)={flyover='This is the recorded value of a persons sex: M=Male F=Female'};
define age /style(header)={flyover='This is the persons age'};
define height /style(header)={flyover="This is the persons height"};
define weight/style(header)={flyover='This is the persons weight'};
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2017 06:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-of-flyover-text-in-ODS-EXCEL/m-p/332077#M17912</guid>
      <dc:creator>ABritinAus</dc:creator>
      <dc:date>2017-02-13T06:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping of flyover text in ODS EXCEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-of-flyover-text-in-ODS-EXCEL/m-p/332315#M17915</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It took a few tries and some reverse engineering, but it looks like if you take SAS out of the picture and just make a tooltip in Excel and use Alt+Enter in the tooltip, then what Excel inserts into the flyover window seems to be &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;_x000a_&lt;/STRONG&gt;&lt;/FONT&gt; as shown in the XML below for the flyover where M=Male does start a new line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the final SAS code and results:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7203i1114650EC4A0F59C/image-size/original?v=1.0&amp;amp;px=-1" alt="flyover_excel.png" title="flyover_excel.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are interested in the reverse engineering, I made a worksheet, put some typing in a cell, and then went to Data --&amp;gt;Data Validation and entered the text using Alt+Enter for my line feed. Then I examined the XML generated for my 2 cell sheet and you can see the _x000a_ string at the 2 places I used Alt+Enter:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7204i36A6E64D93A2FAE1/image-size/original?v=1.0&amp;amp;px=-1" alt="make_tooltip.png" title="make_tooltip.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-of-flyover-text-in-ODS-EXCEL/m-p/332315#M17915</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-13T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping of flyover text in ODS EXCEL</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-of-flyover-text-in-ODS-EXCEL/m-p/332355#M17916</link>
      <description>Thanks Cynthia - that works really well.  I will look at the underlying XML in future when trying to work out such things - thanks for the tip.</description>
      <pubDate>Mon, 13 Feb 2017 21:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrapping-of-flyover-text-in-ODS-EXCEL/m-p/332355#M17916</guid>
      <dc:creator>ABritinAus</dc:creator>
      <dc:date>2017-02-13T21:20:05Z</dc:date>
    </item>
  </channel>
</rss>

