Fellow Mappers:
 
 I'm developing an integrating mapping application with VB6 and MI 4.5 on a 
 Win95 machine. 
 
 Can anyone explain mi.LastErrorCode = 0?  MapInfo tech support told me that 
 this code doesn't exist!  The corresponding mi.LastErrorMessage is blank, and 
 the VB error is "2147417851: Automation Error". 
 
 Here's the code that generates the error.  I'm printing a form with a map and a 
 browser with the following statements:
 
    mi.do "Save Window " & mapid & " As ""C:\MAP.WMF"" Type ""WMF"""
    pctMap.Picture = LoadPicture("C:\MAP.WMF")
    mi.do "Save Window " & tableid & " As ""C:\TABLE.WMF"" Type ""WMF"""
    pctTable.Picture = LoadPicture("C:\TABLE.WMF")                      
    frmQueryScreen.PrintForm
    kill "c:\MAP.WMF"
    kill "C:\TABLE.WMF"
 
 After these statements are run once, the next mi.do (or other MI operation) 
 that I do generates the above error message.  If I comment out the 3 statements 
 pertaining to TABLE.WMF, I don't get the error.  
 
 Thanks in advance,
 
 
 Tom Rich
 Abt Associates Inc.
 [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to