Ejemplo n.º 1
0
        protected virtual void PrintHandler(Object sender, PrintPageEventArgs ev)
        {
            var layout = PrintingLayoutFactory.GetLayout(Document, PrintingLabels.ElementAt(Index), Width, Height);

            layout.Print(ev);

            ++Index;
            ++Count;
            ev.HasMorePages = Index < PrintingLabels.Count() && Count < MaxPagesPerDocument;
        }
Ejemplo n.º 2
0
 private void StartPrinting(PrintDocument document)
 {
     Layout = PrintingLayoutFactory.GetLayout(Document, PrintingLabel, Width, Height);
     document.Print();
 }