[]
This quick start gets you started with PrintDocument by letting you create a WPF application, add basic previewing control like the DocumentViewer to it.

To quickly get started using PrintDocument, follow these steps:
Switch to the code view and add C1.Preview namespace:
using C1.C1Preview;
Add the following code to the Button_Click event to add text to the preview document and generate the document.
private void button_Click(object sender, RoutedEventArgs e)
{
C1.C1Preview.C1PrintDocument doc = new C1.C1Preview.C1PrintDocument();
doc.Body.Children.Add(new RenderText("Hello World!"));
documentViewer.Document = doc.FixedDocumentSequence;
}
Click Build | Build Solution to build the project.
Press F5 to run the project.
Observe some of the run-time interactions with the preview control.
