SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46013: Formatting might be removed when sending results from SAS® Enterprise Guide® to Microsoft Excel

DetailsHotfixAboutRate It

When sending stored process results from SAS Enterprise Guide to Microsoft Excel, Excel uses the SAS® Add-In for Microsoft Office to interpret and display those results. When the results are displayed, some of the formatting might be lost. Typically, the affected columns contain numeric values that include leading zeros and some date values. This problem occurs because Excel interprets the values as numeric before they are displayed.

To circumvent this issue, you must add a line to your SAS Add-In configuration file using the following steps:

  1. Close all Microsoft Office applications on the client machine.
  2. Install the latest hot fix for the SAS Add-In. The link can be found on the Hot Fix tab in this SAS Note.
  3. Create a file named SAS.OfficeAddin.dll.config and place it in the installation folder for the SAS Add-In. The default location is usually something like c:\Program Files\SAS\Add-InForMicrosoftOffice\4.3\.
  4. Edit the SAS.OfficeAddin.dll.config and add the following lines:
    <configuration>
        <assemblySettings>
             <add key="AllowExcelToInterpretValueType" value="false"/>
        </assemblySettings>
    </configuration>
    
    If this file already exists and the configuration and assemblySettings tags already exist, just add the add key tag above inside the assemblySettings tag.
  5. Save the file.
  6. Launch SAS Enterprise Guide again and send your results to Excel.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-in for Microsoft OfficeMicrosoft® Windows® for x644.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition4.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition4.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition4.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 for x644.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 20084.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2008 for x644.35.19.2 TS2M39.3 TS1M0
Microsoft Windows XP Professional4.35.19.2 TS2M39.3 TS1M0
Windows 7 Enterprise 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Enterprise x644.35.19.2 TS2M39.3 TS1M0
Windows 7 Home Premium 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Home Premium x644.35.19.2 TS2M39.3 TS1M0
Windows 7 Professional 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Professional x644.35.19.2 TS2M39.3 TS1M0
Windows 7 Ultimate 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Ultimate x644.35.19.2 TS2M39.3 TS1M0
Windows Vista4.35.19.2 TS2M39.3 TS1M0
Windows Vista for x644.35.19.2 TS2M39.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.