Gets or sets the caption of the bookmark.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Label As System.String |
C# | |
---|
public System.string Label {get; set;} |
Property Value
String.
Remarks
Example
C# | Copy Code |
---|
Private void viewer1_Load(object sender, System.EventArgs e)
{
rptDocument rpt = New rptDocument();
rpt.Run();
viewer1.Document=rpt.Document;
int i;
For (i = 1; i <= viewer1.Document.Bookmarks.Count; i++)
{
viewer1.Document.Bookmarks[i - 1].Label = "Bookmark number " + i;
}
} |
Visual Basic | Copy Code |
---|
Private Sub viewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
Dim rpt As New rptDocument
rpt.Run()
viewer1.Document = rpt.Document
Dim i As Integer
For i = 1 To viewer1.Document.Bookmarks.Count
viewer1.Document.Bookmarks(i - 1).Label = "Bookmark number " & i
Next i
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