General information
Category:
COM/DCOM and OLE Automation
Title:
Using UNISYS/Attachmate/INFOConnect as an object
I am using INFOConnect to transfer VFP data to another system. The code below has worked just fine until Office 2000. Office 2000 uses a file extension of .adp in Access applications - You guessed it - when I go to open an INFOConnect session which also uses .adp extension along comes Access. If I can find a way to just activate the accessory manager without opening a session the same way that INFOConnect works when you just run the INFOConnect .exe then I can write code to copy the .adp file to a .xxx or whatever and open the session with the .xxx . This part is a cakewalk. I just can't figure out how to just open the accessory manager without also opening a session. Also, if I create a form and add a ActiveX(OLE Control) Accessory Mgr Bookmark and Accessory Mgr Session show up as object types but if I select either I get a "OLE error code 0x80010105: The server threw an exception" error. Any suggestions?
***********************
SET DELETED ON
sysObject = CREATEOBJECT( 'accmgr.system' ) && get system
IF TYPE( 'sysObject' ) != 'O' then && check for object creation
RETURN
ELSE
openstr = "sysObject.sessions.OPEN('c:\infocn32\accmgr32\" + ALLTRIM(password.session) + ".adp')"
sessionobject = &openstr
sessionobject.ACTIVATE && activate session
sessionobject.VISIBLE = .T.
sessionscreen = sessionobject.SCREEN && get screen set object
ENDIF
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only