......
Select yourCursorName
Report form YourReportFileName nonconsole preview
Don't use aliases for fields in the report (make sure that all fields just referenced by names and not Table.name). Use default DS for report. Now, as already said, simply do
select myCursor
report form myReport preview
One little caveat for forms with grids - make sure to move focus off the grid before doing it, since grids have a tendency to select their alias and thus you may have problems.
You may try:
SELECT ALIAS1.field1,ALIAS2.field1,ALIAS1.field2, ALIAS1.field3 FROM table1 ALIAS1, table2 ALIAS2 ;
[ WHERE ALIAS1.field1 = ALIAS2.filed1 ;]
INTO CURSOR TEST [READWRITE]
you may use cursor test in report.
Lightening wrote:
......
Select yourCursorName
Report form YourReportFileName nonconsole preview
Yes. Simply have a cursor created in the form/program that calls the report and it would be visible in the report. You can also create the cursor in the command window when you're testing your report.
Don't forget about grid's problem, so it would not bite you.