Javier
 
I'm having a problem actually saving the file using the 

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

command.

 

I replaced the size settings with my own but it will not save the file, here
is my code;

 

 

--Start code

property vci_WebBrowser GOURL .vtest
set v vimage text=null
set v vimage=('Y:\GlenCoveNew\Maps\'+.vsektion+.vblock+.vlot+'.png')

property rbase_form 'Capture_from_window|377,41,1021,701'  &vImage

--End Code


vtest when launched produces the Google Map

the property vci_WebBrowser GOURL .vtest command loads the map into my
variable Web Browser

 

The command:

property rbase_form 'Capture_from_window|377,41,1021,701'  &vImage


 
does not save the file. Am I mis-understanding the property command ?
 
Thanks for the help.
 
Bill Eyring

  _____  

From: [email protected] [mailto:[email protected]] On Behalf Of Javier
Valencia
Sent: Wednesday, February 15, 2012 9:46 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - RE: Printing Google Maps



Bill,

 

Here is an elegant all R:Base solution.

 

To display the Google map in a R:Base form:

 

In your application form define a Web Browser where the Google map will be
displayed.

 

Load the URL using the command:

PROPERTY vci_WebBrowser GOURL .vYourGoogleURL

 

Now you have the Google map displayed within your form.

 

To capture the Map:

Use the new Capture Property as follows

 

SET VAR vImage = 'GoogleMapJPG'

 

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

 

Replace "365,228,915,625" (Left,Top,Right,Bottom') with the pixel
coordinates of the Web Browser field on the form.

 

Now, you have the Google map captured in the file GoogleMap.jpg and you can
use it in a report or just save it for future use.

You can automate the entire procedure by placing the proper commands in the
After Start EEP.

 

And as R:azzak would say.that's all there is to it; or as we developers
say.ain't R:Base great?

 

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
[email protected]
Sent: Wednesday, February 15, 2012 2:23 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Printing Google Maps

 

I have an app that launches a file that goes out to the Internet and
launches a Google map that has 6 push-pins locating different properties on
the map.

 

I know I can click the Print button and print the map, but I would like to
make the process cleaner by either printing this map automatically or saving
it to a file for later printing.

 

Does anyone have a script that does something like this ?

 

Thanks,

 

Bill Eyring 

Reply via email to