Hi,

If I call the MapPrinter.udf file the script gives the following error:

ERROR: missing ENDFUNCTION for [mapprinter]!

is it because the endfunction is stated after the EXIT 0?
(I'm kinda new to programming, so I hope you're not banging your head into the wall now with laughter... )

regards,

jeroen