Within my efforts trying to move to .NET using a DataSource, I was looking for a need to query the selected output before retrieving the data. I have seem to come a long way in achieving this. Using QueryFileNameForExportJob
this for List
type projects, but unfortunately not for Label
type projects.
I noticed that the order in which events are executed is different for LIST
type projects and LABEL
type projects. (I haven’t looked into CARD projects). In my application I am getting the data in to a temp-table. For that reason I am overriding GetData
in the OpenEdge dataprovider with my own GetDataEvent
.
I am also using QueryFileNameForExportJob
as I want to ask the user for an output destination before getting the data. For LIST projects this works fine:
- PrinterDialog shows
-
QueryFileNameForExportJob
event is triggered -
GetDataEvent
is triggered to retrieve the data.
However, for LABEL projects, the order is
-
GetDataEvent
is triggered to retrieve the data (so before the user can select an output destination) - PrinterDialog shows
-
QueryFileNameForExportJob
event is triggered
Is there any way to influence this? Is this sequence of events dictated by List&Label or is this implemented in the OpenEdge data provider?
Thanks.