Usage Note 3466: RTF file pagination appears incorrect when viewed in Microsoft Word
Page X of Y information can be placed in an RTF file using FOOTNOTE or TITLE statements with in-line commands:
footnote j=r "^{pageof}";
footnote2 j=r "^{thispage} of ^{lastpage}";
When opened in Microsoft Word, the page X of Y information might display incorrectly. The problem shows itself differently depending on the version of Microsoft Word used to open the RTF file. It might show as "3 of 1", "2 of 1", etc. or as "6 of 1", "6 of 2".
Note that a printout of the file will have the correct page X of Y values. To resolve the problem when viewing the file, change the view from Normal to Print Layout, then back to Normal (Office 2000 and 2003).
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows 95/98 | 8.1 TS1M0 | |
Microsoft Windows NT Workstation | 8.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 8.1 TS1M0 | |
Microsoft Windows 2000 Professional | 8.1 TS1M0 | |
Microsoft Windows 2000 Server | 8.1 TS1M0 | |
OpenVMS VAX | 8.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 8.1 TS1M0 | |
64-bit Enabled Solaris | 8.1 TS1M0 | |
Solaris | 8.1 TS1M0 | |
IRIX | 8.1 TS1M0 | |
OS/2 | 8.1 TS1M0 | |
z/OS | 8.1 TS1M0 | |
64-bit Enabled HP-UX | 8.1 TS1M0 | |
HP-UX | 8.1 TS1M0 | |
ABI+ for Intel Architecture | 8.1 TS1M0 | |
AIX | 8.1 TS1M0 | |
Tru64 UNIX | 8.1 TS1M0 | |
64-bit Enabled AIX | 8.1 TS1M0 | |
CMS | 8.1 TS1M0 | |
OpenVMS Alpha | 8.1 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 RTF file created by the test code shows X of Y page information.
ods escapechar="^";
ods rtf file="file.rtf";
proc print data=sashelp.shoes;
footnote j=r "^{pageof}";
footnote2 j=r "^{thispage} of ^{lastpage}";
run;
ods rtf close;
If PAGEOF information is inserted in the header or footer of an RTF file created by ODS, the page information may initially appear incorrect when the file is opened in Microsoft Word.
Type: | Usage Note |
Priority: | |
Topic: | SAS Reference ==> ODS (Output Delivery System)
|
Date Modified: | 2008-10-03 14:53:18 |
Date Created: | 2000-09-19 16:45:37 |