Hi, openjack wrote:
> Hi all, > > I'm try to explain my problem, just for check if I'm following the better > way to solve it. > > My VB .NET procedure opens a document with Writer, but I need to hide some > functions such as Print or SaveAs. I'm able to hide some toolbar buttons > ceating a new ooBasic macro, but I can't do it from VB .NET; for this reason > I need to launch a ooBasic macro from VB .NET > > It's the better way or there is another way? Manipulating toolbar buttons directly is wrong anyway - the next time the framework will get status updates the state will be changed again. So to change toolbar states you must intercept the status updating procedure. Unfortunately this is not possible using any Basic, neither OOo nor VB. You have to use a programming language that allows to implement UNO objects (C++, Java, Python). The only case where you can do this without implementing objects is when you want to disable a certain command *all the time*. This is possible with using a simple configuration file, not code is needed. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]