I have created a Rave Report using a TSQLQuery connected through an SQL Connection. The query works fine and the report loads fine for either preview or printing using the code: RvProject.ExecuteReport('thereport');. However when I then close the preview or it finishes sending to the printer I get an error, 'qryUnderstocked: Operation not allowed on a unidirectional dataset'. I don't understand this as it has successfully carried out the intented query and should be finished with it by this stage. Any help would be appreciated.
Thanks