已经引用。
private GoldPrinter.GridBase gridbase = new GoldPrinter.GridBase();
private GoldPrinter.WebPrinterPageSetting _webPrinterPageSetting = new GoldPrinter.WebPrinterPageSetting();private void btnPrinter_Click(object sender, System.EventArgs e)
{
gridbase.DataSource = CreateDataSource();
_webPrinterPageSetting.ShowPrintPreviewDialog();
}
private DataGrid CreateDataSource()
{
DataSet ds = new DataSet();
string strWhere = " Where hi_plat_id=3 ";
ds = _bll.GetInfFactoryList(strWhere);
this.MyDataGrid.DataSource = ds;
return this.MyDataGrid;
}
页面点击打印按钮事件,没能弹出打印窗口。
请教各位高手还需要如何编写代码才能正确弹出打印窗口。谢谢