S
StefanO-nl
I posted it as a reply of a previous post, but I guess new posts are more
read...
I want to enable the red dashes around an invalid textbox from C# code.
I know in script it's possible like this:
eventObj.ReportError(eventObj.Site, message, false);
see for more details:
http://msdn.microsoft.com/library/d...y/en-us/odc_ip2003_tr/html/odc_INF_Lab_05.asp
But in C# the ReportError of the DataDOMEvent expects 6 parameters.
And when I try e.Site as the first parameter, an InvalidArgumentException is
thrown with the message:
InfoPath has encountered an error. The operation failed.
The form's code contains an error.
The following call in the form's code failed: DataDOMEvent.ReportError
The parameter is incorrect.
Without saying which parameter, but my guess is the first parameter.
Has anyone got a working example of how to use the ReportError in C#?
And does it enable the red dashes?
read...
I want to enable the red dashes around an invalid textbox from C# code.
I know in script it's possible like this:
eventObj.ReportError(eventObj.Site, message, false);
see for more details:
http://msdn.microsoft.com/library/d...y/en-us/odc_ip2003_tr/html/odc_INF_Lab_05.asp
But in C# the ReportError of the DataDOMEvent expects 6 parameters.
And when I try e.Site as the first parameter, an InvalidArgumentException is
thrown with the message:
InfoPath has encountered an error. The operation failed.
The form's code contains an error.
The following call in the form's code failed: DataDOMEvent.ReportError
The parameter is incorrect.
Without saying which parameter, but my guess is the first parameter.
Has anyone got a working example of how to use the ReportError in C#?
And does it enable the red dashes?