On Thu, 2006-05-04 at 21:57 -0700, sara123 wrote:
> by doing this in VB
> 
> Set args(0) = MakePropertyValue("ReadOnly", True)
> 
> the document becomes readonly but the moment the edit button on the toolbar
> is clicked it no longer remains readonly that is it can be edited so i want
> to disable the toolbar button of openoffice writer through VB( kindly
> suggest me how this can be achieved)

Not in VB. OOo uses OOBASIC.  I am not certain that the
MakePropertyValue function is implemented but try
http://documentation.openoffice.org/HOW_TO/various_topics/VbaStarBasicXref.pdf
and if it helps you can also get the example kit from this project.
-- 
PLEASE KEEP MESSAGES ON THE LIST.
OpenOffice.org Documentation Co-Lead
http://documentation.openoffice.org/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to