Gets or sets the color that represents the paper in the report view.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property PaperColor As Color |
| C# | |
|---|
public Color PaperColor {get; set;} |
Return Value
A System.Drawing.Color value that represents the paper color. The default value is White.
Example
| C# | Copy Code |
|---|
private void arv_Load(object
sender, System.EventArgs e)
{
rptDD rpt = new rptDD();
rpt.Run();
arv.Document = rpt.Document;
arv.ReportViewer.PaperColor = System.Drawing.Color.Peru;
} |
| Visual Basic | Copy Code |
|---|
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
Dim rpt As New rptDD
rpt.Run()
arv.Document = rpt.Document
arv.ReportViewer.PaperColor = System.Drawing.Color.Peru
End Sub |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also