Tuesday, November 4, 2003


From the Edge:  Customizing Print Preview Tool Bar
Section: Enhanced PRINT Command
Chapter: Running R:BASE Your Way!
Platform: R:BASE 7.0 for Windows
Build:  7.0.65.21104 and higher

The PRINT Preview option of R:BASE 7.0 for Windows displays
a Tool Bar with the following icons:                    

01.     Print
02.     Whole Page
03.     Page Width
04.     100%
05.     Zoom
06.     First Page
07.     Previous Page
08.     Page No
09.     Next Page
10.     Last Page
11.     Cancel/Close

Now you can customize Print Preview Tool Bar using the
PRINT reportname OPTION SCREEN command.

-- Example 00
-- Typical Print Preview Tool Bar
CLS
PRINT Invoice WHERE TransID = 1002 +
OPTION SCREEN|WINDOW_STATE MAXIMIZED

-- Example 01
-- Print Preview Tool Bar without Print Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNPRINT_VISIBLE FALSE

-- Example 02
-- Print Preview Tool Bar without Whole Page Icon
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNWHOLEPAGE_VISIBLE FALSE

-- Example 03
-- Print Preview Tool Bar without Page Width Icon
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNPAGEWIDTH_VISIBLE FALSE

-- Example 04
-- Print Preview Tool Bar without 100% Icon
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTN100PERCENT_VISIBLE FALSE

-- Example 05
-- Print Preview Tool Bar without Zoom Percentage Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNZOOMPERCENATAGE_VISIBLE FALSE

-- Example 06
-- Print Preview Tool Bar without First Page Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNFIRST_VISIBLE FALSE

-- Example 07
-- Print Preview Tool Bar without Previous Page Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNPRIOR_VISIBLE FALSE

-- Example 08
-- Print Preview Tool Bar without Page Number Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|PAGENO_VISIBLE FALSE

-- Example 09
-- Print Preview Tool Bar without Next Page Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNNEXT_VISIBLE FALSE

-- Example 10
-- Print Preview Tool Bar without Last Page Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNLAST_VISIBLE FALSE

-- Example 11
-- Print Preview Tool Bar without Cancel/Close Icon
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|BTNCANCEL_VISIBLE FALSE

-- Example 12
-- Print Preview without the Tool Bar
CLS
PRINT Invoice WHERE TransID = 1002 OPTION SCREEN +
|WINDOW_STATE MAXIMIZED +
|TOOLBAR_VISIBLE FALSE

Note:

Running R:BASE Your Way! (Part 4, the Grand Finale)
includes the sample command file to demonstrate
above examples.

Database: RRBYW4
At the R> Prompt: RUN PRINT_Preview_ToolBar.RMD

A PDF version of this document is also available at:

From the Edge: Customizing Print Preview Tool Bar
http://www.razzak.com/fte (R:BASE 7.0 for Windows)

Enjoy and make sure to have fun!

Very Best R:egards,

Razzak.

Unbounded Possibilities with Industrial-Strength,
True-Relational and Multi-User DBMS.



Reply via email to