RTF number of pages Page x of y -
not sure if possible trying save text via plain text output rtf special coding.
i have working except total number of pages.
i want "page x of y", bottom of each page "page 1 of 3" example, can't find correct code total page number.
some people said use \nofpages
source says use of \nofpagesn
specify number of pages in document. there formula or can use or maybe way put last page number? here example of code, if put rtf file via notepad save , open in wordpad or word see mean:
{\rtf1\pagestart1 {\header\brdrt\brdrth\ql\b name: \b0last, first \par\b dob: \b0 1979/11/03 \par\b service date/time: \b0 2012/03/06 00:49:00 \par\b mrn: \b0 xxxxxx \par\b order date/time: \b0 2012/03/05 01:14:00 \par\b study id: \b0 } \par{\footer\pard\brdrt\brdrs\qc\fs16\b\ul confidentiality notice \par\par\pard\brdrt\brdrs\keepn\ql\fs20 date: \chdate\par\keepn\qc\fs20 page \chpgn of \nofpages\par}\b study id: \b0 000000000000 \par\pard\brdrb\brdrth bunch of text make more 1 page. \par \par \par {\footnote\pard\b stuff in footer \b0\par}}
i got it. quite complicated , got sample client doing it. figure nice post here @ least answer out on net.
instead of this: page \chpgn of \nofpages
i using this:
{\insrsid2691151 page }{\field{\*\fldinst {\insrsid2691151 page }}{\fldrslt {\insrsid2691151 1}}}{\insrsid2691151 of }{\field{\*\fldinst {\insrsid2691151 numpages }} {\fldrslt {\insrsid11226526 2}}}{\insrsid2691151 \par }}
Comments
Post a Comment