Page 1 of 1
OLE / ActiveX and Word.Application (disable Save command)
Posted: Wed Sep 06, 2006 8:59 pm
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
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Wed Sep 06, 2006 9:08 pm
by Enrico Maria Giordano
Search your hard disk for VBAWRD*.CHM or similar.
EMG
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Fri Sep 08, 2006 11:10 am
by Maurilio Viana
Enrico,
I have Office XP 2003 and I found only VBAOWS10.chm
It haven't any about word.application...
Regards,
Maurilio
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Fri Sep 08, 2006 11:26 am
by Enrico Maria Giordano
Then look at MSDN.
EMG
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Fri Sep 08, 2006 2:03 pm
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 )
Re: OLE / ActiveX and Word.Application (disable Save command
Posted: Fri Sep 08, 2006 2:06 pm
by Maurilio Viana
Thanks, Vikthor!!!
I'll try it!
Regards
Maurilio