How can i make a menu item of open office invisible?

Posted on 2010-01-04
Last Modified: 2013-12-26
Hello dear experts....
happy new year.......

I have used Microsoft Word objects in  my programm, but i want to use open office.
After creating an open office object (below), i can not set (in other words use)  the properties of this open office object similar to word objects!
I want prgramatically  to disable/or make invisible the menu item "Save as" of open office.

Would you please help me , how can i set the options and parameters of an open office object?
I want also to use "form letter", "serial letter " and merge functionalities of open office object.

*----------------------  new code to substitute with codes for Microsoft word -----------------------------

            loOfcMgr = CreateObject("")
            loDesktop = loOfcMgr.createInstance("")
            ** The args array is an array of "PropertyValue - objects - create by invoking OO.o reflection
            loCoreReflection = loOfcMgr.createInstance("" )
            loPropertyValue = CREATEOBJECT("Empty")
            loCoreReflection.forName("").  createobject(@loPropertyValue)
            args[1] = loPropertyValue
            args[1].name = "Tessssssst"
            args[1].value = .T.

*--------------------------------- The existing code (for Microsoft word) -------- it works .....------------------------------
            cNewDokument = c_kuordner+'\'+ALLTRIM(c_datordner)+'\'+ALLTRIM(c_filename)+'.doc'
            THISFORM.Thermometer('Word wird geladen, bitte warten ..','1')

            cDat_typ = 1
            docstart=CREATEOBJECT("word.application")      && Kanal zu Word aufmachen
            docstart.documents.ADD      && dokument in Word laden
            docstart.CAPTION ='JHM Word'
            docstart.VISIBLE=.T.             && Word sichtbar machen
Question by:forscher
    LVL 20

    Accepted Solution


    I will see what I can do to try and assist.  In OOo you can disable toolbars via code, but I am not aware of anyway to disable the menu items via code.  These are typically set at start up and can be modified via OOo files on the system.

    Check out these links:

    Please note that in OOo 3 that the directory is slightly different than listed on the Wiki
    installdirectory\ 3\Basis\share\config\soffice.cfg\modules\

    For doing these other items, it is more getting to know the object you need.  I have not coded merge functionalities in OOo.  One good place to start in learning some OOo ojbects is  A good reference tool is


    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    When creating Microsoft Word-based forms there may be a need to have a form field repeated throughout the whole document. For instance, with a company name, you may want this information repeated automatically throughout the document rather than man…
    Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
    This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
    This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now