Write document in Event-Driven mode (pull) to HttpResponse. Document is read from an XML reader.
Namespace: TallComponents.PDF.LayoutAssembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0
Syntax
| C# |
|---|
public void Write( XmlReader reader, HttpResponse response ) |
| Visual Basic |
|---|
Public Sub Write ( _ reader As XmlReader, _ response As HttpResponse _ ) |
Parameters
- reader
- Type: System.Xml..::..XmlReader
XML specification of the document content.
- response
- Type: System.Web..::..HttpResponse
The HttpResponse to write to.
Remarks
Sets the following headers:
| Header | Value |
|---|---|
| ContentType | application/pdf |
| ContentEncoding | UTF8 |
It is the responsibility of the client (caller) to Flush and Close the response.
Please check the turorial on differences in the Push (normal) and Pull (low resource, event driven) mode generation. There are some features that change behavior when using Pull-mode.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | Thrown when the HttpResponse is not connected. |
| System..::..ArgumentNullException | Thrown when the HttpResponse or the XmlReader is nullNothingnullptra null reference (Nothing in Visual Basic). |