Monday, March 10, 2014
Tip of the Day: Clearing PDF Viewer Document
Product.: R:BASE eXtreme 9.5 (32/64)
Build...: 9.5.4.30310 or higher www.rupdates.com
Keywords: PDF Viewer
Section.: Form Controls
Did you know that you can clear the document that is being displayed in the
PDF Viewer Control?
A new PROPERTY command has been introduced in the latest version and update
of R:BASE eXtreme 9.5 for Windows (Build: 9.5.4.30310 or higher).
Syntax:
PROPERTY PDFViewerCompID CLEAR 'TRUE'
RETURN
The property "CLEAR" and the value "TRUE" will clear the previously loaded
file, if any.
Contrary to PROPERTY command, the GETPROPERTY PDFViewerCompID CLEAR varname
command will return the name of a previously cleared document, if any.
Syntax:
GETPROPERTY PDFViewerCompID CLEAR varname
RETURN
For your viewing pleasure ...
Here is a perfect example to demonstrate the use of this cool property.
01. The Default (with Slider ...)
www.razzak.com/tips/PDFViewer_01.jpg
02. Load PDF Document ...
www.razzak.com/tips/PDFViewer_02.jpg
-- Load PDF Document
-- Author: A. Razzak Memon
-- Date Created: February 25, 2014
-- Last Updated:
PROPERTY PDFVIEWER FILENAME '95ReasonstoUpgradeToRBASEeXtreme.pdf'
SET VAR vPDFPageNumber TEXT = NULL
SET VAR vPDFPageCount TEXT = NULL
SET VAR vPDFPage TEXT = NULL
GETPROPERTY PDFViewer PAGENUMBER vPDFPageNumber
GETPROPERTY PDFViewer PAGECOUNT vPDFPageCount
SET VAR vPDFPage = (.vPDFPageNumber &'of'&.vPDFPageCount)
PROPERTY LblPages CAPTION .vPDFPage
PROPERTY PDFViewer ZOOM '65'
PROPERTY RBASE_FORM_ACTION CheckZoom ''
CLEAR VAR vPDFPageNumber,vPDFPageCount,vPDFPage
RETURN
03. Clear PDF Viewer ...
www.razzak.com/tips/PDFViewer_03.jpg
-- Clear PDF Viewer
-- Author: A. Razzak Memon
-- Date Created: February 25, 2014
-- Last Updated:
PROPERTY PDFViewer CLEAR 'TRUE'
RETURN
Enjoy the showcase and pride of our eXpanded R:Dream Team!
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase
www.Razzak.com
www.RazzakMemon.com
--
31 years of continuous innovation!
16 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--