>SELECT invoice FROM "c:\documents and settings\visual foxpro projects\invoice.frx" INTO CURSOR crsReport
This command will select a field called invoice from a table called "invoice". You said it did not work. What did not work No records returned Any error messages Is that the name of the table and field
SELECT * FROM "c:\documents and settings\visual foxpro projects\invoice.frx" INTO CURSOR crsReport
will get you all columns (fields) in all rows, until you add a wehere clause to filter the result set (always recommended).
Once you have the record set you want, the you issue your REPORT FORM MyReport [TO PRINTER | PREVIEW]
as in Cetin's complete example.
Of course the report format has to be previously designed including columns and controls for every column in your data set that you want to show.
The Window in Cetin's example was to answer your question about deciding Preview vs. Print. You can put this info in a method of your form, or in the Click() method of a Print button.