Many thanks, Razzak - I thought and hoped there would be something like that.

It's really nice to be able to identify a report's purpose and/or conditions in this way.
(by adding ... |PREVIEW_CAPTION &vCaption).

Regards,
Alastair.


----- Original Message ----- From: "A. Razzak Memon" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Thursday, January 22, 2009 12:07 AM
Subject: [RBASE-L] - Re: Print report caption


At 06:31 PM 1/21/2009, Alastair Burr wrote:

When I print a report to the screen using these options:

PRINT &vReport WHERE &vNameType IN (SELECT IdNum FROM Temp_Table) +
OPTION SCREEN |ZOOMPERCENT 100 |WINDOW_STATE MAXIMIZED

The caption says "Print Preview"

Is there any way to change this to the value of a variable? A
Property command perhaps...

Alastair,

Use the added OPTION of "PREVIEW_CAPTION your customized caption...".

Here's how:

-- Example 01:

   CONNECT RRBYW14
   -- First Report
   PRINT Invoice WHERE LIMIT = 1 +
   OPTION SCREEN MDI|LEFT 10|TOP 10|WIDTH 700|HEIGHT 500 +
   |THEMENAME R:BASE Rocks!+
   |PREVIEW_BACKGROUND_COLOR [R234,G234,B234] +
   |PREVIEW_CAPTION First Report
    -- 2nd Report
   PRINT Invoice WHERE LIMIT = 1 +
   OPTION SCREEN MDI|LEFT 20|TOP 50|WIDTH 700|HEIGHT 500 +
   |THEMENAME R:BASE Rocks!+
   |PREVIEW_BACKGROUND_COLOR [R234,G234,B234] +
   |PREVIEW_CAPTION Second Report
    -- 3rd Report
   PRINT Invoice WHERE LIMIT = 1 +
   OPTION SCREEN MDI|LEFT 30|TOP 90|WIDTH 700|HEIGHT 500 +
   |THEMENAME R:BASE Rocks!+
   |PREVIEW_BACKGROUND_COLOR [R234,G234,B234] +
   |PREVIEW_CAPTION Third Report

That's all there is to it!

Very Best R:egards,

Razzak.

P.S. For more details and templates, refer to R:Docs 7.6




--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.10/1906 - Release Date: 21/01/2009 07:07

--- 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