>I have always built cursors in the report's calling form and had the VFP Report Writer work from the cursor. Of course the cursor is the SELECTed table before the REPORT FORM and the report has a public datasession. Never had a problem until recently.
>
>In one of my apps, a FEW of my reports come up in Preview. Everything is cool. When the user clicks on the printer icon in the Print/Preview toolbar, I get an error message saying that my field names cannot be found (it is like my cursor is no longer SELECTed). I am reduced to copying my cursor to an array in the calling form, and then in one of the events in the report (probably BeforeOpenTables; my remembrance is that doing this in the report's Init did not help things) I recreate the cursor and populate it from the array. Now everything works.
>
>So long as my reports have small amounts of data, this technique works.
>
>Any idea what the problem might be?
>
>
>Tim
Could it be related to
Forms with Grids and printing reports FAQ #15515 ?
If it's not broken, fix it until it is.
My Blog