Problem Note 37079: Arguments specified with the HTMLSTYLE= attribute are not honored when using the ODS HTML destination
Style properties specified with the HTMLSTYLE= style attribute using style overrides within procedures are not passed to the file with the HTML destination in SAS® 9.2. No error messages are generated; however, the file is not updated with the style information specified with the HTMLSTYLE= attribute.
To circumvent the problem, do one of the following:
- Use the ODS MSOFFICE2K destination rather than the ODS HTML destination.
- Mimic the HTMLSTYLE= attribute by using the TAGATTR= attribute to pass the value plus the STYLE= which is added by the attribute as shown below.
data one;
x="0001";
run;
ods html file="c:\temp\temp.xls" ;
proc report data=one nowd;
define x /
style(column)={tagattr="style=""mso-number-format:\@"""};
run;
ods html close;
Operating System and Release Information
| SAS System | Base SAS | z/OS | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows XP 64-bit Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft® Windows® for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Datacenter Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Standard Edition | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows Server 2008 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Microsoft Windows XP Professional | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Windows Vista | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| 64-bit Enabled AIX | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| 64-bit Enabled HP-UX | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| 64-bit Enabled Solaris | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| HP-UX IPF | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Linux | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Linux for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| OpenVMS on HP Integrity | 9.21 | 9.3 | 9.2 TS2M0 | 9.3 TS1M0 |
| Solaris for x64 | 9.21 | 9.3 | 9.2 TS2M0 | 9.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.
Arguments specified with the HTMLSTYLE= attribute are not honored when using the ODS HTML destination in SAS® 9.2.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2009-09-25 11:01:40 |
| Date Created: | 2009-09-03 11:35:34 |