I'm trying to use the SaveMWF command in a VBA application. I have a control called MapControl which is the MGmap ActiveX control. It's able to load the maps up just fine, but it won't save to an MWF no matter what I try. The error code returned is -5 (security violation) but I've tried saving it to numerous locations, including my temp files, without any success.
Here's the line I'm attempting to use to save the file:
I also tried:
Dim myMap As MGMap
Set myMap = MapControl
msgbox myMap.getLastError.getCode 'Returns -5
Any ideas? Thanks!