Visual Basic (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 _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
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) |
Parameters
- left
- Size of the left margin in pixels
- top
- Size of the top margin in pixels
- right
- Size of the right margin in pixels
- bottom
- Size of the bottom margin in pixels
- header
- Size of the header margin in pixels
- footer
- Size of the footer margin in pixels
This example sets the print margin.
C# | Copy Code |
---|---|
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"); |
VB.NET | Copy Code |
---|---|
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") |
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6