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

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

Postby Maurilio Viana » Wed Sep 06, 2006 8:59 pm

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

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

Postby Enrico Maria Giordano » Wed Sep 06, 2006 9:08 pm

Search your hard disk for VBAWRD*.CHM or similar.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Maurilio Viana » Fri Sep 08, 2006 11:10 am

Enrico,

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

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


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

Postby Vikthor » Fri Sep 08, 2006 2:03 pm

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  Expand view
      lReadOnly := TRUE
      oDocs         := oWord:Get( "Documents")
      oActiveDoc  := oDocs:Open( cFileName , , lReadOnly )
Vikthor
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

Postby Maurilio Viana » Fri Sep 08, 2006 2:06 pm

Thanks, Vikthor!!!

I'll try it!

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Silvio.Falconi and 90 guests