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