[Mono-bugs] [Bug 458930] New: Webbrowser Printing
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Dec 13 17:07:37 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=458930
Summary: Webbrowser Printing
Product: Mono: Class Libraries
Version: unspecified
Platform: 32bit
OS/Version: Windows XP
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: rocky1 at netcourrier.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
When the "Document.InvokeScript("print");" function is called, the printing
dialog opens, but the WebBrowser doesn't react anymore after clicking "Ok" to
print.
It shows :
Title : <Page title>
Progress : preparing...
You can't navigate to another page when this happens.
Here is a compilable example to reproduce the bug :
using System;
using System.Windows.Forms;
public class Form1 : Form
{
private WebBrowser webBrowser1 = new WebBrowser();
private Button button1 = new Button();
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.Run(new Form1());
}
public Form1()
{
button1.Text = "Print";
button1.Dock = DockStyle.Top;
button1.Click += new EventHandler(button1_Click);
webBrowser1.Dock = DockStyle.Fill;
Controls.Add(webBrowser1);
Controls.Add(button1);
Load += new EventHandler(Form1_Load);
Text = "Internet Explorer";
}
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.Navigate("http://www.javascriptkit.com/howto/newtech2.shtml");
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Document.InvokeScript("print");
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list