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

Word text 2

Status
Not open for further replies.

math

Programmer
Mar 21, 2001
56
BE
Hi,

I'm trying to display a nice formatted Office WORD-file in Delphi, But I Can't get it...

Is there anyone who can help?

And is there a way to link some words of the word-textfile? Maybe using HOTSPOTS (But I don't know how to do that either).

So displaying a formatted textfile and using some words as buttons??

ANYONE??

Thanks anyway,
math
 
One way to do it would be to use TOleContainer, This would create a compound document in much the same way as embedding excel into word. When the dialogue opens select from file and choose the required file.

This will work for a whole host of ole compatable file types.

Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
   if OleContainer1.InsertObjectDialog then
      OleContainer1.DoVerb(OleContainer1.PrimaryVerb)
end;
Billy H

bhogar@acxiom.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top