After all the parameter fields have been initialized and added to the Fields object, the Fields object can be passed to the viewer.
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setReportSource(reportSource);
You can disable user prompting to automatically use the set parameter field value. This is particularly useful if the parameter field value being set is unknown to the user (such as a parameter generated by the system).
viewer.setParameterFields(fields);
viewer.setEnableParameterPrompt(false);
viewer.refresh();
Note: Setting setOwnPage to false disables exporting and printing.
viewer.setOwnPage(true);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |