At 03:37 PM 2/25/2014, Mike Byerley wrote:

As I said, you can store it in the db.

There is no detectible delay doing this:

SET VAR vpdf VARBIT = NULL
SELECT blobdata INTO vpdf IND vIn0 FROM intblob WHERE blobname = 'BlankPdf'
WRITE .vpdf TO myblank.pdf
PROPERTY pdfone FILENAME 'MyBlank.Pdf'
RETURN

Mike,

The resilient eXpanded R:Dream Team has a more eloquent R:BASE solution!

PROPERTY PDFViewerCompID CLEAR 'TRUE'
RETURN

The property "CLEAR" and the value "TRUE" will clear the previously loaded
file, if any.

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

It's amazing (and mind boggling for some), how things work here at RBTI.

Enjoy!

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
--
31 years of continuous innovation!
16 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to