diff --git a/Src/xWorks/GeneratedHtmlViewer.cs b/Src/xWorks/GeneratedHtmlViewer.cs index 2fa2324a13..c3c2f0e301 100644 --- a/Src/xWorks/GeneratedHtmlViewer.cs +++ b/Src/xWorks/GeneratedHtmlViewer.cs @@ -228,6 +228,11 @@ private void InitHtmlControl() private void Find_Click(object sender, EventArgs e) { + if (m_sHtmlFileName == InitialDocument) + { + // InitialDocument doesn't have the proper javascript for Find to work. + return; + } findDlg = new FindDialog(m_htmlControl.Browser); findDlg.FormClosing += new FormClosingEventHandler(FindDialog_FormClosing); findDlg.Show(this);