Starts a new document.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public bool StartDoc()
Visual Basic
Public Function StartDoc As Boolean

Examples

The following code uses the StartDoc()()()() method to start generating the document:

Copy CodeVisual Basic
Me.C1PrintDocument1.StartDoc()
Dim theader As New C1.C1Preview.RenderTable(Me.C1PrintDocument1)
' Add code here to set up alignment for the parts of the header.
theader.Cells(0, 0).Text = "Left Header"
theader.Cells(0, 1).Text = "Center Header"
theader.Cells(0, 2).Text = "Right Header"
Me.C1PrintDocument1.RenderBlock(theader)
Me.C1PrintDocument1.EndDoc()
Copy CodeC#
this.c1PrintDocument1.StartDoc();
C1.C1Preview.RenderTable theader = new C1.C1Preview.RenderTable(this.c1PrintDocument1);
// Add code here to set up alignment for the columns of the header.
theader.Cells[0, 0].Text = "Left Header";
theader.Cells[0, 1].Text = "Center Header";
theader.Cells[0, 2].Text = "Right Header";
this.c1PrintDocument1.RenderBlock(theader);
this.c1PrintDocument1.EndDoc();

See Also