Jscript error: permission denied - InfoPath Dev
in

InfoPath Dev

Jscript error: permission denied

Last post 07-17-2010 06:26 AM by Skarn. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-15-2010 11:18 AM

    • JoelW
    • Not Ranked
    • Joined on 03-06-2009
    • Posts 18

    Jscript error: permission denied

    I hope this question is in the right place.  I'm having a problem with something that should be very simple.  I have a form that needs two buttons, one to "Print" and another to "Save".   I've added what I believe to be the correct jscript code for each button but they both give me the same error message when I click them: "The following error occurred: Permission denied."  The form is fully trusted so I don't believe that's the issue, and I copied the code for the buttons from another functioning form that uses the same buttons.  Am I missing something? 

  • 07-17-2010 06:26 AM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Re: Jscript error: permission denied

    Cheat - try jScript sendKeys to send '^p' and '^s' (Ctrl+P and Ctrl+S). Doesn't require fulltrust (from what my experience has been).

    Note that Ctrl+S might not do anything if no changes has occured in the form - maybe your could do something with a 'XDocument.isDirty()' check.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.