当我在visual studio工作上运行它但在IIS上没有
private void PrintDocument(object sender, System.Windows.Forms.WebBrowserDocumentCompletedEventArgs e)
{
System.Windows.Forms.WebBrowser wb = (System.Windows.Forms.WebBrowser)sender;
wb.Print();//Does not work on IIS
wb.Dispose();
}