For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > September 2004 > Starting Microsoft Applications from VB









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Starting Microsoft Applications from VB
Bob

2004-09-29, 3:55 pm

I need to start Microsoft Word from a VB application. What is the proper way
to do this. Also what if Word is not installed on the client computer (Is a
message returned).
Dick Grier

2004-09-29, 3:55 pm

Hi,

You can use the ShellExecute API. If you specify the path and filename of
your Word doc, Windows will start up whatever application (usually Word)
that has been associated with this document type.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com