Esempio n. 1
0
        private void toolStripTextBox1_TextChanged(object sender, EventArgs e)
        {
            try
            {
                //wv.ExecuteScript();
                //string path = Application.StartupPath + @"\PDFJSInNet\web\test.js";
                string path = Application.StartupPath + @"\PDFJSInNet\web\viewer.js";
                string str2 = File.ReadAllText(path);

                string fun    = string.Format(@"JumpToPage()", this.tstb_page.Text.Trim());
                string result = JSHelper.ExecuteScript(fun, str2);
                MessageBox.Show(result);
            }
            catch (Exception ex)
            {
                throw;
            }
        }