Namespace:
C1.C1Preview
Assembly:
C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
Examples
The following example uses the Outlines property to create an outline on a tab in the Navigational panel of the preview to point to some text:
Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
MakeDoc1(C1PrintDocument1)
C1PrintDocument1.Generate()
End Sub
Private Sub MakeDoc1(ByVal doc As C1.C1Preview.C1PrintDocument)
Dim rt As C1.C1Preview.RenderText = New C1.C1Preview.RenderText("This is some text.")
doc.Body.Children.Add(rt)
doc.Outlines.Add("some text", rt)
End Sub |
Copy CodeC#
private void Form1_Load(object sender, EventArgs e)
{
MakeDoc1(c1PrintDocument1);
c1PrintDocument1.Generate();
}
private void MakeDoc1(C1.C1Preview.C1PrintDocument doc)
{
C1.C1Preview.RenderText rt = new C1.C1Preview.RenderText("This is some text.");
doc.Body.Children.Add(rt);
doc.Outlines.Add("some text", rt);
} |
See Also