Ejemplo n.º 1
0
 private void butPrint_Click(object sender, EventArgs e)
 {
     _pagesPrinted = 0;
     ODprintout.InvalidMinDefaultPageWidth = 0;
     //No print previews, since this form is in and of itself a print preview.
     PrinterL.TryPrint(pd_PrintPage, margins: new Margins(50, 50, 50, 50), duplex: Duplex.Horizontal);
 }
Ejemplo n.º 2
0
 private void butPrint_Click(object sender, EventArgs e)
 {
     PrinterL.TryPrint(pd2_PrintPage,
                       Lan.g(this, "Graphical perio chart printed"),
                       _patCur.PatNum,
                       PrintSituation.TPPerio,
                       new Margins(0, 0, 0, 0),
                       PrintoutOrigin.AtMargin
                       );
 }
Ejemplo n.º 3
0
        private void butPrint_Click(object sender, EventArgs e)
        {
            curPrintPage = 0;
            PrintoutOrientation orient = (landscape?PrintoutOrientation.Landscape:PrintoutOrientation.Portrait);

            if (PrinterL.TryPrint(pd1_PrintPage, printoutOrigin: PrintoutOrigin.AtMargin, printoutOrientation: orient))
            {
                numTimesPrinted++;
            }
            printerGraph = null;
            Display();
        }
Ejemplo n.º 4
0
 protected override void butPrint_Click(object sender, EventArgs e)
 {
     pagesPrinted = 0;
     PrinterL.TryPrint(pd_PrintPage, margins: new Margins(50, 50, 50, 50), duplex: Duplex.Horizontal);
 }
Ejemplo n.º 5
0
 private void butPrint_Click(object sender, EventArgs e)
 {
     PrinterL.TryPrint(pd2_PrintPage, Lan.g(this, "Employee time graph printed"));
 }