Printing the current page number

Category

Rave - General

Question

How do you print the current page number from a Rave report?

Solution

You may also use this method to print other report variables or to print project parameters.

Drop a DataText component on the page. This does not need to be within a band. Dropping it directly on the page is fine. Double-click the DataField property in the PropertyPanel. This will bring up the Data Text Editor dialog box. Select the "CurrentPage" item from the Report Variables combobox and then click on the button marked "Insert Variable." Then click on the button marked "OK." That's all there is to it. When the report prints the current page will now be printed.

For printing a parameter, you would select the desired parameter from the Project Parameters' combobox and then click the "Insert Parameter" button followed by the "OK" button.