You can invoke Excel using COM Automation; use VFP's CreateObject() function to create an object reference to it, then call the Excel methods from within VFP to set various properties and make the sheet visible.<br><br>An example:<br><br>oXL = createobject("Excel.Sheet"<br>oXL.Application.Workbooks.Open("mysheet.xls"<br> <p>Robert Bradley<br><a href=mailto: > </a><br><a href=
I mean I want to run the Excel / lotus program, while I run my program.<br><br>It will run the MS Excel by auto, no need I click the Excel.exe.<br><br>THanks
You need to further define your question. Are you wanting to start Excel/Lotus when you open VFP in development mode or are you trying to start Excel/Lotus from within an application you built with VFP?<br><br>If the former, refer to Chapter 3, <i>Configuring Visual FoxPro</i>, in the Programmer's guide. Specifically the areas titled <i>Starting Applications or Programs Automatically</i> and <i>Using a Configuration File</i>.<br><br>If the latter, FoxDev's suggestion about COM Automation is the way to go if you need to manipulate the external program. If you are just wanting to open another program and could care less about manipulating it from within VFP, check out the RUN command in the help file. <p>Jon Hawkins<br><a href=mailto: > </a><br><a href= > </a><br>Carpe Diem! - Seize the Day!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.