private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { SfDataGrid.PrintSettings.PrintScaleOption = PrintScaleOptions.FitAllColumnsonOnePage; SfDataGrid.PrintSettings.AllowColumnWidthFitToPrintPage = true; SfDataGrid.PrintSettings.AllowRepeatHeaders = true; SfDataGrid.Print(); }
public override void ExecutePrint(object obj) { GlobalClass.ReportName = "Location Wise Stock Report"; GlobalClass.ReportParams = "";// string.Format("From Date : {0} To {1}", FDate.ToString("MM/dd/yyyy"), TDate.ToString("MM/dd/yyyy")); Report.PrintSettings.PrintPageMargin = new Thickness(30); Report.PrintSettings.AllowColumnWidthFitToPrintPage = false; Report.Print(); }
public void PrintData(object obj) { SfDataGrid datagrid = (obj as SfDataGrid); datagrid.PrintSettings.AllowRepeatHeaders = true; datagrid.PrintSettings.AllowColumnWidthFitToPrintPage = true; datagrid.PrintSettings.CanPrintStackedHeaders = false; datagrid.Print(); }
public override void ExecutePrint(object obj) { GlobalClass.ReportName = "Picking List Variance"; GlobalClass.ReportParams = string.Format("Requisition Id : {0}", ReqId); Report.PrintSettings.PrintPageMargin = new Thickness(30); Report.PrintSettings.AllowColumnWidthFitToPrintPage = false; Report.Print(); }
public override void ExecutePrint(object obj) { GlobalClass.ReportName = "Packing List Report"; GlobalClass.ReportParams = string.Format("From Date : {0} To {1}", FDate.ToString("MM/dd/yyyy"), TDate.ToString("MM/dd/yyyy")); Report.PrintSettings.PrintPageMargin = new Thickness(30); Report.PrintSettings.AllowColumnWidthFitToPrintPage = false; Report.PrintSettings.PrintPageOrientation = PrintOrientation.Landscape; Report.Print(); }
public override void ExecutePrint(object obj) { GlobalClass.ReportName = "Item Picking List"; GlobalClass.ReportParams = "";// string.Format("From Date : {0} To {1}", FDate.ToString("MM/dd/yyyy"), TDate.ToString("MM/dd/yyyy")); Report.PrintSettings.PrintPageMargin = new Thickness(30); Report.PrintSettings.AllowColumnWidthFitToPrintPage = false; Report.PrintSettings.PrintPageOrientation = PrintOrientation.Portrait; Report.Columns["DeviceName"].IsHidden = true; Report.Print(); }