Write document in Event-Driven mode (pull) to HttpResponse. Document is read from an XML reader.

Namespace: TallComponents.PDF.Layout
Assembly: 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:
HeaderValue
ContentTypeapplication/pdf
ContentEncodingUTF8

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

ExceptionCondition
System..::..ArgumentExceptionThrown when the HttpResponse is not connected.
System..::..ArgumentNullExceptionThrown when the HttpResponse or the XmlReader is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also