Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Please follow this code then give me solution.

private void Form1_Load(object sender, EventArgs e)

private void scriptInvoke_Click(object sender, EventArgs e)

After running the application my geckobrowser can Load Test.html file. Then I want to call this function exportChart(). Using the that function I can Download a high chart from web. I have tested it through a button click from web like

<button id="buttonExport" onclick="exportChart()" >Export chart</button>

and it works fine and can download the high chart.

But when I load this html through geckoWebBrowser and want to call this exportChart() function. It does not work. I have tested it using alert in exportChart()function and alert is executed when I call the function from geckoWebbrowser but it can not download the file.

Please help me to find out the problem why gecko web browser can not download this file.
Updated 8-Dec-14 23:24pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900