我有一个 Crystal Reports 13 wpf 控件,我正在加载一个报表和数据集中的数据:
ReportDocument report = new ReportDocument();
if (report != null)
{
report.Load(ReportFileName);
report.SetDataSource(DataSet);
reportViewer.ViewerCore.ReportSource = report;
}
为了知道控件何时完成渲染,我可以处理什么事件?查看器导出:
public event PageMouseEventHandler ClickPage;
public event PageMouseEventHandler DoubleClickPage;
public event DrillEventHandler Drill;
public event DrillSubreportEventHandler DrillDownSubreport;
public event NavigateEventHandler Navigate;
public event RefreshEventHandler Refresh;
public event SearchEventHandler Search;
public event RoutedEventHandler SelectionChange;
public event RoutedEventHandler ViewChange;
public event ZoomEventHandler ViewZoom;
ViewerCore 仅导出:
public event ExceptionEventHandler Error;
这些似乎都不合理。我也曾短暂地使用过 ReportClientDocument。