Esempio n. 1
0
        public override void Printing_PrintPage(object sender, PrintPageEventArgs e)
        {
            base.Printing_PrintPage(sender, e);

            string name = Printing.GetFullName(firstText, middleText, lastText, extText);

            string text = "To whom it may concern:" + Printing.LineSpace +
                          Printing.Indention + "This is to certify that " + name + " of legal age, " + CStatusOption.Text + ", Filipino and is a resident of " + Address.Text + "." + Printing.LineSpace +
                          Printing.Indention + "This is to certify further that " + SexOption.MrMs() + " " + lastText.Text + " is the GUARDIAN of " + SexOption.HisHer() + " " + relations.Text + " Named: " + wardName.Text + "." + Printing.LineSpace +
                          Printing.Indention + "This certification issued upon the request of " + SexOption.MrMs() + " " + lastText.Text + " for whatever legal purpose it may serve to " + 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);
        }
Esempio n. 2
0
        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);
        }