Package com.ipc.oce.objects.reports

Examples of com.ipc.oce.objects.reports.CommonTemplate


    app = appInstance;
  }
 
  public CommonTemplate getCommonTemplate(String templateName) throws JIException {
    JIVariant var = app.callMethodA("GetCommonTemplate", new JIVariant(templateName))[0];
    CommonTemplate ct = null;
    try {
      OCSpreadsheetDocument sd = new OCSpreadsheetDocument(var);
      sd.getHeader();
      ct = sd;
    } catch (JIException e) {
      try {
        OCTextDocument td = new OCTextDocument(var);
        td.getLineSeparator();
        ct = td;
      } catch (JIException e1) {
        ct = new CommonTemplate(var);
      }
    }
    return ct;
  }
View Full Code Here


 
  @Test
  public void commonTemplate() throws JIException {

    ReportProcessor rp = app.getReportProcessor();
    CommonTemplate ct = rp.getCommonTemplate("ЗаголовокОтчета");
    System.out.println(ct);
    System.out.println(ct.getClass().getName());
   
  }
View Full Code Here

TOP

Related Classes of com.ipc.oce.objects.reports.CommonTemplate

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.