Programming with Reflection

image\rwnprg32.gif PrintControl method

 

Syntax object.PrintControl PrintControl

 

Description

Sends a control instruction to the printer session. This method is available for 5250 and 3270 printer sessions.

Arguments

PrintControl Argument Type: Enumeration
Specifies the control instruction to send to the printer. The following controls are available.

 

Default behavior

In bypass mode

rcPrintBS

Move backward one position if not already in leftmost position.

Send a Backspace character (hex 08) to the printer.

rcPrintCR

Move the print position to column 0.

Send a Carriage Return character (hex 0D) to the printer.

rcPrintFF

Eject the current page and move to next page.

Send a Form Feed character (hex 0C) to the printer.

rcPrintLF

Advance one line.

Send a Line Feed character (hex 0A) to the printer.

rcNewLine

End a print line and advance to the next line.

Send a Carriage Return followed by a Line Feed.

rcLeftMargin

Move the horizontal print position to the left margin.

Send a Carriage Return to the printer and then skip spaces to the left margin.

rcTopMargin

Move the vertical print position to the top margin.

Send a Form Feed to the printer and then skip lines to the top margin.

rcSkipChar

Advance a character position.

Send a space character to the printer.

rcEndOfJob

Flush out the printer buffer and close the printer/file.

Flush out the printer buffer and close the printer/file.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command