×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Visual Foxpro interaction with Excel and Word

Visual Foxpro interaction with Excel and Word

Visual Foxpro interaction with Excel and Word

(OP)
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.

RE: Visual Foxpro interaction with Excel and Word

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

RE: Visual Foxpro interaction with Excel and Word

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

RE: Visual Foxpro interaction with Excel and Word

How much for a single liscence(upgrade) ?


-Pete

RE: Visual Foxpro interaction with Excel and Word

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

RE: Visual Foxpro interaction with Excel and Word

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

RE: Visual Foxpro interaction with Excel and Word

Cool.  Thanks for the tip!


-Pete

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close