private static void setLogicalPageLayout(UltraGrid grid, LogicalPageLayoutInfo layoutInfo) { //Set layout attributes layoutInfo.FitWidthToPages = 0; layoutInfo.ClippingOverride = ClippingOverride.Yes; layoutInfo.PageHeader = grid.Text + "\t" + DateTime.Now.ToString("MM-dd-yyyy HH:mm tt"); layoutInfo.PageHeaderHeight = 48; layoutInfo.PageHeaderAppearance.FontData.SizeInPoints = 10; layoutInfo.PageHeaderAppearance.TextHAlign = HAlign.Left; layoutInfo.PageHeaderAppearance.TextVAlign = VAlign.Middle; layoutInfo.PageHeaderBorderStyle = UIElementBorderStyle.None; layoutInfo.PageFooter = "Page <#>."; layoutInfo.PageFooterHeight = 24; layoutInfo.PageFooterAppearance.TextHAlign = HAlign.Center; layoutInfo.PageFooterAppearance.FontData.Italic = DefaultableBoolean.True; layoutInfo.PageFooterBorderStyle = UIElementBorderStyle.None; }
private static void setLogicalPageLayout(UltraGrid grid, LogicalPageLayoutInfo layoutInfo) { //Set layout attributes layoutInfo.FitWidthToPages = 1; layoutInfo.ClippingOverride = ClippingOverride.Yes; layoutInfo.PageHeader = ReportHeader; layoutInfo.PageHeaderHeight = 48; layoutInfo.PageHeaderAppearance.FontData.SizeInPoints = 12; layoutInfo.PageHeaderAppearance.FontData.Bold = DefaultableBoolean.True; layoutInfo.PageHeaderAppearance.TextHAlign = HAlign.Center; layoutInfo.PageHeaderAppearance.TextVAlign = VAlign.Middle; layoutInfo.PageHeaderBorderStyle = UIElementBorderStyle.Default; layoutInfo.PageFooter = "Page <#>."; layoutInfo.PageFooterHeight = 24; layoutInfo.PageFooterAppearance.TextHAlign = HAlign.Center; layoutInfo.PageFooterAppearance.FontData.Italic = DefaultableBoolean.True; layoutInfo.PageFooterBorderStyle = UIElementBorderStyle.None; }
private static void setLogicalPageLayout(UltraGrid oGrid, LogicalPageLayoutInfo layoutInfo) { // try { //Set layout attributes layoutInfo.FitWidthToPages = 1; layoutInfo.ClippingOverride = ClippingOverride.Yes; //layoutInfo.PageHeader = "SHIP SCHEDULE FOR " + DateTime.Now.ToString("dd-MMM-yyyy"); layoutInfo.PageHeader = ReportHeader; layoutInfo.PageHeaderHeight = 48; layoutInfo.PageHeaderAppearance.FontData.SizeInPoints = 12; layoutInfo.PageHeaderAppearance.FontData.Bold = DefaultableBoolean.True; layoutInfo.PageHeaderAppearance.TextHAlign = HAlign.Center; layoutInfo.PageHeaderAppearance.TextVAlign = VAlign.Middle; layoutInfo.PageHeaderBorderStyle = UIElementBorderStyle.Default; layoutInfo.PageFooter = "Page <#>."; layoutInfo.PageFooterHeight = 24; layoutInfo.PageFooterAppearance.TextHAlign = HAlign.Center; layoutInfo.PageFooterAppearance.FontData.Italic = DefaultableBoolean.True; layoutInfo.PageFooterBorderStyle = UIElementBorderStyle.None; } catch (Exception ex) { throw ex; } }