I'm using the Java SDK in Eclipse to be able to leverage a function that does not appear to be native in Crystal Reports - auto refresh. Looking at the SDK, it appears straight forward to create a viewer on an existing report (built via Crystal Reports) and then refresh the data in a loop. First glance at the SDK it appeared CrystalReportViewer would be the right class, but I didn't find that in the CR Java Runtime Library that comes with cr4e download. So, I used ReportViewerBean, at least to prove out the concept. Here's the prototype code (high-level), using the bean:
public static void main (...) throws ReportSDKException
ReportViewerBean viewer = new ReportViewerBean();
viewer.setReportSource(path to the .rpt file);
viewer.init();
viewer.start();
while (...) {
viewer.refreshReport();
}
What else is needed to display the report?
Thanks,
Roger