我有一個水晶報表,我用我的報告和數據加載從數據集13 WPF控件:我如何知道Crystal Reports已完成渲染?
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。
謝謝;這在CR 13(WinForms)中並不適用於我,但給了我這個想法,讓我找到了我發佈的解決方案。 –
如果ReportSource更改爲相同數量的頁面,該怎麼辦? – CodingYourLife