There's a weird bug with grids in that they tend to re-select their RecordSource at the wrong time. This is only a problem when the grid has focus. Try moving focus somewhere else while you run the report, then move it back to the grid when you're done.
>Hi Guys,
>
>I created a report in VFP8 which has a problem and I can't figure out the solution. I created 2 cursors one acts as the parent and the other one as the child. The parent cursor is bound to a grid control in a form. From there I can navigate to the specific parent record that I want to print. Upon choosing a record then printing it, I execute a series of code that cleans and repopulates the child cursor for the specific details of the parent cursor. I then preview the report and the output looks just fine. The details from the child cursor are displayed in the previewed report. The problem starts when I click the print button, the printer prints the report with no details coming from the child cursor.
>
>The child records are displayed in the preview mode of the report but are not physical printed on the paper. What seems to be the problem?
>
>I also did some few tests that might help isolate the problem.
>
>before previewing the report, I executed a BROWSE command to check the records of the child cursor, then I proceed in printing the report and walla the output in the paper is exactly the output in the preview.
>
>My big question is that, why do I need to browse the cursor first before printing the report to get a correct output?
>
>Maybe I just missed something.
>
>Please Help
>
>Thanks in advance...