Class RMExcelWriter

java.lang.Object
com.inductiveautomation.rm.out.RMExcelWriter

public class RMExcelWriter extends Object
This class is used to generate an Excel file from an RMDocument.

You simply invoke this with: new RMExcelWriter().getBytes(aDoc);

  • Constructor Details

    • RMExcelWriter

      public RMExcelWriter()
      Creates a basic excel writer.
  • Method Details

    • getBytes

      public byte[] getBytes(RMDocument aDoc)
      Returns a byte array of an Excel file (.xls) for the given RMDocument.
      Parameters:
      aDoc - the RMDocument to retrieve the bytes from. Must not be null
      Returns:
      the byte array of the contents of the document