3.8.3 Exporting to HTML Programmatically

HTMLGenerator is used to export a report in HTML format. Because HTML does not have many of the formatting capabilities of Style Intelligence, the generated HTML may omit some formatting information that is present in the original report.

As part of the HTML generation process, the builder may need to generate additional files that are used inside the HTML file. This is true for any non-text elements, such as charts, images, etc.

FileOutputStream os = new FileOutputStream(filename);

Builder builder = Builder.getBuilder(Builder.HTML, os, ".");

builder.write(sheet);

os.close();

While the Builder can be used to get the appropriate Builder for HTML generation, the HTMLGenerator performs the generation and is found in the inetsoft.report.io package.

<< Different Excel Versions © 1996-2013 InetSoft Technology Corporation (v11.4) Image Files >>