Exemple #1
0
        public void Print()
        {
            var print = new swc.PrintDialog();

            print.SetEtoSettings(PrintSettings);

            Control.PageSize = new wf.Size(print.PrintableAreaWidth, print.PrintableAreaHeight);
            var printCapabilities = print.PrintQueue.GetPrintCapabilities(print.PrintTicket);
            var ia = printCapabilities.PageImageableArea;

            Control.ImageableArea = new wf.Rect(ia.OriginWidth, ia.OriginHeight, ia.ExtentWidth, ia.ExtentHeight);
            //printCapabilities.PageImageableArea.OriginWidth, printCapabilities.PageImageableArea.OriginHeight
            print.PrintDocument(Control, Name);
        }