private void PrintPickList(Order ord, Institution rus) { var pickList = WorkflowReportFactory.CreatePicklistReport(ord, rus.Name, _dvPickListMakeup); if (pickList != null) { pickList.PrintDialog(); // Log the pick list } }
private void PrintPicklistItems(object sender, EventArgs e) { BLL.Order ord = new BLL.Order(); ord.LoadByPrimaryKey(_orderID); BLL.Institution rus = new Institution(); rus.LoadByPrimaryKey(ord.RequestedBy); XtraReport pickList; pickList = WorkflowReportFactory.CreatePicklistReport(ord, rus.Name, _dvPickListMakeup); pickList.ShowPreviewDialog(); }