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