OLE / ActiveX and Word.Application (disable Save command)

Post Reply
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

OLE / ActiveX and Word.Application (disable Save command)

Post by Maurilio Viana »

Hi!

How can I do with ActiveX / OLE to disable Save, Save As and Print options in "Word.Applications"?
I must open a .doc and the user can only read. He can't save changes or print...

Where I can search for complete list of methods and datas?

Regards!
Maurilio
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

Re: OLE / ActiveX and Word.Application (disable Save command

Post by Maurilio Viana »

Enrico,

I have Office XP 2003 and I found only VBAOWS10.chm :(
It haven't any about word.application...

Regards,
Maurilio
User avatar
Vikthor
Posts: 271
Joined: Fri Oct 07, 2005 5:20 am
Location: México

Re: OLE / ActiveX and Word.Application (disable Save command

Post by Vikthor »

Maurilio Viana wrote:Hi!

How can I do with ActiveX / OLE to disable Save, Save As and Print options in "Word.Applications"?
I must open a .doc and the user can only read. He can't save changes or print...

Where I can search for complete list of methods and datas?

Regards!
Maurilio
Maurilio :

Try to open as ReadOnly :)

Code: Select all

      lReadOnly := TRUE
      oDocs         := oWord:Get( "Documents")
      oActiveDoc  := oDocs:Open( cFileName , , lReadOnly )
Vikthor
User avatar
Maurilio Viana
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil
Contact:

Re: OLE / ActiveX and Word.Application (disable Save command

Post by Maurilio Viana »

Thanks, Vikthor!!!

I'll try it!

Regards
Maurilio
Post Reply