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

Run MS Publisher from VFP 1

Status
Not open for further replies.

bpratl

Programmer
Jul 7, 2002
25
US
How would I go about running MS Publisher from a VFP application? I can run EXCEL and WORD without any problems but Publisher won't work for me.
 
It appears that recent versions of Publisher are automation servers, so you should be able to instantiate it just as you do Excel or Word. Looks like:

oPub = CREATEOBJECT("Publisher.Application")

does the trick. Of course, the hard part is figuring out how to use the thing, but IntelliSense and the Object Browser should help you.

Tamar
 
Unfortunately they are using Publisher 98 so Tamar's suggestion of
Code:
 oPub = CREATEOBJECT("Publisher.Application")
Did not work. I have not tried it with a later version.

Mike Lewis ShellExecute() API works great and solved the problem. Thanks for quick response.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top