HOW TO: How can I disable the Find functionality on HTML type of WebViewer control?
KnowledgeBase for ActiveReports for .NET
HOW TO: How can I disable the Find functionality on HTML type of WebViewer control?
09-20-2007, 10:13 AM
How can I disable the Find functionality on HTML type of WebViewer control?
note: This applies only when the WebViewer's ViewerType property is set to HtmlViewer mode.
The Find button and label can be disabled in client-side script code.
Here is a sample of code:
[vbscript]
<script language="vbscript">
document.getElementById("WebViewer1_txtFind").previousSibling.style.display="none"
document.getElementById("WebViewer1_txtFind").style.display="none"
</script>
Please be sure change the Id to match the name of your WebViewer control after it has rendered to the client browser. See the attached sample project for an example.