Infrastructure Map Server Developer

Infrastructure Map Server Developer

Reply
Active Member
devcrowley
Posts: 6
Registered: ‎10-31-2011
Message 1 of 1 (785 Views)

SaveMWF in VBscript refuses to save

785 Views, 0 Replies
10-31-2011 09:39 AM

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:

MapControl.saveMWF("C:\\temp\\test.mwf", "")

 

I also tried:

Dim myMap As MGMap

Set myMap = MapControl

myMap.saveMWF("C:\\temp\\test.mwf", "")

msgbox myMap.getLastError.getCode    'Returns -5

Any ideas?  Thanks!

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.