Solved

Firing up a Word document from Delphi

Posted on 2002-05-18
3
179 Views
Last Modified: 2010-05-19
Hi...
   How can I bring up a document in Microsoft Word from within a Delphi app (assuming I don't know the directory where Word is installed on the target computer)?

Thanks
   Shawn
 
0
Comment
Question by:aztec
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
DrDelphi earned 50 total points
ID: 7019192
Regardless of the actual directory where Word is installed, it is still most likely going to be on the path. Meaning that you can use ShellExecute to open it.
Example:


{Uses ShellAPI}
procedure TForm1.Button1Click(Sender: TObject);
begin
   ShellExecute(self.handle,'Open','MyDoc.doc',nil,nil,SW_ShowNormal);
end;


Good luck!!
0
 

Author Comment

by:aztec
ID: 7019208
beautiful, thanks Doc!

Shawn
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 7022369
Cheers.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question