Error when disabling toolbars - InfoPath Dev
in

InfoPath Dev

Error when disabling toolbars

Last post 05-15-2006 03:23 AM by K.Ramana Reddy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-12-2006 12:41 AM

    Error when disabling toolbars

    Hi!

    I am trying to disable the standard and formatting toolbar in my infopath form, but get the error "Permission denied" for this code in the OnLoad-function:

    var objCommandBars = Application.ActiveWindow.CommandBars;
    objCommandBars("Standard").Enabled = false;
    objCommandBars("Formatting").Enabled = false;

    Does anyone know what may cause this error?
  • 05-15-2006 03:23 AM In reply to

    Re: Error when disabling toolbars

    Hi,

    You have to give "Full-Trust" to your form,

    Give the full-trust, then try ,

    I hope this will help you,

    Thanks.
    K.Ramana Reddy / http://www.ggktech.com
    India.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.