Assuming that your controller is based on SrsReportRunController, the decision about whether to display the Current print destinations is made by the showPrintSettings() method. Put a breakpoint there, turn off CIL, and run your report, and follow it to see if that's actually why. The showPrintSettings() code is pretty simply. It's just.. public boolean showPrintSettings() { return !useReportViewerForm; } So the question is now when does the useReportViewerForm become true (for which showPrintSettings would then be false). The only method I could find in class SrsReportRunController that sets useReportVieweForm to true is runToScreen(). Put a breakpoint there on the useReportViewerForm = true; line, and try to determine why it reaches that code. The runToScreen() method appears to only be called in the runReport() method, following some logic about the report contract's .parmPrintSettings(). Put a breakpoint at the this.parmReportRun().preRunReport(); line, and then follow it through the next dozen lines of code, to try to determine why it decides to call .runToScreen(). You should be able to figure it out using one or more of the above suggestions. Good luck.
↧