/// <summary>
/// 定义lable超过第一页是否隐藏
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void LablePrintOnPage(object sender, PrintOnPageEventArgs e)
{
XRLabel b = (XRLabel)sender; //当有多个按钮调用同一个事件的时候,判断具体是哪个按钮点击的
//第一页之外的隐藏
if (e.PageIndex != 0)
{
b.Visible = false;
}
}
XRLabel DrugWindows = report.FindControl("XRLabel15", true) as XRLabel;
DrugWindows.PrintOnPage += LablePrintOnPage;