Spread for ASP.NET 11 Product Documentation
PrintMargin Constructor(Int32,Int32,Int32,Int32,Int32,Int32)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PrintMargin Class > PrintMargin Constructor : PrintMargin Constructor(Int32,Int32,Int32,Int32,Int32,Int32)
Size of the left margin in 100th-of-an-inch units
Size of the top margin in 100th-of-an-inch units
Size of the right margin in 100th-of-an-inch units
Size of the bottom margin in pixels
Size of the header margin in 100th-of-an-inch units
Size of the footer margin in 100th-of-an-inch units
Creates a new PrintMargin object with the specified margins.
Syntax
'Declaration
 
Public Function New( _
   ByVal left As Integer, _
   ByVal top As Integer, _
   ByVal right As Integer, _
   ByVal bottom As Integer, _
   ByVal header As Integer, _
   ByVal footer As Integer _
)
'Usage
 
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
Dim header As Integer
Dim footer As Integer
 
Dim instance As New PrintMargin(left, top, right, bottom, header, footer)
public PrintMargin( 
   int left,
   int top,
   int right,
   int bottom,
   int header,
   int footer
)

Parameters

left
Size of the left margin in 100th-of-an-inch units
top
Size of the top margin in 100th-of-an-inch units
right
Size of the right margin in 100th-of-an-inch units
bottom
Size of the bottom margin in pixels
header
Size of the header margin in 100th-of-an-inch units
footer
Size of the footer margin in 100th-of-an-inch units
Example
This example sets the print margin.
FarPoint.Web.Spread.PrintMargin m = new FarPoint.Web.Spread.PrintMargin(10, 10, 10, 10, 10, 10);
FarPoint.Web.Spread.PrintInfo pi = new FarPoint.Web.Spread.PrintInfo();
pi.Margin = m;
FpSpread1.ActiveSheetView.PrintInfo = pi;
FpSpread1.SavePdf("c:\\test.pdf");
Dim m As New FarPoint.Web.Spread.PrintMargin(10, 10, 10, 10, 10, 10)
Dim pi As New FarPoint.Web.Spread.PrintInfo
pi.Margin = m
FpSpread1.ActiveSheetView.PrintInfo = pi
FpSpread1.SavePdf("c:\test.pdf")
See Also

Reference

PrintMargin Class
PrintMargin Members
Overload List