'Declaration Public Property Left As Integer
'Usage Dim instance As PrintMargin Dim value As Integer instance.Left = value value = instance.Left
public int Left {get; set;}
'Declaration Public Property Left As Integer
'Usage Dim instance As PrintMargin Dim value As Integer instance.Left = value value = instance.Left
public int Left {get; set;}
This is the space between the left side of the page and the left side of the printed spreadsheet area. See the diagram in Setting the Printed Page White Space in Customizing the Printed Page Layout.
Set the margin as 100th of an inch units; therefore, to set a 3/4-inch margin, set the property to 75.
FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo(); FarPoint.Win.Spread.PrintMargin pm = new FarPoint.Win.Spread.PrintMargin(); pm.Left = 75; pm.Right = 75; pm.Top = 50; pm.Bottom = 50; pm.Footer = 50; pm.Header = 50; pi.Margin = pm; fpSpread1.ActiveSheet.PrintInfo = pi;
Dim pi As New FarPoint.Win.Spread.PrintInfo Dim pm As New FarPoint.Win.Spread.PrintMargin pm.Left = 75 pm.Right = 75 pm.Top = 50 pm.Bottom = 50 pm.Footer = 50 pm.Header = 50 pi.Margin = pm FpSpread1.ActiveSheet.PrintInfo = pi