hide buttons - InfoPath Dev
in

InfoPath Dev

hide buttons

Last post 10-01-2005 12:53 AM by Patrick Halstead. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-30-2005 08:33 AM

    hide buttons

    hello, I want hide buttons in the moment that the form is printed, is possible?

    thanks
  • 09-30-2005 11:29 AM In reply to

    Cleanest way to do it would be to make a new view. Make a "Print" view with everything arranged exactly how you want it (with or without buttons, etc.) and then when you are ready to print, change views and ctrl+P!

    Other than that, you could make a "Print!" button at the bottom and attach code to it. Then make a sentinel field in your DOM that when it holds a certain value all of your buttons disappear. On all the buttons you would do conditional formatting -> when sentinel_filed = "true" -> Hide this control. Then in the code of the Print button, set the sentinel field to true and call XDocument.Print().

    ---------------
    Matt Faus
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 10-01-2005 12:53 AM In reply to

    I like the second option, but you don't need to attach code. Just define rules to print and then change a sentinel field's value and follow the rest of Matt's explanation. No code required!

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.