Here is a snippet of code I use:

 

-- Using the latest R:Base Screen Capture

-- Delete jpg file if it exists

SET ERROR MESSAGE 2077 OFF

SET VAR vCommand =('DELETE' & .vuser_id + 'EU.JPG')

&vCommand

SET ERROR MESSAGE 2077 ON

 

-- Create unique file name for specific user

-- This is needed in case more than one user is running the  code at the
same time.

SET VAR vImageEU = (.vuser_id + 'EU.JPG')

 

PROPERTY RBASE_FORM 'CAPTURE_FROM_WINDOW|365,228,915,625' &vImageEU

SET VAR vimage = (.vImageEU)

-- Print report that uses the captured image stored as variable vimage

PRINT emp_prod_daily OPTION SCREEN|Window_State MAXIMIZED

DELETE &vImageEU

 

Please not that if you are "tracing" the application, the command will
capture whatever is on the screen at the time, that would likely be the
trace screen.

 

Javier,

 

Javier Valencia, PE

O: 913-829-0888

H: 913-397-9605

C: 913-915-3137

 

From: [email protected] [mailto:[email protected]] On Behalf Of Bill Eyring
Sent: Wednesday, January 22, 2014 10:19 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - CAPTURE_FROM_WINDOW QUESTION

 

Using latest release of RB9.5-64.

 

I have a form with a variable web browser control.

 

The image I want appears in the web browser control.

 

When I click a  speed button to capture the image to a file, the captured
image(jpg) file is blank.

 

Here is the command;

 

property rbase_form 'CAPTURE_FROM_WINDOW|10,40,617,601'  &vMapImage

 

Why is the image file blank rather than the image in the control ?

 

I have tried changing the co-ordinates(10,40,617,601) many times without
success.

 

Thanks,

 

Bill Eyring

 

Reply via email to