I'm trying to write a macro based on http://www.pharmasug.org/proceedings/2012/AD/PharmaSUG-2012-AD12.pdf to compile all my individually run rtf files into one with a TOC appended. My problem resides in the rtf code for the number of pages, as the number of pages is not rendered until the file is open. The author of this paper just uses the infile statement on the rtf and finds the number of pages for the TOC on a line in the rtf code. Is there something that I'm missing in this paper to find this, since my rtf code looks like : \b\sb0\sa0\qr\f1\fs16\cf1{Page {\field{\*\fldinst { PAGE }}} of {\field{\*\fldinst { NUMPAGES }}} } The code in the paper shows it as :\pard\plain\intl\sb10\sa10\qr\f2\fs16\cf1 (Page 1 of 4)\cell The way that I'm setting my page x of y in rtf is using proc template and reissuing the style for pageno. style pageno from pageno / font=fonts("strongfont") pretext="Page " posttext=" of !{lastpage} "; Any help would be appreciated. Thank you!
... View more