private void print_tracking_report() { if (gridPanel == null) { return; } if ((gridPanel.Selected_Row != null) && (gridPanel.Selected_Row.Length > 0)) { foreach (DataRow thisRow in gridPanel.Selected_Row) { PrintDocument printReport = new PrintDocument(); printReport.PrintPage += printReport_PrintPage; bibIdPrinter = new BibIdReport_Printer(printReport, thisRow["BibID"].ToString(), thisRow["VID"].ToString(), thisRow["GroupTitle"].ToString(), thisRow["Volume_Title"].ToString(), String.Empty, String.Empty, thisRow["Type"].ToString(), thisRow["Aleph"].ToString(), thisRow["OCLC"].ToString(), thisRow["Level1_Text"].ToString(), thisRow["Level2_Text"].ToString(), thisRow["Level3_Text"].ToString()); printReport.Print(); } } else { MessageBox.Show("Please select at least one row.", "No row selected", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void print_tracking_report() { if (gridPanel == null) return; if ((gridPanel.Selected_Row != null) && (gridPanel.Selected_Row.Length > 0)) { foreach (DataRow thisRow in gridPanel.Selected_Row) { PrintDocument printReport = new PrintDocument(); printReport.PrintPage += printReport_PrintPage; bibIdPrinter = new BibIdReport_Printer(printReport, thisRow["BibID"].ToString(), thisRow["VID"].ToString(), thisRow["GroupTitle"].ToString(), thisRow["Volume_Title"].ToString(), String.Empty, String.Empty, thisRow["Type"].ToString(), thisRow["Aleph"].ToString(), thisRow["OCLC"].ToString(), thisRow["Level1_Text"].ToString(), thisRow["Level2_Text"].ToString(), thisRow["Level3_Text"].ToString()); printReport.Print(); } } else MessageBox.Show("Please select at least one row.", "No row selected", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void print_tracking_sheets() { if (gridPanel == null) return; if ((gridPanel.Selected_Row != null) && (gridPanel.Selected_Row.Length > 0)) { foreach (DataRow thisRow in gridPanel.Selected_Row) { PrintDocument printReport = new PrintDocument(); printReport.PrintPage += printReport_PrintPage; bibIdPrinter = new BibIdReport_Printer(printReport, thisRow["BibID"].ToString(), "", thisRow["Group_Title"].ToString(), "", thisRow["Author"].ToString(), thisRow["Publisher"].ToString(), thisRow["Material_Type"].ToString(), thisRow["Aleph"].ToString(), thisRow["OCLC"].ToString(), "", "", ""); printReport.Print(); } } else MessageBox.Show("Please select at least one row.", "No row selected", MessageBoxButtons.OK, MessageBoxIcon.Information); }