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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Office Automation using VFP7.0

Status
Not open for further replies.

sumpun

MIS
Feb 20, 2002
21
HK
Does anyone know any good books for developing applications that manipulate word, excel and ms graph.

There is one at this link :


The book is called "Microsoft Office Automation with Visual Foxpro".

However, it looks at VFP version 6.0. Is it done the same way in version 7.0 or are there differences ??

Also, does it make any difference if I use MS office 2000 or MS office XP, as I have to support both versions of MS office.
 
I sure what you can do with 6.0 will work in 7.0. Not sure about XP. But I have found that of all the books I have purchased to help me I have ofund that when they are published by Microsoft they are the best. I have one that handles ms office. I used it to automate office functions. They give you the best examples, they do not work by theory. Attitude is Everything
 
for "MOST" automation functions I have found that if I do not know method or property to use in the Office app ie. Excel, Word I can do a quick macro record for what I want to accomplish the resulting VB code can with little conversion be used in VFP. The VB Macro code will use internal vars for most parameters however in the VB edit window you can right click -->description and look up the real value like xlBorderColor = -4105


I have found some difference on how Office2000 and OfficeXP do things you will need to create some version checking and write the code to account for version. Steve Bowman
steve.bowman@ultraex.com

 
The most two important deference between VFP6.0 and 7.0 regarding office automation are the Smart Tags and the Event Handlers. In VFP6.0 the office application can’t trigger an event handler meaning you can for example add send an E-mail using Outlook from VFP but your VFP application has no way to detect the mailsent event in Outlook.
Thanks to the new IMPLEMENT in the DEFINE CLASS, you can detect and trap event now in VFP. More than this as far as I know no much deference.

Walid Magd
Engwam@Hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top