Class ToHtml

java.lang.Object
io.keikai.model.impl.html.ToHtml
All Implemented Interfaces:
Serializable

public class ToHtml extends Object implements Serializable
This example shows how to display a spreadsheet in HTML using the classes for spreadsheet display.
Author:
Ken Arnold, Industrious Media LLC
See Also:
  • Method Details

    • create

      public static ToHtml create(io.keikai.model.SBook wb, OutputStream output)
      Creates a new converter to HTML for the given workbook.
      Parameters:
      wb - The workbook.
      output - Where the HTML output will be written.
      Returns:
      An object for converting the workbook to HTML.
    • create

      public static ToHtml create(io.keikai.model.SSheet ws, OutputStream output)
    • main

      public static void main(String[] args) throws Exception
      Run this class as a program
      Parameters:
      args - The command line arguments.
      Throws:
      Exception - Exception we don't recover from.
    • export

      public static void export(io.keikai.model.SBook wb, OutputStream outputStream, boolean noHeader) throws IOException
      Throws:
      IOException
    • export

      public static void export(io.keikai.model.SSheet ws, OutputStream outputStream, boolean noHeader) throws IOException
      Throws:
      IOException
    • export

      public static void export(io.keikai.model.SSheet ws, io.keikai.model.CellRegion area, OutputStream outputStream, boolean noHeader) throws IOException
      Throws:
      IOException
    • export

      public static void export(io.keikai.model.SBook wb, OutputStream outputStream) throws IOException
      Throws:
      IOException
    • export

      public static void export(io.keikai.model.SSheet ws, OutputStream outputStream) throws IOException
      Throws:
      IOException
    • export

      public static void export(io.keikai.model.SSheet ws, io.keikai.model.CellRegion area, OutputStream outputStream) throws IOException
      Throws:
      IOException
    • setCompleteHTML

      public void setCompleteHTML(boolean completeHTML)
    • printPage

      public void printPage() throws IOException
      Throws:
      IOException
    • print

      public void print()
    • printStyles

      public void printStyles()
    • printSheet

      public void printSheet(io.keikai.model.SSheet sheet)