Sample 61431: Remove the internal borders of a table generated with the ExcelXP tagset
The internal borders can be removed from tables that are generated with the ExcelXP tagset. You can either define a style with PROC TEMPLATE or use the STYLE= override with the procedures that support it, such as PROC PRINT, PROC REPORT, and PROC TABULATE.
Click the Full Code tab to see examples of removing the internal borders.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The sample code below illustrates how to remove internal borders of tables generated with the ExcelXP tagset.
/* Example 1. Using a style template */
ods path work.templat(update) sashelp.tmplmst(read);
proc template;
define style styles.test;
parent=styles.default;
class table /
cellspacing=0
borderwidth=0;
end;
run;
ods tagsets.excelxp file="c:\test\test.xls" style=styles.test;
proc report data=sashelp.class;
run;
ods tagsets.excelxp close;
/* Example 2. Using the STYLE= override with PROC REPORT */
ods sashelp.tmplmst(read);
ods tagsets.excelxp file="c:\test\test.xls";
proc report data=sashelp.class style(report)={cellspacing=0 borderwidth=0};
run;
ods tagsets.excelxp close;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
| Date Modified: | 2017-11-27 10:13:25 |
| Date Created: | 2017-11-17 10:08:13 |
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
| Windows Vista | 9.1 TS1M3 SP4 | |
| Windows Vista for x64 | 9.1 TS1M3 SP4 | |
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
| HP-UX IPF | 9.1 TS1M3 SP4 | |
| Linux | 9.1 TS1M3 SP4 | |
| Linux for x64 | 9.1 TS1M3 SP4 | |
| Linux on Itanium | 9.1 TS1M3 SP4 | |
| OpenVMS Alpha | 9.1 TS1M3 SP4 | |
| Solaris for x64 | 9.1 TS1M3 SP4 | |
| Tru64 UNIX | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
| z/OS | 9.1 TS1M3 SP4 | |