Flynet Viewer .NET Programmer's Reference

getPrintData Method

getPrintData Method

Previous topic Next topic  

getPrintData Method

Previous topic Next topic  

 

Return the data in the print buffer.

 

String HostConnection.getPrintData(bool flushBuffer, bool escapeData);

 

 

 

Arguments

 

HostConnection

 Required. HostConnection object.

 

flushBuffer

 Required. true to clear the buffer, false leaves the buffer as it is.

 

escapeData

 Required. true to escape the print data into a format useable by XML (e.g. a null becomes %00).

 

Remarks

 

The getPrinterData method returns the print stream sent by a VT host.

When escapeData is set to zero the print data is made available in binary format.

 

The following example shows how to retrieve and clear an escaped print stream if there is one:

 

 HostConnection oConn=new HostConnection();

 string printBuffer;

 if (oConn.printDataLength>0)

 {

         printBuffer=oConn.getPrintData(true,true);

 }

 

Requirements

 

Flynet Viewer

 

See Also

 

printDataLength

 

Applies To: HostConnection object

 


© 2016 Inventu Corporation, Flynet LTD