Stange behavior when opening the report in design time
Hi,
I have a TppReport and two TppDBPipeline. Each Datapipeline is connected to
a AdoDataset via a Datasource.
When I invoke the designer at design time by double-clicking the Report
control and then close it, sometimes the active property of the adodataset
changes to true, sometimes for both, sometimes for only one and sometimes
not at all.
My datapipelines have both the opendatasource and closedatasource set to
true.
I don't understand what happens.
Sang-Do
I have a TppReport and two TppDBPipeline. Each Datapipeline is connected to
a AdoDataset via a Datasource.
When I invoke the designer at design time by double-clicking the Report
control and then close it, sometimes the active property of the adodataset
changes to true, sometimes for both, sometimes for only one and sometimes
not at all.
My datapipelines have both the opendatasource and closedatasource set to
true.
I don't understand what happens.
Sang-Do
This discussion has been closed.
Comments
Setting the CloseDataSource to True will only close the dataset once the
DataPipeline has been destroyed. You can see this by simply deleting the
DataPipeline from your main form. Your ADO dataset will now have its Active
property set to false. In my testing when I open the report designer with
two datapipelines connected, they both set their dataset's Active property
to True.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com