Gets or sets a value that specifies the width, in inches, of a custom paper size.
Syntax
Visual Basic (Declaration) | |
---|
Public Property PaperWidth As System.Single |
C# | |
---|
public System.float PaperWidth {get; set;} |
Property Value
A float value that specifies the custom paper width in inches.
Remarks
Example
C# | Copy Code |
---|
private void rptPageSettings_ReportStart(object sender, System.EventArgs eArgs)
{
this.PageSettings.PaperHeight = 11.0f;
this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Custom;
this.PageSettings.PaperWidth = 8.5f;
} |
Visual Basic | Copy Code |
---|
Private Sub rptPageSettings_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
Me.PageSettings.PaperHeight = 11.0F
Me.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Custom
Me.PageSettings.PaperWidth = 8.5F
End Sub |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also