Autodesk MapGuide Developer
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
SaveMWF in VBscript refuses to save
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
711 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!
