I am using the default java viewer to view reports in a browser. When a date parameter is required the icon for the popup calendar appears as expected but clicking on this produces a 404 error although the calendar.html file is in the expected place. Has anyone else had a similar problem with the default viewer?
I discovered that my build file was excluding the htm/html files required from the crystalviewers115 directory. I removed these excludes from the build script and everything was fine. It sounds as though you might be missing other files from crystalviewers115?
Crystalviewers115 is for CR XI Release 2 . Crystalviewers115 is for CR XI Release 1.
The latter gives “slightly” better java support through the JRC classes.
The build is an ant build file that we use to build the project, if you aren’t using ant then you won’t have one. However, the symptom seems to suggest that the viewer isn’t finding some of the required files from Crystalviewersxxx
.
Does the viewer work correctly otherwise. Do you get the print and save icons etc?
I don’t know much about Infoview. I am using the JavaReportingComponent API. However, rereading your first post, I think the java viewer only offers the calendar selector automatically if you are requesting a datetime or date. It sounds as if you are asking for day month and year parameters separately?
Have done a test with a blank report and dropped two parameters onto it, one as a Date and the other as DateTime. Both give me edit boxes instead of the calendar
Sorry. This must ber an infoview/CR specific problem. I don’t have to anything in a jsp to get the calendar to appear appropriately. The regular viewer does it all.
JSP code (not too useful to you) is:
//Refer to the Viewers SDK in the Java Developer Documentation for more information on using the CrystalReportViewer
//API.
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setOwnForm(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setDisplayGroupTree(false);
//Get the report source object that this viewer will be displaying.
Object reportSource = session.getAttribute("reportSource");
viewer.setReportSource(reportSource);
//Render the report.
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);