Usage Note 57526: Remove page breaks with the ODS HTML5 destination
You can remove page breaks from files that are generated with the ODS HTML5 destination by modifying the PAGEBREAK style element and setting the DISPLAY=NONE style attribute. This removes the visible divide in the browser that is added using the <HR> tag. It also removes the CSS style property responsible for setting the physical page break when the HTML page is printed.
Click the Full Code tab to see sample code that illustrates PROC TEMPLATE syntax to remove page breaks from output generated with the ODS HTML5 destination.
Operating System and Release Information
SAS System | Base SAS | Linux for x64 | 9.4 TS1M0 | |
HP-UX IPF | 9.4 TS1M0 | |
64-bit Enabled Solaris | 9.4 TS1M0 | |
64-bit Enabled HP-UX | 9.4 TS1M0 | |
64-bit Enabled AIX | 9.4 TS1M0 | |
Windows 7 Professional x64 | 9.4 TS1M0 | |
Windows 7 Enterprise x64 | 9.4 TS1M0 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M0 | |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M0 | |
Microsoft Windows 10 | 9.4 TS1M0 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 | |
Microsoft Windows 8.1 Pro | 9.4 TS1M0 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M0 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 | |
Microsoft® Windows® for x64 | 9.4 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 TS1M0 | |
z/OS 64-bit | 9.4 TS1M0 | |
z/OS | 9.4 TS1M0 | |
Solaris for x64 | 9.4 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.
The code below illustrates PROC TEMPLATE syntax to remove page breaks from output generated with the ODS HTML5 destination.
proc template;
define style styles.mystyle;
parent=styles.htmlblue;
class pagebreak /
display=none;
end;
run;
ods html5 file="c:\temp.html" style=styles.mystyle;
proc print data=sashelp.class;
run;
proc print data=sashelp.class;
run;
ods html5 close;
Date Modified: | 2016-02-08 10:52:56 |
Date Created: | 2016-01-27 13:15:17 |