Page Numbering in RTF

J

Jim Osborne

I've got a VB.Net application that builds a report in RTF format for viewing
in word. The report is broken down into sections, with Headers, footers etc.
I have page numbering turned on in certain sections of the report and a TOC
field definition in the report as well. My client wants me to add Roman
Numeral page numbering to some additional sections at the beginning of the
report. Here is a clip of the section of my report where I would like the
roman page numbering:

\sect\sectd\pgnlcrm
{\header
{\trowd \trgaph90
\cellx3780
\cellx11340
\cellx15120
\pard\intbl {\f1\fs18 Demo } \cell
\pard\intbl \qc {\f1\fs18 Standard Report Selections} \cell
\pard\intbl \qr {\f1\fs18 Library Properties Page \chpgn } \cell
\row }
}

I have the \pgnlcrm tag just after the section definition, but when I view
this page in Word 2003, my header reads "Page 2" and not the proper "Page
ii".

What am I missing here? Any help would be greatly appreciated.

Jim
 
K

Klaus Linke

Hi Jim,

You haven't actually inserted a { page } field anywhere:

\sect\sectd\pgnlcrm
{\header
{\trowd \trgaph90
\cellx3780
\cellx11340
\cellx15120
\pard\intbl {\f1\fs18 {\field{\*\fldinst { page }}}} \cell
\pard\intbl \qc {\f1\fs18 Standard Report Selections} \cell
\pard\intbl \qr {\f1\fs18 Library Properties Page \chpgn } \cell
\row }
}

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top