FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PrintMargin Class > PrintMargin Constructor : PrintMargin Constructor(Int32,Int32,Int32,Int32,Int32,Int32) |
'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 _ )
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")
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional