Monday, February 5, 2007
Tip of the Day #2: Viewing R:BASE PDF Reports in Presentation Mode
Did you know that you can print any R:BASE report/label as a PDF
file, and the resulting PDF file can be viewed in a Presentation
mode when opened in a PDF reader?
Here's how:
-- Start
-- PrintPDFReportAsPresentation.RMD
-- Author: A. Razzak Memon
-- Date Created: February 5, 2007
IF (CVAL('DATABASE')) <> 'RRBYW10' OR (CVAL('DATABASE')) IS NULL THEN
CONNECT RRBYW10 IDENTIFIED BY NONE
ENDIF
-- Verify the existence of PDF Sub-Directory
SET VAR vChkFile = (CHKFILE('PDF'))
IF vChkFile <> 1 THEN
MD PDF
ENDIF
PRINT SalesSumAndSubTot +
OPTION PDF +
|FILENAME PDF\SalesSumAndSubTotals.PDF +
|SHOW_CANCEL_DIALOG ON +
|BACKGROUND_FILE NONE +
|BACKGROUND_COLOR WHITE +
|INCLUDE_LINES ON +
|INCLUDE_SHAPES ON +
|INCLUDE_RICHTEXT ON +
|RICHTEXT_ENCODING_TYPE PLAINTEXT +
|INCLUDE_IMAGES ON +
|IMAGE_FORMAT JPG +
|PIXELFORMAT 32 +
|JPEG_QUALITY 100 +
|IMAGE_DPI -1 +
|INCLUDE_HYPERLINKS ON +
|GENERATE_TOC ON +
|TITLE Customer Sales Sub-Totals and Totals +
|SUBJECT Sales Summary Report +
|AUTHOR R:BASE 7.6 for Windows Report Writer +
|KEYWORDS Sub-Totals Totals Sales Summary +
|USE_COMPRESSION ON +
|COMPRESSION_METHOD MAXCOMPRESS +
|FONT_ENCODING WIN_ANSI +
|EMBED_USED_FONTS ON +
|PAGE_LAYOUT SINGLE_PAGE +
|PAGE_MODE FULLSCREEN +
|NON_FULL_SCREEN_PAGE_MODE NONE +
|PRESENTATION_MODE WIPE_RIGHT_TO_LEFT +
|DURATION 1 +
|OPEN ON
RETURN
-- End
For complete details and syntax, refer to R:Docs 7.5.
The resulting PDF report with presentation mode can be
viewed at:
http://www.rbase.com/rbg76/SalesSumAndSubTotals.pdf
Use Arrow Up, Arrow Down, Arrow Left and Arrow Right to
navigate. Use [Esc] key to cancel the presentation.
You may save the above PDF file on your local workstation
and then view in your favorite PDF viewer.
Enjoy and make sure to have fun!
Very Best R;egards,
Razzak.