Thanks Steve!
Below are lines of code that I added to my HTML and MAP file to make it
happen
HTML Code:
<script language="javascript">
function printmap() {
var url =
"http://[host]/cgi-bin/mapserv.exe?map=[map]&mapext=[mapext]&layers=all&map_web=TEMPLATE+templates/print.html&mapsize=650+650";
// alert(url);
window.open(url);
}
</script>
<input type="button" name="submit" value="Print Map"
onClick="javascript:printmap()">
MAP FILE Code added to MAP definition
TEMPLATEPATTERN '.'
You also need to have an html file called print.html, this is the file that
it opens to put the map file image into.
The only problem I have now is that when I print, my browser adds headers
and footers.
--
View this message in context:
http://n2.nabble.com/How-to-open-a-new-window-for-print-layout-tp2169826p2193940.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users