public override void Printing_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(Properties.Resources.Certificate_Template, new PointF(0, 0)); // Rectangle rect = new Rectangle(e.PageBounds.Width / 3 - 30, e.PageBounds.Height / 3 + 50, 550, 380); InitBodyRect(e); string first = Printing.Indention + "This is to certify that " + Printing.MrOrMrs(SexOption.Text) + " " + Printing.GetFullName(firstName, middleName, lastName, extension) + " has appeared in my office." + Printing.LineSpace + Printing.Indention + "This certification is issued to " + Printing.MrOrMrs(SexOption.Text) + " " + lastName.Text + (string.IsNullOrEmpty(extension.Text) ? "" : " " + extension.Text) + " for whatever legal intent it may serve " + Printing.HimOrHer(SexOption.Text) + "." + Printing.LineSpace + Printing.Indention + "Issued this " + IssuedOn.customFormat() + " Barangay Poblacion, Kalibo, Aklan."; e.Graphics.DrawString(first, Printing.font, Brushes.Black, rect); DrawDebugRecs(rect, e); Printing.DrawCap(e, o.captName); }
public override void Printing_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(Properties.Resources.Certificate_Template, Point.Empty); Rectangle rect = new Rectangle(e.PageBounds.Width / 3 - 30, e.PageBounds.Height / 3 - 10, 550, 380); string name = Printing.GetFullName(firstName, middleName, lastName, ext); string first = "To whom it may concern:" + Printing.LineSpace + Printing.Indention + "This is to certify that " + Printing.MrOrMrs(sex.Text) + " " + name + " of legal age, " + cStatus.Text + ", Filipino, has been a resident of " + Address.Text + " belongs to an indigent family in this Barangay." + Printing.LineSpace + Printing.Indention + "This certification is issued upon the request of " + sex.HisHer() + " " + Relation.Text + " " + reqSex.MrMs() + " " + By.Text + " in support to " + Printing.HisOrHer(reqSex.Text) + " claim for the Burial Assistance from the " + FromThe.Text + ", in behalf of their immediate family members." + Printing.LineSpace + Printing.Indention + "Issued this " + IssuedOn.customFormat() + " Barangay Poblacion, Kalibo, Aklan."; e.Graphics.DrawString(first, Printing.font, Brushes.Black, rect); DrawDebugRecs(rect, e); Printing.DrawCapSb(e, o.captName, officerOption.Text.ToUpper()); }
public override void Printing_PrintPage(object sender, PrintPageEventArgs e) { CustomHeaderCert(e, "BARANGAY CERTIFICATION/INDIGENCY"); InitBodyRect(e); string name = Printing.GetFullName(firstName, middleName, lastName, ext); string purp = string.IsNullOrEmpty(purpose.Text) ? "for whatever legal purposes it may serve " + SexOption.HimHer() + " best." : purpose.Text; string first = "To whom it may concern:" + Printing.LineSpace + Printing.Indention + "This is to certify that " + name + ", " + age.PrintAge() + ", " + Printing.IfControlEmpty(SexOption) + ", " + Printing.IfControlEmpty(civilStatusOption) + ", Filipino and a resident of " + Printing.IfControlEmpty(addressField) + ", belongs to an indigent family in this Barangay" + Printing.LineSpace + Printing.Indention + "This certification is issued to " + Printing.MrOrMrs(SexOption.Text) + " " + lastName.Text + (string.IsNullOrEmpty(ext.Text) ? "" : " " + ext.Text) + " " + purp + Printing.LineSpace + Printing.Indention + "Issued this " + IssuedOn.customFormat() + " Barangay Poblacion, Kalibo, Aklan."; e.Graphics.DrawString(first, Printing.font, Brushes.Black, rect); DrawDebugRecs(rect, e); Printing.DrawCapSb(e, o.captName, officerOption.Text); }
public override void Printing_PrintPage(object sender, PrintPageEventArgs e) { Console.WriteLine(e.PageBounds.Width * 3 / 5 + 20); //e.Graphics.DrawImage(Properties.Resources.Certificate_Template, Point.Empty); CustomHeaderCert(e, "BARANGAY CLEARANCE"); InitBodyRect(e); //Rectangle bodyRect = new Rectangle(e.PageBounds.Width / 3 - 30, e.PageBounds.Height / 3, 548, 300); string name = Printing.GetName(firstText, middleText, lastText, extText); string text = "To whom it may concern:" + Printing.LineSpace + Printing.Indention + "This is to certify that as per record of this Barangay " + name + ", " + Printing.IfControlEmpty(Age) + " years old, " + Printing.IfControlEmpty(CStatusOption) + ", Filipino and a resident of " + Printing.IfControlEmpty(Address) + ", whose signature appears below has no criminal, civil or administrative charges before this office and has good moral standing in the community." + Printing.LineSpace + Printing.Indention + "This certification is issued upon the request of " + Printing.MrOrMrs(SexOption.Text) + " " + lastText.Text + (string.IsNullOrEmpty(extText.Text) ? "" : " " + extText.Text) + " for " + Printing.IfControlEmpty(Purpose) + "." + Printing.LineSpace + "WITNESS MY HAND SEAL, this " + IssuedOn.customFormat() + ", at Barangay Poblacion, Kalibo, Aklan, Philippines."; e.Graphics.DrawString(text, Printing.font, Brushes.Black, rect); Printing.DrawSpecimenSignature(e, name); DrawDebugRecs(rect, e); Printing.DrawCapSb(e, o.captName, officerOption.Text); }
public override void Printing_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(E_Barangay.Properties.Resources.Certificate_Template, new PointF(0, 0)); InitBodyRect(e); string name = Printing.GetFullName(firstName, middleName, lastName, extension); string text = "To whom it may concern:" + Printing.LineSpace + Printing.Indention + "This is to certify that " + name + " of legal age, Filipino and a resident of " + Printing.IfControlEmpty(address) + "." + Printing.LineSpace + Printing.Indention + "This is to certify further that " + name + " is the dependent of " + Printing.IfControlEmpty(supportNameField) + " who is presently staying at " + Printing.IfControlEmpty(supportAddressField) + " since " + sinceDate.Value.Year.ToString() + "." + Printing.LineSpace + Printing.Indention + "This certification is issued upon the request of " + Printing.MrOrMrs(sexOption.Text) + " " + lastName.Text + (string.IsNullOrEmpty(extension.Text) ? "" : " " + extension.Text) + " for whatever legal purpose it may serve " + sexOption.HimHer() + "." + Printing.LineSpace + Printing.Indention + "Issued this " + IssuedOn.customFormat() + " Barangay Poblacion, Kalibo, Aklan."; e.Graphics.DrawString(text, Printing.font, Brushes.Black, rect); DrawDebugRecs(rect, e); Printing.DrawCapSb(e, o.captName, officerOption.Text); }