Can not set table to inactive after printing.
I have a report that prints a single record from an active table and then
returns to the application to select another record to print. When after
printing the record and returning to the application I try to set the
'Active' property of the table to false I get the exception 'Can not perform
this operation on a closed data set'.
I have checked the pipeline properties and it has the close data source
property false.
I'm sure it is something obvious but have spend a lot of time trying to get
around it with no luck.
returns to the application to select another record to print. When after
printing the record and returning to the application I try to set the
'Active' property of the table to false I get the exception 'Can not perform
this operation on a closed data set'.
I have checked the pipeline properties and it has the close data source
property false.
I'm sure it is something obvious but have spend a lot of time trying to get
around it with no luck.
This discussion has been closed.
Comments
property is only applicable when the datapipeline is freed. I'm not sure
what else your app is doing, but you may want to try to simplify the
printing process, or remove it entirely, to see if anythign to do with the
report is causing the table to be inactive. What are your event handlers
for the report doing?
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com