Once you have created and initialized an export control, calling its processHttpRequest method completes the export.
This example assumes that you have set up the export control properly, and that you have valid request, response, and session objects.
If setExportAsAttachment is set to true, the user is prompted with a download dialog, otherwise the exported report is displayed directly in the browser.
exportControl.processHttpRequest(request, response, getServletContext(), null);
Note: If you intend to export a report more than once, using the getHtmlContent method is more efficient, because the request is processed once and the resulting HTML string can be used multiple times.
| Crystal Decisions http://www.crystaldecisions.com/ Support services http://support.crystaldecisions.com/ |