LinePrinter.NewLine(int) Method

Instructs the LinePrinter class to move forward multiple logical lines of the printer.

Syntax

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

Parameters

lines
Integer value representing the number of logical lines that the printer should move forward.

Return Values

Positive return indicates that the command was sent.

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

Zero indicates that the printer does not support this function because of a missing or null entry in the printer configuration file.

Remarks

This method is similar to calling NewLine the number of times indicated by lines. If the parameter is zero, no action is taken and zero is returned.

Exceptions

LinePrinterException

More Information

LinePrinter Class