| | |
How to open MS Word from Delphi
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2007
Posts: 36
Reputation:
Solved Threads: 6
0
#2 Oct 25th, 2009
•
•
•
•
Hello,
how can I open MS Word application in my Delphi program?
I think, it is necessary to work with ActiveX or maybe there is any other way or some free software for this purpose?
This is a simple program that open Word Document in Delphi
Pascal and Delphi Syntax (Toggle Plain Text)
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Buttons,ComObj, DB, ADODB, OleServer, Word2000, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); var XApp:Variant; begin XApp:=CreateOleObject('Word.Application'); XApp.Visible:=true; XApp.documents.add; end; end.
![]() |
Similar Threads
- MS word document automaticaly copies a duplicate one every time I open a word documen (Windows NT / 2000 / XP)
- How we open a ms word document file with php? (PHP)
- open a word (VB.NET)
- Newbie Qu... Command button to open a word/excel doc (Visual Basic 4 / 5 / 6)
- open word document in java (JSP)
- how to open a word file in an application using java. it shouldnt open in a ibrowser (Java)
- open a new word document (ASP.NET)
- How to Open a word doc from a java application? (Java)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: daysbetween function
- Next Thread: Wait for page to load
Views: 1009 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi





