public new void Print(bool isOpen) { ToPdf.AddPage(PdfSharp.PageSize.Letter); PrintHeader(); PrintInfo(); double lastItemY = PrintPayrolls(); lastItemY = PrintDetails(lastItemY); if (Payroll.Deductions.Count > 0) { lastItemY = PrintDeductions(lastItemY); } lastItemY = PrintReinmburstments(lastItemY); if (Payroll.Reimbursements.Count > 0) { _initialYTotals = lastItemY; } PrintTotals(); ToPdf.Print(); if (isOpen) { PdfFile.Open(); } }
public void Print(bool isOpen) { ToPdf.AddPage(PdfSharp.PageSize.Letter); PrintHeader(); PrintInfo(); PrintDetails(); PrintTotals(); ToPdf.Print(); if (isOpen) { PdfFile.Open(); } }