I think the wrong driver information is somehow get written back to the report. Try to browse the report (as a table) after that error.
As a complicated work around you may try to copy the report to a new temp report when you call your print routine. That's just an idea, see if you can quickly write all necessary code and it would work..
>I put the code just before the call, and it still does not work.
>The only way I get the report to print without the error, is if I am in vfp, I open the table required. I open the report "Modify report", then do a preview on the report and hit the print button.
>I tried just doing the commands in the command window - no go. The same error comes up there. I have to specificly open the report and table, and right click on the report and preview.
>
>Anyone have other ideas??
>
>Thanks,
>Beth
>>>Hi Nadya,
>>>
>>>where should I put this code? In the program, just before the call for the report? Or just run it through vfp in the command window?
>>>
>>>Thanks.
>>>Beth
>>
>>Yes, just before you call the report put this code.
If it's not broken, fix it until it is.
My Blog