[]
The PrintDocumentWrapper class wraps the C1.C1Preview.C1PrintDocument functionality. It loads C1.C1Preview.C1PrintDocument component via reflection from the C1.C1Report.2 assembly.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class PrintDocumentWrapper : IDisposable
Name | Description |
---|---|
C1PrintDocument | Gets or sets wrapped C1PrintDocument instance. |
Name | Description |
---|---|
AddDocumentTag(string, object) | Adds the new tag with the specified value to the document. |
AddExternalAssembly(string) | Adds specified external assembly reference to the currently loaded document. |
Clear() | Clears the document, all its properties will be set to default values |
Dispose() | Releases all unmanaged resources. |
Generate() | Generates a document. |
GetDocumentInfoProperty(string) | Returns the value of the specified property of the document's DocumentInfo object. |
Load(Stream) | Loads the current document from a stream. The stream should contain a document in C1D format. |
Load(Stream, object) | Loads the current document from a stream. |
Load(string) | Loads the current document from a file. The file format (C1D or C1DX) is determined by the file extension. The format defaults to C1D if the format cannot be determined from the extension. |
Load(string, object) | Loads the current document from a file. |
Print() | Prints the document. |
Print(PrinterSettings) | Prints the document. |
Print(PrinterSettings, bool) | Prints the document. |
Print(PrinterSettings, PageSettings, bool) | Prints the document. |
ReadTags(ref Dictionary<string, TagInfo>) | Updates specified tag dictionary with the current document tags. |
SetDocumentTag(string, object) | Sets the value of the specified document tag. |