FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour OLE / ActiveX and Word.Application (disable Save command)
Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
OLE / ActiveX and Word.Application (disable Save command)
Posted: Wed Sep 06, 2006 08: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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Wed Sep 06, 2006 09:08 PM

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

EMG

Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: 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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Fri Sep 08, 2006 11:26 AM

Then look at MSDN.

EMG

Posts: 298
Joined: Fri Oct 07, 2005 05:20 AM
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Fri Sep 08, 2006 02: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 :-)

      lReadOnly := TRUE
      oDocs         := oWord:Get( "Documents")
      oActiveDoc  := oDocs:Open( cFileName , , lReadOnly )
Vikthor
Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Fri Sep 08, 2006 02:06 PM

Thanks, Vikthor!!!

I'll try it!

Regards
Maurilio

Continue the discussion