指定したオフセットでブックマークをページに追加します。
シンタックス
パラメータ
- strBookmark
- ブックマークの名前。円記号(\)をパスの区切り文字として使用し、ブックマークの階層を作成できます。
- offset
- ページ上のブックマークの位置。
使用例
private void SectionReport1_ReportEnd(object sender, System.EventArgs eArgs)
{
for(int i = 0; i<Document.Pages.Count;i++)
{
this.Document.Pages[i].AddBookmark("New Bookmark", 25);
}
}
Private Sub SectionReport1_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles SectionReport1.ReportEnd
Dim i As Integer
Try
For i = 0 To Me.Document.Pages.Count - 1
Me.Document.Pages(i).AddBookmark("New Bookmark", 8)
Next
Catch ex As Exception
End Try
End Sub
参照