1 Reply Latest reply on Jul 16, 2010 8:47 AM by ehsmurali

    Crystal Reports and SEAM

    nsaraf
      Hello,

      We are migrating an existing two-tier application to a web-based application using the SEAM framework.  This application has a number of Crystal Reports that need to be accessible via the web-based interface.

      I am trying to integrate Crystal Reports and SEAM. The Crystal Reports Developer guide has excellent instructions on JSP and Crystal Reports integration.  However, the only useful information I have found on JSF and Crystal Reports is on another topic on this forum - http://seamframework.org/Community/SeamAndCrystalReportsJSFTags

      I followed all the instructions on this post. I draw up a blank webpage.  No errors are thrown. Any help would be appreciated.

      Here's the relevant code from the ReportBean:

      IReportSourceFactory2 rptSrcFactory = (IReportSourceFactory2) new JPEReportSourceFactory();
                      try {
                                      this.reportSource = (IReportSource) rptSrcFactory
                                              .createReportSource(report, l);
                      } catch (ReportSDKException e) {
                             
                              e.printStackTrace();
                      }

      Here's the xhtml page:
      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
              xmlns:s="http://jboss.com/products/seam/taglib"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:a4j="http://richfaces.org/a4j"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:bocrv="http://www.businessobjects.com/jsf/crystalreportsviewers"
              template="./layout/template.xhtml">

              <ui:define name="body">          
                             
                                      <bocrv:reportPageViewer reportSource="#{reports.reportSource}" />
                     
              </ui:define>
      </ui:composition>
        • 1. Re: Crystal Reports and SEAM
          ehsmurali

          Hi Nitin,
                   I have the same issue. I followed all the steps mentioned, yet the page rendered as blank.
                   Any resolution?, could please share.
          Thanks,
          Murali.