private void view_calendar_PrintInitialize(object sender, DevExpress.XtraGrid.Views.Base.PrintInitializeEventArgs e)
 {
     DevExpress.XtraPrinting.PrintingSystemBase printingSystem = e.PrintingSystem as DevExpress.XtraPrinting.PrintingSystemBase;
     printingSystem.PageSettings.PaperKind   = System.Drawing.Printing.PaperKind.A4;
     printingSystem.PageSettings.Landscape   = true;
     printingSystem.PageSettings.LeftMargin  = 5;
     printingSystem.PageSettings.RightMargin = 5;
 }
示例#2
0
 /// <summary>
 /// 프린트 미리보기 화면 세팅
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridView1_PrintInitialize(object sender, DevExpress.XtraGrid.Views.Base.PrintInitializeEventArgs e)
 {
     try
     {
         PrintingSystemBase pb = e.PrintingSystem as PrintingSystemBase;
         this.PrintInit(pb);
     }
     catch { }
 }
示例#3
0
        private void gridView1_PrintInitialize(object sender, DevExpress.XtraGrid.Views.Base.PrintInitializeEventArgs e)
        {
            PrintingSystemBase pb = e.PrintingSystem as PrintingSystemBase;

            pb.PageSettings.RightMargin  = 5;
            pb.PageSettings.TopMargin    = 5;
            pb.PageSettings.LeftMargin   = 5;
            pb.PageSettings.BottomMargin = 5;
            pb.PageSettings.Landscape    = true;
        }
        private void _gdMAIN_VIEW_PrintInitialize(object sender, DevExpress.XtraGrid.Views.Base.PrintInitializeEventArgs e)
        {
            PrintingSystemBase pb = e.PrintingSystem as PrintingSystemBase;

            //가로 회전
            pb.PageSettings.Landscape = true;

            //여백
            pb.PageMargins.Left   = 10;
            pb.PageMargins.Right  = 10;
            pb.PageMargins.Top    = 10;
            pb.PageMargins.Bottom = 10;
        }
示例#5
0
 private void gvPreparacionTabla_PrintInitialize(object sender, DevExpress.XtraGrid.Views.Base.PrintInitializeEventArgs e)
 {
     (e.PrintingSystem as PrintingSystemBase).PageSettings.Landscape = false;
 }
示例#6
0
 private void gridView2_PrintInitialize(object sender, DevExpress.XtraGrid.Views.Base.PrintInitializeEventArgs e)
 {
 }
示例#7
0
        private void VwBillList_PrintInitialize(object sender, DevExpress.XtraGrid.Views.Base.PrintInitializeEventArgs e)
        {
            PrintingSystemBase printingSystemBase = e.PrintingSystem as PrintingSystemBase;

            printingSystemBase.PageSettings.Landscape = true;
        }