private void SetMedications(RichTextBoxEx report)
        {
            ISingleResult <selectMedicationForReportResult> result = doAction.selectMedicationForReport("Ongoing", thisPatientID);

            foreach (selectMedicationForReportResult r in result)
            {
                report.SelectionBullet = false;
                report.SelectionIndent = 60;
                Console.WriteLine(r.MedicationName);
                report.SelectionFont = new Font("Bahnschrift Bold", 12);
                report.SelectedText  = r.MedicationName + "\n";

                report.SelectionBullet = true;
                report.SelectionIndent = 90;
                report.SelectionFont   = new Font("Bahnschrift Light", 12);
                report.SelectedText    = "     Strength: " + r.Strength + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 12);
                report.SelectedText    = "     Frequency: " + r.Frequency + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 12);
                report.SelectedText    = "     Route: " + r.Route + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 12);
                report.SelectedText    = "     Refills: " + r.Refills.ToString() + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 12);


                report.SelectionBullet = false;
                report.SelectedText    = "\n\n";


                //report.SelectionIndent = 5;
            }
        }
        private void SetMedications(RichTextBoxEx report)
        {
            ISingleResult <selectPrescriptionforPrintResult> result = doAction.selectPrescriptionforPrint("Ongoing", thisPatientID, dateTimePicker1.Value);

            foreach (selectPrescriptionforPrintResult r in result)
            {
                Console.WriteLine("0");
                report.SelectionBullet = false;
                report.SelectionIndent = 60;
                Console.WriteLine(r.MedicationName);
                report.SelectionFont = new Font("Bahnschrift Bold", 14);
                report.SelectedText  = r.MedicationName + "\n";

                report.SelectionBullet = true;
                report.SelectionIndent = 90;
                report.SelectionFont   = new Font("Bahnschrift Light", 14);
                report.SelectedText    = "     Strength: " + r.Strength + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 14);
                report.SelectedText    = "     Frequency: " + r.Frequency + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 14);
                report.SelectedText    = "     Route: " + r.Route + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 14);
                report.SelectedText    = "     Refills: " + r.Refills + "\n";
                report.SelectionFont   = new Font("Bahnschrift Light", 14);


                report.SelectionBullet = false;
                report.SelectedText    = "\n\n";
            }
        }
 public PrintableReport(int patientID, string providerID)
 {
     InitializeComponent();
     this.thisPatientID         = patientID;
     this.thisProviderID        = providerID;
     _printDocument.BeginPrint += PrintDocument_BeginPrint;
     _printDocument.PrintPage  += PrintDocument_PrintPage;
     report = new RichTextBoxEx();
 }
        private void SetNotes(RichTextBoxEx report)
        {
            ISingleResult <selectNotesForReportResult> result = doAction.selectNotesForReport(thisPatientID, "Signed", dateTimePicker1.Value);

            foreach (selectNotesForReportResult r in result)
            {
                report.SelectionFont = new Font("Bahnschrift Bold", 12);
                report.SelectedText  = r.NoteTitle + "\n";
                report.SelectionFont = new Font("Bahnschrift Light", 12);
                report.SelectedText  = r.NoteContent + "\n\n";
            }
        }
        private void SetProblems(RichTextBoxEx report)
        {
            report.SelectionBullet = true;
            report.BulletIndent    = 5;
            ISingleResult <selectProblemsForReportResult> result = doAction.selectProblemsForReport("Ongoing", thisPatientID);

            foreach (selectProblemsForReportResult r in result)
            {
                report.SelectionIndent = 60;
                report.SelectionFont   = new Font("Bahnschrift Light", 13);
                report.SelectedText    = r.DateDiagnosed.ToShortDateString() + ": " + r.ProblemName + "\n";
            }

            report.SelectionBullet = false;
        }
        private void SetLabs(RichTextBoxEx report, DateTime date)
        {
            ISingleResult <getScheduledLabResult> result = doAction.getScheduledLab(thisPatientID, date);

            foreach (getScheduledLabResult r in result)
            {
                report.SelectionAlignment = HorizontalAlignment.Left;
                Console.WriteLine("0");
                report.SelectionBullet = true;
                report.SelectionIndent = 60;
                Console.WriteLine(r.LabTestName);
                report.SelectionFont = new Font("Bahnschrift Bold", 14);
                report.SelectedText  = r.LabTestName + "\n";
            }

            report.SelectionBullet = false;
            report.SelectedText    = "\n\n";
        }
        public PrintLabs(int patientID, string providerID)
        {
            InitializeComponent();


            this.thisPatientID         = patientID;
            this.thisProviderID        = providerID;
            _printDocument.BeginPrint += PrintDocument_BeginPrint;
            _printDocument.PrintPage  += PrintDocument_PrintPage;

            Font smallheadernonbold = new Font("Bahnschrift Light", 14);

            report = new RichTextBoxEx
            {
                ScrollBars         = RichTextBoxScrollBars.Vertical,
                SelectionAlignment = HorizontalAlignment.Center,
                Multiline          = true,

                //Add Attending info

                SelectionFont = smallheadernonbold,
                SelectedText  = "Date: " + dateTimePicker1.Value.ToShortDateString() + "\n\n"
            };
        }