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

Visual Foxpro interaction with Excel and Word 1

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
I'm trying through visual foxpro 6.0 pass a sql query when i push a button (the sql query pass by code, the problem i don't know how), to excel or word programs by code too.

I don't really know how to do it,because i'm a begginer, so if any one can help me i'll be thankful.
 
Errggg. First you'll need Word and Excel's object models.

Search for:
VBAWRD9.CHM
VBAXL9.CHM

These two help files are invaluable.

2nd you might consider using VB instead VFP, Its IDE is superior to VFP's for object modeling and the help files above are for VB so all the examples requiring some knowledge of VB to port them to VFP.

Anyhow, you have lots learning ahead of you. Good luck.
-Pete
 
You should seriously consider upgrading to VFP 7.0. It's implementation of IntelliSense is far superior to anything VB has ever had, and makes COM programming much, much easier.

-- Ed
 
How much for a single liscence(upgrade) ?
-Pete
 
thanks, I'll put in a request today.


Enhanced Development Environment
Visual FoxPro includes IntelliSense support through the integrated development environment (IDE). Visual FoxPro commands and functions are completed automatically when you type appropriate activators, such as a comma, parenthesis, or space. This functionality also is customizable, and is available for both native and user-defined classes.

Gee Wiz... MS's other IDE have been doing this for years. Its about gosh darn time!
-Pete
 
Not exactly. Try running IntelliSense in VB6 on the following:

oExcel.Sheet1.Cells(1).Text....

As soon as you hit the parentheses, IntelliSense stops working. When working with XMLDOM, this makes it practically useless. VFP handles parentheses without breaking a sweat!

-- Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top