The (generic) code (from Fox Advisor). If any of you have experience with Outlook COM objects:
oOutlook = Createobject("outlook.application"
oNameSpace = oOutlook.getnamespace("MAPI"
oDefaultFolder=oNameSpace.GetDefaultFolder(10) &&CONTACTS
oMsg = oOutlook.CreateItemFromTemplate( "C:\ MyApp\ Forms\ Mytemplate.OFT"
oInspector = oMsg.GetInspector
oInspector.Activate()
Is this Error message avoidable?:
"OLE IDispatch exception code: Can't open the file:
C:\ MyApp \Forms \Patient.Oft. It may not exist, you may not have permission to open it, or it may be open in another program ... check permissions for the folder..."
Thanks in advance.
Philip M. Traynor, DPM
oOutlook = Createobject("outlook.application"
oNameSpace = oOutlook.getnamespace("MAPI"
oDefaultFolder=oNameSpace.GetDefaultFolder(10) &&CONTACTS
oMsg = oOutlook.CreateItemFromTemplate( "C:\ MyApp\ Forms\ Mytemplate.OFT"
oInspector = oMsg.GetInspector
oInspector.Activate()
Is this Error message avoidable?:
"OLE IDispatch exception code: Can't open the file:
C:\ MyApp \Forms \Patient.Oft. It may not exist, you may not have permission to open it, or it may be open in another program ... check permissions for the folder..."
Thanks in advance.
Philip M. Traynor, DPM