LinePrinter.FlushBuffer Method

Flushes the internal buffer to the printer.

Syntax

[Visual Basic]
Public Function FlushBuffer() As Integer
[C#]
public int FlushBuffer();

Return Value

Positive return indicates that text was sent.

Negative value indicates that the method was called before Open, or after Close or Cancel.

Remarks

This method causes the LinePrinter to transfer the contents of the print buffer to the printer.

Note that this does not mean that the printer will immediately print the contents of the print buffer. For many printers this is forced by sending a line feed character.

Exceptions

LinePrinterException

More Information

LinePrinter Class