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

windows file open api rich text 1

Status
Not open for further replies.

samsnead

Programmer
Sep 3, 2005
100
CA
I want to have a foxpro program have ability to open a rich text file automatically with the default windows program for handling rtf files. For instance, if you go into windows explorer, locate a rtf file and double click on it, Windows automatically assigns a program to open that file or give option to assign one (in my case it is Word). I want that ability from within a VFP program (I create rtf files for our users and want them to be able to easily open them.
 
Take a look at my reply on forum: thread184-944857

You can use this snippet of code to launch the app or print it. There are some comments to help you.

Jim Osieczonek
Delta Business Group, LLC
 
Thanks JIm - that looks excellent - I will try it tomorrow and give you another star when I get it working!
 
Just tried your code - it is perfect for what I want - user now can select file and have it launch (open) in related application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top