>Hi there,
>
>I'm generating a report, the report doesn't have anything in the data environment, Printer environment is not checked, it's not a Private Data Session. Well, my program generates a cursor and Previews the report and it works but when I hit the print button I get the error "variable 'xxxxx' doesn't exist" basically it's changing the cursor to another cursor at some point. If I step thru it then it works, it previews and then prints but if I don't have a set step on it does preview correctly but get the error when I try printing. I put "SELECT curTest" to select the cursor in "BeforeOpenTables","Init", and "OpenTables" methods of the report data environment but the problem is still there.
>
>Any ideas why this is happening?
>
>Thanks!
Any chance a grid is involved ? faq#15515
Gregory