Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Command Index > L > LBLPRINT

SCREEN

Scroll Prev Top Next More

The SCREEN output option displays the label in a Print Preview window.

 

Syntax:

 

LBLPRINT labelname ARRANGE clause WHERE clause .. ORDER BY clause .. OPTION SCREEN

 

 

The following OPTION parameters are available to customize the output:

 

Parameter

Value

Description

WINDOW_STATE

MAXIMIZED

MINIMIZED

NORMAL

Specifies the state of preview window. By default, the window state is normalized.

TOOLBAR_VISIBLE

TRUE

FALSE

Specifies the option to display preview toolbar with all buttons such as, Print, Whole Page, Page Width, 100%, Zoom Level, First, Page Previous Page, Next Page, Last Page and Cancel/Close.

BUTTONBAR_VISIBLE

TRUE

FALSE

Specifies the option to display button bar with Whole Page, Page Width and 100%. If set to FALSE, all three buttons (Whole Page, Page Width and 100%) will not be visible.

BTNFIND_VISIBLE

TRUE

FALSE

Specifies the option to display the Find Text button on the toolbar

BTNOUTLINE_VISIBLE

TRUE

FALSE

Specifies the option to display the Report Outline button on the toolbar

BTNPRINT_VISIBLE

TRUE

FALSE

Specifies the option to display Printer button on the toolbar

BTNWHOLEPAGE_VISIBLE

TRUE

FALSE

Specifies the option to display Whole Page button on the toolbar.

BTNPAGEWIDTH_VISIBLE

TRUE

FALSE

Specifies the option to display Page Width button on the toolbar.

BTNP100PERCENT_VISIBLE

TRUE

FALSE

Specifies the option to display 100% button on the toolbar.

ZOOMPERCENT_VISIBLE

TRUE

FALSE

Specifies the option to display Zoom Level button on the toolbar.

BTNFIRST_VISIBLE

TRUE

FALSE

Specifies the option to display First Page button on the toolbar.

BTNPRIOR_VISIBLE

TRUE

FALSE

Specifies the option to display Previous Page button on the toolbar.

PAGENO_VISIBLE

TRUE

FALSE

Specifies the option to display Page Number button on the toolbar.

BTNNEXT_VISIBLE

TRUE

FALSE

Specifies the option to display Next Page button on the toolbar

BTNLAST_VISIBLE

TRUE

FALSE

Specifies the option to display Last Page button on the toolbar.

BTNCANCEL_VISIBLE

TRUE

FALSE

Specifies the option to display Cancel/Close button on the toolbar.

ZOOM_TYPE

PAGE_WIDTH

WHOLE_PAGE

100_PERCENT

PERCENTAGE

Specifies the zoom type. If PERCENTAGE is specified, the ZOOMPERCENT parameter must also be used so the percentage value is provided.

ZOOMPERCENT

value

Specifies the zoom level percentage, such as 70, 100, 120, 200, 250, etc. The ZOOM_TYPE value must be defined as PERCENTAGE in order to specify the ZOOMPERCENT value. See examples below.

PREVIEW_CAPTION

value

Specifies the caption for the preview window

PRINTER_NAME

value

Specifies the name of the default selection in the printers drop down of the print dialog, when the Printer button is visible

MDI


Specifies the option to display the preview window in a modeless window, to access other windows without closing it first.

LEFT

value

Specifies the left coordinate of the print preview window

TOP

value

Specifies the top coordinate of the print preview window

WIDTH

value

Specifies the width of the print preview window

HEIGHT

value

Specifies the height of the print preview window

MARGIN_LEFT

value

Specifies the horizontal position on the page where printing should begin. All report component positions are relative to the margin. In other words, if the MARGIN_LEFT parameter is set to 0.25 inches and you place a report component in a band and set the component's "left" parameter to 0, then that component will print 0.25 inches from the edge of page (or at the left margin).

MARGIN_TOP

value

Specifies the vertical position on the page where printing should begin. All report component positions are relative to the margin. In other words, if the MARGIN_TOP parameter is set to 0.25 inches and you place a report component in a band and set the component's "top" parameter to 0, then that component will print 0.25 inches from the edge of page (or at the top margin).

 

MARGIN_RIGHT

value

Specifies the horizontal position on the page where printing should stop. All report component positions are relative to the margin.

MARGIN_BOTTOM

value

Specifies the vertical position on the page where printing should stop. All report component positions are relative to the margin.

PAGE_STYLE_SETTINGS

ALL

FIRST

LAST

Page List  e.g.  1,4-6,10-12,20

Determines the pages in which the Page Style will appear on.

THEMENAME


Specifies one of 86 pre-defined Themes, or a custom Theme loaded into R:BASE. See Themes.

 

Note: Each additional OPTION parameter must be separated by the pipe | symbol.

 

 

Examples:

 

-- Example 01 (Typical Print Preview on SCREEN with Toolbar):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|WINDOW_STATE MAXIMIZED+

|PREVIEW_CAPTION 'Typical Print Preview'

 

-- Example 02 (Typical Print Preview on SCREEN with zoom type as page width):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|ZOOM_TYPE PAGE_WIDTH+

|PREVIEW_CAPTION 'Print Preview Using the Page Width Display'

 

-- Example 03 (Typical Print Preview on SCREEN with zoom type as whole page):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|ZOOM_TYPE WHOLE_PAGE+

|PREVIEW_CAPTION 'Print Preview Using the Whole Page Display'

 

-- Example 04 (Typical Print Preview on SCREEN with zoom type as 100%):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|ZOOM_TYPE 100_PERCENT+

|PREVIEW_CAPTION 'Print Preview Using the Percentage Display (100%)'

 

-- Example 05 (Typical Print Preview on SCREEN with zoom type as 75%):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|ZOOM_TYPE PERCENTAGE|ZOOMPERCENT 75 +

|PREVIEW_CAPTION 'Print Preview Using the Percentage Display (75%)'

 

-- Example 06 (Print Preview Tool Bar without Without the Page Display Buttons):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|WINDOW_STATE MAXIMIZED +

|BTNWHOLEPAGE_VISIBLE FALSE+

|BTNPAGEWIDTH_VISIBLE FALSE+

|BTN100PERCENT_VISIBLE FALSE+

|ZOOMPERCENT_VISIBLE FALSE+

|PREVIEW_CAPTION 'Print Preview Without the Page Display Buttons'

 

-- Example 07 (Print Preview Tool Bar without the Navigation Buttons):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|WINDOW_STATE MAXIMIZED +

|BTNFIRST_VISIBLE FALSE+

|BTNPRIOR_VISIBLE FALSE+

|PAGENO_VISIBLE FALSE+

|BTNNEXT_VISIBLE FALSE+

|BTNLAST_VISIBLE FALSE+

|PREVIEW_CAPTION 'Print Preview Without the Navigation Buttons'

 

-- Example 08 (Print Preview Tool Bar without Printer Button):

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|WINDOW_STATE MAXIMIZED +

|BTNPRINT_VISIBLE FALSE+

|PREVIEW_CAPTION 'Print Preview Without the Print Button'

 

-- Example 09 (Print Preview Tool Bar without Cancel/Close Button)

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|WINDOW_STATE MAXIMIZED +

|BTNCANCEL_VISIBLE FALSE+

|PREVIEW_CAPTION 'Print Preview Without the Cancel/Close Button'

 

-- Example 10 (Print Preview without the entire Tool Bar)

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN|WINDOW_STATE MAXIMIZED +

|TOOLBAR_VISIBLE FALSE+

|PREVIEW_CAPTION 'Print Preview Without the Entire Toolbar'

 

-- Example 11 (Print Preview with a MDI window using specified coordinates)

LBLPRINT CustomerLabels WHERE CustID = 128 +

OPTION SCREEN MDI|LEFT 20|TOP 20|WIDTH 800|HEIGHT 500