Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

google Maps in Crystal Reports

$
0
0

I Have some code which generates a map and two markers in a crystal Report

The map shows a marker for the nearest Fire Brigade but I would like to be able to display the name of the Fire Brigade

The code is in the Graphic Location of an image

//Markers Accum
WhilePrintingRecords;
StringVar Markers;
NumberVar Counter := Counter + 1;
Markers := Markers & "&markers=color:0x0600FF|label:"
&  CHR(11) & "|"  & "Fire Brigade near" &{@address} ;
Counter;
Markers := Markers & "&markers=color:0xFF0000|label:"
& Totext (Counter,0) & "|" & {@Address} ;
Counter;
//Image URL
WhilePrintingRecords;
StringVar Markers;
"http://maps.google.com/maps/api/staticmap" &
"?center=" & {@FireBrigade} &
"&zoom=10 &size=545x355" &
"&visual_refresh=true" &
"&maptype=roadmap" & Markers &
"&sensor=false"


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>