Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create your own report preview toolbar

Reports

Create your own report preview toolbar

by  Mike Lewis  Posted    (Edited  )
If you are not happy with the toolbar that controls the report preview screen, why not build your own? This FAQ does not give step-by-step instructions for creating a toolbar, but it will give you an idea of what code to put in the Click events of some of the buttons.

The following code should go in the various page navigation buttons:
Code:
KEYBOARD "{PGDN}"  && next page
KEYBOARD "{PGUP}"  && previous page
KEYBOARD "{HOME}"  && first page
KEYBOARD "{END}"   && previous page
To open the "Go to page" dialogue:
Code:
KEYBOARD G

To jump to a particular page, add the page number and the Enter key to the above command, for example:
Code:
KEYBOARD "G9{ENTER}"  && go to page 9

And finally, to toggle the zoom factor:
Code:
KEYBOARD "Z"

You can't mimic the full functionality of the built-in toolbar, but with the above code, you can get most of the way there.
________________________

Mike Lewis
Edinburgh, Scotland
www.ml-consult.co.uk
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top