Hi Mohammed!
>hi all,
>i have a grid with many records,
>i want to (report form aaa preview or print) for first record ,after preview
>i want to return to the same grid with same records,to choise ex.. second record or third etc....
>any idea.
>tahnks.
You can to do this of many ways. One of these is: create one cursor with the record that you want to print, you can to use select for this. Eg.:
Select * From MyTable Where MyCod = MyCodAux Into Cursor MyCursorRepo
Other way would be, check your record and store your number, call the report (in your report in "Print When" put the condition for to print only check record, eg. MyTable.Check = .T.) and after go to the position the record.
Tip: How your form has a grid, before to call report remember of to move the focus for other control.
I hope it helps you.
Erick
Força Sempre!
Strength Always!