Board index » delphi » URGENT!!!! Open word document

URGENT!!!! Open word document

Hi folks,

How an application can open a word document in readonly mode using OLE ?
Anything like this ?

var wordObj: variant;

wordObj:= CreateOleObject ('word.basic');
wordObj.???
...

Terametrix Team
Pitty
teramet...@sti.com.br

 

Re:URGENT!!!! Open word document


In article <7hs9da$c...@forums.borland.com>,
  "Pitty" <teramet...@sti.com.br> wrote:

Quote
> Hi folks,

> How an application can open a word document in readonly mode using OLE
?
> Anything like this ?

> var wordObj: variant;

> wordObj:= CreateOleObject ('word.basic');
> wordObj.???
> ...

> Terametrix Team
> Pitty
> teramet...@sti.com.br

Hi pitty

you can do the following:

wordobj:= CreateOleObject('word.basic');
wordobj.open('test.doc',,true);

Ritu

--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

Re:URGENT!!!! Open word document


WordObj.FileNew (WordTemplate);
OR
WordObj.FileOpen (WordTemplate);
Hope this will help you !

Quote
Pitty wrote:
> Hi folks,

> How an application can open a word document in readonly mode using OLE
> ?
> Anything like this ?

> var wordObj: variant;

> wordObj:= CreateOleObject ('word.basic');
> wordObj.???
> ...

> Terametrix Team
> Pitty
> teramet...@sti.com.br

  vcard.vcf
< 1K Download

Re:URGENT!!!! Open word document


On Tue, 18 May 1999 14:53:44 -0300, "Pitty" <teramet...@sti.com.br>
wrote:

It is 'word.application'.

It is better to install the visual basic help files from the office
installation cds then you can try out everything in the visual basic
editor that comes with word.

boa sorte

Thomas Quester

http://arabella.joice.net

Quote
>Hi folks,

>How an application can open a word document in readonly mode using OLE ?
>Anything like this ?

>var wordObj: variant;

>wordObj:= CreateOleObject ('word.basic');
>wordObj.???
>...

>Terametrix Team
>Pitty
>teramet...@sti.com.br

Other Threads