This quick start gets you started with PrintDocument by letting you create a WinForms application, add printing and previewing controls to it, set u[ the preview and explore some of the run-time interactions available in the previewing controls.
To quickly get started using the library, follow these steps:
C# |
コードのコピー
|
---|---|
using C1.C1Preview;
|
C# |
コードのコピー
|
---|---|
private void Form1_Load(object sender, EventArgs e) { this.c1PrintDocument1.Body.Children.Add(new RenderText("Hello, World!")); this.c1PrintDocument1.Generate(); } |