Oh. I'm on it!
Thanks Razzak
Bruce
-------- Original Message --------
Subject: [RBASE-L] - Re: Printing an existing JPG from within RBase
From: "A. Razzak Memon" <[email protected]>
Date: Thu, August 09, 2012 3:54 pm
To: [email protected] (RBASE-L Mailing List)
At 06:23 PM 8/9/2012, Bruce Chitiea wrote:
>All: RBase 9.1_64 Latest I use the code in the "CHART" section below
>to generate a chart from the notorious view discussed yesterday. The
>"PRINT SETUP" section configures printing of the JPG. But what prints
>the file from within RBase?
>I'm just not finding it. Thanks. Bruce
Bruce,
There are steps and a procedure to follow when printing R:Chart image
into your R:BASE report.
Take a close look at the following reports bundled with RRBYW17 and
RRBYW18 sample applications.
Databases:
. RRBYW17 (R:BASE eXtreme 9.1)
. RRBYW18 (R:BASE eXtreme 9.5)
External Form Files:
. RRBYW17.rff (R:BASE eXtreme 9.1)
. RRBYW18.rff (R:BASE eXtreme 9.5)
Main Menu TreeView Node:
. Quarterly Analysis Charts
TreeView Node Items:
. Bar Chart
. Horizontal Bar Chart
. Pie Chart
Sample Reports:
. QuarterlySaleChart
. QuarterlySummary
. Quarterly_BarChart
. Quarterly_Horizont
. Quarterly_PieChart
Basically ...
First you will need need to create a chart and save as an image.
Then, you will need to direct that R:Chart generated image to a
"Variable Image" control in the report associated with generated
image file.
-- Example:
-- Create Chart
PLUGIN RCharts.RBL +
FILENAME Quarterly_PieChart.RBC +
|SAVE_TO_JPG Quarterly_PieChart.jpg +
|IMAGE_WIDTH 324 +
|IMAGE_HEIGHT 244
SET VAR vImage = 'Quarterly_PieChart.jpg'
-- Print Report
CLS
PRINT Quarterly_PieChart +
OPTION SCREEN|WINDOW_STATE MAXIMIZED +
|ZOOM_TYPE PERCENTAGE +
|ZOOMPERCENT 98 +
|PREVIEW_CAPTION Running R:BASE Your Way!
SET ERROR MESSAGE 2077 OFF
DELETE Quarterly_PieChart.jpg
SET ERROR MESSAGE 2077 ON
Go through all sample reports and see what you find.
Hope that helps!
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase

