Package com.ipc.oce.objects.reports

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


 
  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();
View Full Code Here


   * Создание нового OCSpreadsheetDocument.
   * @return OCSpreadsheetDocument
   * @throws JIException
   */
  public final OCSpreadsheetDocument createSpreadsheetDocument() throws JIException {
    return new OCSpreadsheetDocument(app.newObject("SpreadsheetDocument"));
  }
View Full Code Here

   
    OCDataCompositionProcessor processor = rProc.createCompositionProcessor();
    processor.initialize(template, structure, details, true);
   
    OCDataCompositionResultSpreadsheetDocumentOutputProcessor spreadSheetProcessor = rProc.createDataCompositionResultSpreadsheetDocumentOutputProcessor();
    OCSpreadsheetDocument spreadsheetDocument = rProc.createSpreadsheetDocument();
    spreadsheetDocument.clear();
    spreadSheetProcessor.setDocument(spreadsheetDocument);
    spreadsheetDocument = spreadSheetProcessor.output(processor);
   
    //==================
    OCSpreadsheetDocumentHeaderFooter footer = spreadsheetDocument.getHeader();
    footer.setEnabled(true);
    footer.setStartPage(0);
    footer.setCenterText("[&Дата] ([&Date])");
    System.out.println(footer.getVerticalAlign());
    System.out.println(footer.getCenterText());
    //==================
    spreadsheetDocument.writeTXT("C:\\Developer\\Temp\\testRTXT.txt");
  }
View Full Code Here

   
    OCDataCompositionProcessor processor = rProc.createCompositionProcessor();
    processor.initialize(template, null, details, true);
   
    OCDataCompositionResultSpreadsheetDocumentOutputProcessor spreadSheetProcessor = rProc.createDataCompositionResultSpreadsheetDocumentOutputProcessor();
    OCSpreadsheetDocument spreadsheetDocument = rProc.createSpreadsheetDocument();
    spreadsheetDocument.clear();
    spreadSheetProcessor.setDocument(spreadsheetDocument);
    spreadsheetDocument = spreadSheetProcessor.output(processor);
   
    spreadsheetDocument.writeTXT("C:\\Developer\\Temp\\testRTXT01.txt");
  }
View Full Code Here

TOP

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

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.