com.aspose.cells

Class WorkbookRender

  • java.lang.Object
    • com.aspose.cells.WorkbookRender
public class WorkbookRender 
extends java.lang.Object

Represents a Workbook render. The constructor of this class , must be used after modification of pagesetup, cell style.

Constructor Summary
WorkbookRender(Workbook workbook, ImageOrPrintOptions options)
The construct of WorkbookRender
 
Property Getters/Setters Summary
intgetPageCount()
Indicate the total page count of current worksheet
 
Method Summary
voidtoImage(java.io.OutputStreamstream)
Render whole workbook as Tiff Image to stream.
voidtoImage(java.lang.Stringfilename)
Render whole workbook as Tiff Image to a file.
voidtoPrinter(java.lang.StringPrinterName)
Render workbook to Printer
voidtoPrinter(java.lang.StringPrinterName, java.lang.StringDocumentName)
Render workbook to Printer
 

    • Constructor Detail

      • WorkbookRender

        public WorkbookRender(Workbook workbook, ImageOrPrintOptions options)
                       throws java.lang.Exception
        The construct of WorkbookRender
        Parameters:
        workbook - Indicate which workbook to be rendered.
        options - ImageOrPrintOptions contains some property of output kiimage
    • Property Getters/Setters Detail

      • getPageCount

        public int getPageCount()
        
        Indicate the total page count of current worksheet
    • Method Detail

      • toImage

        public void toImage(java.io.OutputStream stream)
                    throws java.lang.Exception
        Render whole workbook as Tiff Image to stream.
        Parameters:
        stream - the stream of the output image
      • toImage

        public void toImage(java.lang.String filename)
                    throws java.lang.Exception
        Render whole workbook as Tiff Image to a file.
        Parameters:
        filename - the filename of the output image
      • toPrinter

        public void toPrinter(java.lang.String PrinterName)
                      throws java.lang.Exception
        Render workbook to Printer
        Parameters:
        PrinterName - the name of the printer , for example: "Microsoft Office Document Image Writer"
      • toPrinter

        public void toPrinter(java.lang.String PrinterName, java.lang.String DocumentName)
                      throws java.lang.Exception
        Render workbook to Printer
        Parameters:
        PrinterName - the name of the printer , for example: "Microsoft Office Document Image Writer"
        DocumentName - set the print job name