Printing (Visual FoxPro)

These commands and functions make it possible for you to print or display data from records or memory variables to the screen, a printer, or an output file.

Use To

_ASCIICOLS System Variable

Specify the number of columns in an ASCII text file created with the ASCII keyword in the REPORT FORM command.

_ASCIIROWS System Variable

Specify the number of rows in an ASCII text file created with the ASCII keyword in the REPORT FORM command.

\ | \\ Command

Print or display lines of text.

? | ?? Command

Evaluate expressions and sends the results to the main Visual FoxPro window, an active user-defined window, or the printer. 

??? Command

Send output directly to the printer.

APRINTERS( ) Function

Store information about currently installed printers into an array.

CLOSE Commands

Close various file types. 

DISPLAY Command

Display record contents and expression results for the current table in the main Visual FoxPro window or a user-defined window.  

EJECT Command

Send a formfeed to the printer.

EJECT PAGE Command

Send a conditional page advance to the printer.

GETPRINTER( ) Function

Display the Printer dialog box and returns the name of the selected printer.

LIST Commands

Display table or environment information without pausing the main Visual FoxPro or user-defined window.  

ON PAGE Command

Specify a command that executes when printed output reaches a specified line number in a report or when you issue EJECT PAGE. 

PCOL( ) Function

Return the current column position of the printer's print head. 

PRINTJOB ... ENDPRINTJOB Command

Activate the settings for print job system variables. 

PROW( ) Function

Return the current row number of the printer's print head.

PRTINFO( ) Function

Return the current specified printer setting. 

REPORT FORM Command

Display or print a report specified by a report definition (.frx) file, for example, created with the CREATE REPORT or MODIFY REPORT command.

SET MARGIN Command

Set the left printer margin. 

SET PDSETUP Command

Load a printer driver setup or clears the current printer driver setup. 

SET PRINTER Command

Enable or disable output to the printer or routes output to a file, port, or network printer. 

SYS(6) - Current Printer Device

Return the current print device. 

SYS(1037) - Page Setup Dialog Box

Display the Visual FoxPro default or report Page Setup dialog box or sets printer settings for the default printer in Visual FoxPro or for the report printer environment. 

TYPE Command

Display the contents of a file. 

See Also

Reference

Print Dialog Box (Visual FoxPro)
Report Designer

Other Resources

Input and Output (Visual FoxPro)
Language Categories