I have a web-based infopath form with many validations rules added to the form. I need to disable printing function if the form contains any validation errors.
What I did was when the print view is loaded in web browser, I checked the count of this.Errors in the FormEvents_Loading. If the count is not 0, then I disabled the printing ...