Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lotus

Status
Not open for further replies.

kitnba

MIS
Jul 31, 2000
132
HK
Can I call the Lotus application at VFP?<br>I want it display my lotus file or excel file <br>in a program.
 
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(&quot;Excel.Sheet&quot;)<br>oXL.Application.Workbooks.Open(&quot;mysheet.xls&quot;)<br> <p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br>
 
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top