Package com.cosmo.reports

Examples of com.cosmo.reports.ReportsEngine


   @Override
   public PageContext formSendedEvent(PageContext pc, HttpServletRequest request, HttpServletResponse response)
   {
      String rptUrl = "";
      DynamicMessageControl msg = (DynamicMessageControl) pc.getControl("result_msg");
      ReportsEngine re;

      try
      {
         if (HttpRequestUtils.getValue(request, "cboFormat").equals("docx"))
         {
            re = new DocxReprotsEngineImpl(getWorkspace(), "weather");
         }
         else
         {
            re = new PdfReprotsEngineImpl(getWorkspace(), "weather");
         }
         re.getReport().addStaticValue("title", HttpRequestUtils.getValue(request, "txtTitle"));
         rptUrl = re.generateReport();

         msg.setVisible(true);
         msg.setType(DynamicMessageControl.MessageTypes.Information);
         msg.setMessage("<a href=\"" + rptUrl + "\" target=\"_blank\">Descargar archivo</a>");
      }
View Full Code Here

TOP

Related Classes of com.cosmo.reports.ReportsEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.