0

Per Active reports documentation, the Report start is called first and Data initialize. Any reference to Data source inside Report start will invoke Data Initialize event. I am modifying an existing report; and to my surprise the order is reversed. I have an existing logic to get the count of nodes (my datasource is xml) in data initialize event; just because the event firing sequence is reversed, I am getting 0 as count always.

I am using Active reports for .NET 2.0 ( I think the version is 4.*). As I dont have support for the designer, I have the designer xml and code behind.

Please suggest what could force the event sequence to correct order.

4

1 に答える 1

0

ここであなたを助けるのに十分な情報がない可能性があります. 少なくともレポート コードを確認する必要がありますが、デバッグを行って、問題の原因となっている特定のコードの詳細を確認できるとよいでしょう。

この特定のケースでのイベントの順序については実際にはわかりませんが、トラブルシューティングを行うには、新しい空白のレポートを使用してその場合のイベントの順序を確認し、一度に 1 つのコードに移動してコードのどの行を調べるかを試すことができます。イベントの順序が変更されます。

于 2013-03-11T07:01:53.710 に答える