Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing contents of grid

Status
Not open for further replies.

abbyanu

IS-IT--Management
Jan 18, 2001
82
US
I have a listing displayed in a grid. Is there a way I can send the contents of the grid to the printer in Visual Fox? I want when the user clicks a "Print" command button the output of the grid is sent to the default printer. Please assist me with the code. Many thanks.
 
Two (of many) approaches:
1) Simplist
LIST OFF NOCONSOLE TO PRINTER

2) Create a report that controls the format of the output.
REPORT FORM myreport NOCONSOLE TO PRINTER

Rick
 
Hi!

Make a report. Than command 'REPORT FORM MyReportName To Printer' will allow you to print report. Report takes data from the current alias if it have no data environment. So select alias used by grid and than send report to output...

Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top