SIL.FieldWorks.Discourse.ConstChartBody.AdjustPrintDialog C# (CSharp) Method

AdjustPrintDialog() public method

The constituent chart typically wants to take up all the page it can, in landscape mode! Enhance JohnT: eventually we should have a page layout diagram that allows at least this to be controlled.
public AdjustPrintDialog ( System.Windows.Forms.PrintDialog dlg ) : void
dlg System.Windows.Forms.PrintDialog
return void
		public override void AdjustPrintDialog(PrintDialog dlg)
		{
			base.AdjustPrintDialog(dlg);
			dlg.Document.DefaultPageSettings.Landscape = true;
			dlg.Document.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 50, 50);
		}