I am not really sure what you mean. I donot know what comapi is, neither initializing a session object???????
this is what I did, I made an app with Visual Foxpro, compile it to an exe file, then inside the accpac application I add a new item to the order entry, specifically to the report menu,
new/program
then i reference my exe so my exe runs inside accpac
so, based on that , could you be so kind and elaborate for this accpacc newbie?