private void MainForm_Load(object sender, EventArgs e)
{
string url = "http://172.16.189.135/Reports";
Uri u = new Uri(url);
UriBuilder ub = new UriBuilder(u);
ub.UserName = "username";
ub.Password = "password";
webBrowser1.Url = ub.Uri;
}
//生产报表
private void button2_Click(object sender, EventArgs e)
{
this.webBrowser1.Url = new System.Uri("url", System.UriKind.Absolute);
panel2.Controls.Add(this.webBrowser1);
ZoomPage(80);
}